View previous topic :: View next topic |
Author |
Message |
clayasaurus
Joined: 21 May 2004 Posts: 857
|
|
Back to top |
|
|
JoeCoder
Joined: 29 Oct 2005 Posts: 294
|
Posted: Mon Jun 12, 2006 11:52 pm Post subject: |
|
|
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 .
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 |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Tue Jun 13, 2006 10:32 am Post subject: |
|
|
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
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 |
|
|
Rider
Joined: 14 Jun 2006 Posts: 16
|
Posted: Wed Jun 14, 2006 3:37 am Post subject: |
|
|
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 _________________ The lazy developper |
|
Back to top |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Fri Jun 16, 2006 6:06 pm Post subject: |
|
|
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 |
|
|
Lutger
Joined: 25 May 2006 Posts: 91
|
Posted: Mon Jun 19, 2006 12:19 pm Post subject: |
|
|
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 |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Mon Jun 19, 2006 12:28 pm Post subject: |
|
|
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 |
|
|
Lutger
Joined: 25 May 2006 Posts: 91
|
Posted: Mon Jun 19, 2006 7:51 pm Post subject: |
|
|
Sure. I send you an email. |
|
Back to top |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
|
Back to top |
|
|
Rider
Joined: 14 Jun 2006 Posts: 16
|
Posted: Tue Jun 20, 2006 5:01 am Post subject: |
|
|
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 |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Tue Jun 20, 2006 10:06 am Post subject: |
|
|
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 |
|
|
Rider
Joined: 14 Jun 2006 Posts: 16
|
Posted: Tue Jun 20, 2006 3:20 pm Post subject: |
|
|
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!! _________________ The lazy developper |
|
Back to top |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Wed Jun 21, 2006 9:04 am Post subject: |
|
|
Alright, can you just zip your entire source code and send it to me in gmail? Thanks. |
|
Back to top |
|
|
Rider
Joined: 14 Jun 2006 Posts: 16
|
Posted: Sun Jun 25, 2006 4:29 am Post subject: |
|
|
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 _________________ The lazy developper |
|
Back to top |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
|
Back to top |
|
|
|