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

Arc v.1 Release
Goto page 1, 2  Next
 
Post new topic   Reply to topic     Forum Index -> ArcLib
View previous topic :: View next topic  
Author Message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Mon Jun 12, 2006 1:18 pm    Post subject: Arc v.1 Release Reply with quote

Arc is a 2D Game library written in D using OpenGL + SDL. The goal of Arc is to make game programming less intimidating. The current supported platforms are Windows and Linux.

To coincide with this first release, I've written 2 tutorials on how to set up Arc and make an Asteroids game with Arc.

http://dmedia.dprogramming.com/Tutorials/ArcIntro
http://dmedia.dprogramming.com/Tutorials/ArcAsteroids

You can download Arc v.1 source + dll's here...
http://svn.dsource.org/projects/arcgames/downloads/zipfiles/arc/arcpkg1.zip

You can download the Asteroids game binary + source here...
http://svn.dsource.org/projects/arcgames/downloads/zipfiles/games/asteroidspkg.zip

Documentation link and screenshot here...
http://arcgames.dsource.org/

Feedback welcome.

~ Clay


Last edited by clayasaurus on Mon Jul 16, 2007 10:23 pm; edited 2 times in total
Back to top
View user's profile Send private message AIM Address
JoeCoder



Joined: 29 Oct 2005
Posts: 294

PostPosted: Mon Jun 12, 2006 11:52 pm    Post subject: Reply with quote

With the asteroids game, I had quite a dll hunt to start things off. I think I had all but freetype, lua, and sdl_mixer et all available though, and they were quick to find with a little searching. Too bad these aren't installed by default on windows.

The asteroids themselves actually made me hungry because they reminded me of animal crackers. Then it was a race to dodge asteroids while trying to find the fire laser button. The sound effects are funny--they sound like someone making laser noises in a pc microphone Smile.

But anyway, it's late and hopefully I'll have some time to study your source (and the tutorials) tomorrow. I hope to add Freetype and maybe Lua to my engine eventually so seeing them in action with your code will surely help.

And finally, congrats on the first release.
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Tue Jun 13, 2006 10:32 am    Post subject: Reply with quote

I guess I should've made it more clear that all my dll's are in the same package as the Arc source code. You are right on with the sound effects Razz

I still really have not mastered lua and was having some UTF problem last time I tried to use it, so I don't know if the way I use it is a hack or not, right now the only place you'll find it is in the particle source code.

For freetype, I came up with that source by heavily modifying a NeHe freetype tutorial. I had to flip some coordinates because the font would display upside down.
Back to top
View user's profile Send private message AIM Address
Rider



Joined: 14 Jun 2006
Posts: 16

PostPosted: Wed Jun 14, 2006 3:37 am    Post subject: Reply with quote

Hi, I tried to compile the asteroids game using the source provided in the tutorial, but my attempt to Build the executable results in a number of error messages, now the source is exactly copy-pasted from the tutorial, so I don't really see what's going wrong here.

The error messages I get when compiling asteroids.d:
Code:
asteroidfield.d(84): expression expected, not '?'
asteroidfield.d(84): found '5' when expecting ')'
asteroidfield.d(84): found '==' instead of statement
asteroidfield.d(93): no identifier for declarator curr
asteroidfield.d(97): Declaration expected, not 'while'
asteroidfield.d(100): no identifier for declarator asteroids.data.draw
asteroidfield.d(104): Declaration expected, not 'if'
asteroidfield.d(109): Declaration expected, not 'while'
asteroidfield.d(118): found '.' when expecting ')'
asteroidfield.d(118): semicolon expected, not 'data'
asteroidfield.d(118): no identifier for declarator data.getHealth
asteroidfield.d(118): semicolon expected, not '/'
asteroidfield.d(118): Declaration expected, not '/'
asteroidfield.d(121): no identifier for declarator asteroids.data.lowerHealth
asteroidfield.d(123): Declaration expected, not 'if'
asteroidfield.d(126): Declaration expected, not 'return'
asteroidfield.d(127): unrecognized declaration


If anyone knows what the problem is, please let me know Confused
_________________
The lazy developper
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Fri Jun 16, 2006 6:06 pm    Post subject: Reply with quote

Ok, here's what you do.

1) Download the arcpkg1.zip and the asteroidspkg.zip files, and extract them both to a file called 'asteroids.'

2) Run the 'run-build' or open it up in Poseidon and click the 'run batch file' button.

3) Make sure you have the latest version of D ... http://www.digitalmars.com/d/download.html

3) Same errors? I just tried it again on my system and it worked.
Back to top
View user's profile Send private message AIM Address
Lutger



Joined: 25 May 2006
Posts: 91

PostPosted: Mon Jun 19, 2006 12:19 pm    Post subject: Reply with quote

I haven't actually done anything with arc yet so I may give you more feedback when I have used it, but it looks good to me. I appreciate what you do with the tutorials at dmedia, very helpful.

Don't know if this has come up already or what you think about it as I'm new to Arc, but how about adding a candydoc documentation to the Arc v.1 zipfile?

All it requires is a list of the modules and a doc compilation with the candydoc ddoc macro's. I could do it if you don't want to spend any time on it?

Lutger (alias deadxoralive at gamedev).
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Mon Jun 19, 2006 12:28 pm    Post subject: Reply with quote

Lutger wrote:


All it requires is a list of the modules and a doc compilation with the candydoc ddoc macro's. I could do it if you don't want to spend any time on it?

Lutger (alias deadxoralive at gamedev).


Lutger, could you please help me accomplish this? I've tried to use CandyDoc but I've been unsucessful with it.

Maybe you can set it up and send me a zipfile (since gmail doesn't like zipfiles, rename it to file.zipp) of it to clayasaurus@gmail.com, and provide some instructions on how to run it.

This would be very much appreciated, thanks.
Back to top
View user's profile Send private message AIM Address
Lutger



Joined: 25 May 2006
Posts: 91

PostPosted: Mon Jun 19, 2006 7:51 pm    Post subject: Reply with quote

Sure. I send you an email.
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Mon Jun 19, 2006 9:55 pm    Post subject: Reply with quote

Thanks alot, looks much nicer now Smile

http://arcgames.dsource.org/arc/arc/input.html
Back to top
View user's profile Send private message AIM Address
Rider



Joined: 14 Jun 2006
Posts: 16

PostPosted: Tue Jun 20, 2006 5:01 am    Post subject: Reply with quote

Hmm, some of the source files you provided in the package do not match those in the tutorial, after replacing them, everything work fine... well almost... it asks for a dlinkedlist.dll file, wich I can't find anywhere.

So in the words of Duke Nukem:

"Where is it?"
_________________
The lazy developper
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Tue Jun 20, 2006 10:06 am    Post subject: Reply with quote

There never was a dlinkedlist.dll file, but there is a dlinkedlist.d file which can be found in the renamed 'tools' directory. I havn't had time to update the tutorial to match the slighly different source code.

My suggestion is that you re-download arcpkg1.zip and asteroidspkg.zip and unzip them to a new directory, and/or give me a better error message as usually it tells you the file and line number the error occurred in.
Back to top
View user's profile Send private message AIM Address
Rider



Joined: 14 Jun 2006
Posts: 16

PostPosted: Tue Jun 20, 2006 3:20 pm    Post subject: Reply with quote

Yes, unfortunatly I was too quick at reading so I thought it said .dll

eitherway...

I redownloaded your packages, and I noticed something. The source code requires the dlinkedlist.d in the tl folder as well as the tools folder.

If I rename either folder it gives me the "can't find dlinkedlist.d" error. Also, if both are present, it still gives me an error, namely:

Quote:
asteroids.d(51): function ship.Ship.process (uint) does not match argument types
(double)
asteroids.d(51): cannot implicitly convert expression (((t).getElapsedMil)()) of
type double to uint
asteroidfield.d(30): template instance cannot resolve forward reference
asteroidfield.d(30): dlinkedlist!(Asteroid) is used as a type
asteroidfield.d(30): new can only create structs, dynamic arrays or class object
s, not void's
asteroidfield.d(30): cannot implicitly convert expression (new dlinkedlist!(Aste
roid)) of type void* to arc.tools.dlinkedlist.dlinkedlist!(Asteroid).dlinkedlist


I hate compiling!! Razz
_________________
The lazy developper
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Wed Jun 21, 2006 9:04 am    Post subject: Reply with quote

Alright, can you just zip your entire source code and send it to me in gmail? Thanks.
Back to top
View user's profile Send private message AIM Address
Rider



Joined: 14 Jun 2006
Posts: 16

PostPosted: Sun Jun 25, 2006 4:29 am    Post subject: Reply with quote

Short note, the documentation seems to be offline atm. Did you move it, or are the links in the 'introduction to arc' tutorial not valid?

It's sort of handy to have a documentation of all the features around Smile
_________________
The lazy developper
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Sun Jun 25, 2006 5:33 pm    Post subject: Reply with quote

Sorry, must not have updated the tutorial links. I'll fix that ASAP.

Docs are here:
http://arcgames.dsource.org/arc/arc/input.html
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> ArcLib All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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