Page 1 of 1

Cpl.Bator Asteroids Game Revised

Posted: Thu Aug 31, 2006 3:28 am
by Guimauve
Last year Cpl.Bator has started to develop an small asteroids game.

I have revised the code and push the development one step more further. For the moment, the game has no sound, no music and the GUI are in French.

It's a 2D game and I don't really like 2D games. Anyway, I will release the source code with graphics. You need to have PureBasic V4.00 to compile the game.

The game ...

In classic mode : Shoot down as many asteroids as you can. At each level change you will have one more asteroids to shoot down

In Sprint mode : Shoot down 5 asteroids as fast as you can.

Programming Style : Based Object Programming (BOP)

You can download here :
File:1->Asteroide.zip
Image

Regards
Guimauve

Posted: Thu Aug 31, 2006 3:54 am
by rsts
Always find it fascinating to try these out - since I'm more of an app developer.

Seems I need a structure Chronometer.

Is it in some library I should have previously downloaded?

cheers

Posted: Thu Aug 31, 2006 4:17 am
by Guimauve
Sorry about that, I forgot to uncomment the IncludeFile "Custom Lib.pb"

Check at line #26 and uncomment this IncludeFile

; IncludeFile "Custom Lib.pb"

You will have all needed stuff to compile in this file.

Regards
Guimauve

Posted: Thu Aug 31, 2006 7:04 am
by mskuma
Thanks Guimauve for this. I think the definition of DegToRad seems to be missing? I uncommented "Custom Lib.pb" but I think it doesn't matter in this case.

Posted: Thu Aug 31, 2006 9:33 am
by Guimauve
Please download again, I have uploaded a corrected version.

Or just Copy/Paste these macros in the Custom Lib.pb

Code: Select all

Macro DegToRad(Angle)
  
   (Angle * #PI / 180)
  
EndMacro

Macro RGBColor(Red, Green, Blue)
   
   ((((Blue) << 8 + (Green)) << 8) + (Red))
   
EndMacro
Creating Custom lib it's not good when you want to share source code.

Sorry about that. :oops:

Regards
Guimauve

Posted: Thu Aug 31, 2006 10:19 am
by mskuma
Thanks Guimauve for the quick response. I redownloaded & all was fine. Looks like a cool version. Thanks again!