Cpl.Bator Asteroids Game Revised

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Guimauve
Enthusiast
Enthusiast
Posts: 742
Joined: Wed Oct 22, 2003 2:51 am
Location: Canada

Cpl.Bator Asteroids Game Revised

Post 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
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post 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
User avatar
Guimauve
Enthusiast
Enthusiast
Posts: 742
Joined: Wed Oct 22, 2003 2:51 am
Location: Canada

Post 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
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post 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.
User avatar
Guimauve
Enthusiast
Enthusiast
Posts: 742
Joined: Wed Oct 22, 2003 2:51 am
Location: Canada

Post 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
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

Thanks Guimauve for the quick response. I redownloaded & all was fine. Looks like a cool version. Thanks again!
Post Reply