FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MiniArc.

 
Post new topic   Reply to topic     Forum Index -> ArcLib
View previous topic :: View next topic  
Author Message
JarrettBillingsley



Joined: 20 Jun 2006
Posts: 457
Location: Pennsylvania!

PostPosted: Thu Sep 06, 2007 8:20 pm    Post subject: MiniArc. Reply with quote

I'm thinking: a MiniD interface to the Arc library. Develop games in MiniD which can be run in a "player" program compiled with ArcLib for the current platform. Easy cross-platform games.

And I suppose it'd also go the other way: an Arc interface to MiniD to add scripting to games written in D.

THOUGHTS?!
Back to top
View user's profile Send private message
ChristianK



Joined: 26 Sep 2006
Posts: 159
Location: Berlin, Germany

PostPosted: Sat Sep 08, 2007 9:27 am    Post subject: Reply with quote

That definitely sounds interesting. I have not used MiniD before: how much effort is writing these bindings?
Back to top
View user's profile Send private message
JarrettBillingsley



Joined: 20 Jun 2006
Posts: 457
Location: Pennsylvania!

PostPosted: Sun Sep 09, 2007 10:02 am    Post subject: Reply with quote

Something like:

Code:
WrapModule!("arcinput", WrapFunction!(arc.input.open), WrapFunction!(arc.input.close), WrapFunction!(arc.input.keyDown));


More functions in there, but you get the idea.

Classes shouldn't be a problem either. Structs may have to be wrapped in classes, or the MiniD binding lib may have to be changed to allow struct wrapping.
Back to top
View user's profile Send private message
ChristianK



Joined: 26 Sep 2006
Posts: 159
Location: Berlin, Germany

PostPosted: Sun Sep 09, 2007 10:45 am    Post subject: Reply with quote

Well, that seems simple enough. Are the wrapping functions and options documented somewhere on the MiniD page? I checked the "Native API" section, but didn't find it.

Basically, I'm all for having bindings to a scripting language for Arc. Particularly if it allows users to expose their own functions and data easily. Having a player program for games that run mostly in MiniD sounds good too.

On the other hand, we need to find time for it. I imagine Clay and me will be busy with performing fundamental revisions and improvements for the next few months: After all, 0.2 has only just been released and it's the time for the major overhauls of 0.3.

I have created a ticket for it, so we can look at it again once 0.3 becomes a bit more stable:
http://www.dsource.org/projects/arclib/ticket/91
Back to top
View user's profile Send private message
JarrettBillingsley



Joined: 20 Jun 2006
Posts: 457
Location: Pennsylvania!

PostPosted: Sun Sep 09, 2007 3:21 pm    Post subject: Reply with quote

Huh! I must have never generated the docs for minid.bind, or maybe they weren't generated because of template weirdness. Well the binding library is documented, if a little sparsely, in minid/bind.d in the repo. I want to make a more complete page on how to use the binding library too.
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Sun Sep 09, 2007 6:23 pm    Post subject: Reply with quote

I'd like to see a MiniArc competitor to the PyGame, but I'd imagine such a task would be a project of it's own. It could be attempted now, but API things are still moving pretty fast and it's not completely solidified yet.

As for the other way around, how would that work? How could Arc integration with minid be any more helpful than the end-user integrating with minid themselves?

edit: I'll have to think about this idea a little bit, to determine what priority to put it at
Back to top
View user's profile Send private message AIM Address
JarrettBillingsley



Joined: 20 Jun 2006
Posts: 457
Location: Pennsylvania!

PostPosted: Mon Sep 10, 2007 8:52 am    Post subject: Reply with quote

The MiniD-in-Arc support probably wouldn't be that much -- it might just mostly involve providing some MiniD-friendly "hooks" into the engine to make it easy to add scriptability to an Arc game. I'm not entirely sure what that would entail, as I've never made a game with scripting Embarassed
Back to top
View user's profile Send private message
JScott



Joined: 26 Jul 2007
Posts: 7

PostPosted: Thu Sep 13, 2007 2:55 am    Post subject: Reply with quote

MiniD could be used to help create a component based object system. This way new game objects types wouldn't have to belong to a huge inheritance chain. Instead they could sort of dynamicly mixin the required functionality.

This is higher level than arclib is at the moment so maybe it would have to be another project.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Wed Oct 03, 2007 2:25 pm    Post subject: Reply with quote

Tell you what... I might be up for this.

After Arc v.3 is released and you (Jarrett) are still up for MiniArc, you can startup a MiniArc project, and I can help out where needed.

Now, even after v.3 is out, there may be some refactoring, and I'm going to promise a refactor (or just code cleanup) before Arc 1.0 is released, but we are not terribly close to that mark yet, or we won't realize it until we get there.

~ Clay
Back to top
View user's profile Send private message AIM Address
JarrettBillingsley



Joined: 20 Jun 2006
Posts: 457
Location: Pennsylvania!

PostPosted: Wed Oct 24, 2007 9:49 pm    Post subject: Reply with quote

Weeeeeeeee!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> ArcLib All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group