
FreeBASIC's Official Forums
|
| View previous topic :: View next topic |
| Author |
Message |
|
|
Posted: May 30, 2007 12:22 Post subject: CSGP : Moon Lander... |
|
|
Just for fun, here another vintage mini game...
a very classic "Moon Lander"...
--to be compiled with fbc 0.17
As usual from me ... 320x240 (green monochromatic monitor)
All in one file, no resource dep.
no lib dep
no low level access .. etc etc.
still no SFX , no Music ... Lachie forgive me ;P
This mini game should works on any FB supported platform...
here the source code + win32 exe http://csgp.suret.net/blabla/viewtopic.php?f=1&t=8
Enjoy and have fun !
EDIT : 640x480 is default resolution now (320x240 is too crappy for vectorial drawing game, but still supported ... see beginning of code cof game screen resolution)
Last edited by redcrab on Aug 13, 2007 16:24; edited 3 times in total |
| |
|
| Back to top |
|
 |
|
|
Posted: May 30, 2007 12:28 Post subject: |
|
|
| yup just like the classic....ridiculously hard and no fun at all, great job :) (and I am serious, its nice, I just totally suck at this game) |
| |
|
| Back to top |
|
 |
|
|
Posted: May 30, 2007 12:33 Post subject: |
|
|
| Deleter wrote: | | yup just like the classic....ridiculously hard and no fun at all, great job :) (and I am serious, its nice, I just totally suck at this game) |
Thanks to try anyway ;) |
| |
|
| Back to top |
|
 |
|
|
Posted: May 30, 2007 14:39 Post subject: |
|
|
| Hi Redcrab, very nice game. I'll take a closer look at your code tonight. |
| |
|
| Back to top |
|
 |
|
|
Posted: May 30, 2007 14:52 Post subject: |
|
|
| h4tt3n wrote: | | Hi Redcrab, very nice game. I'll take a closer look at your code tonight. |
.... The code may not be as clean as you may expect. (no comment , no constructor and destructor in all actionable type (simily class) )
But in all cases if it may help you in your own code ... suck the code as you wish... but let me notify about it ... It's cool to know what other do with the code...
Have fun ! |
| |
|
| Back to top |
|
 |
|
|
Posted: May 30, 2007 14:59 Post subject: |
|
|
| I thought it's great. ^^ |
| |
|
| Back to top |
|
 |
|
|
Posted: May 30, 2007 15:37 Post subject: |
|
|
| redcrab wrote: | | h4tt3n wrote: | | Hi Redcrab, very nice game. I'll take a closer look at your code tonight. |
.... The code may not be as clean as you may expect. (no comment , no constructor and destructor in all actionable type (simily class) )
But in all cases if it may help you in your own code ... suck the code as you wish... but let me notify about it ... It's cool to know what other do with the code...
Have fun ! |
Sure thing! Atm I'm making a more advanced version of this type of game. It's always nice to see how other people code the same type of program that you're working on yourself. If I get umm... heavily inspired by your code, I'll give you credit for it. |
| |
|
| Back to top |
|
 |
|
|
Posted: May 30, 2007 17:25 Post subject: |
|
|
| Fun game :D |
| |
|
| Back to top |
|
 |
|
|
Posted: May 30, 2007 19:46 Post subject: |
|
|
| Gah! I doesn't compile in FB ver.0.16b. Yes, I know. I should download the latest version. Here we go... |
| |
|
| Back to top |
|
 |
|
|
Posted: May 30, 2007 19:57 Post subject: |
|
|
| Lachie Dazdarian wrote: | | Gah! I doesn't compile in FB ver.0.16b. Yes, I know. I should download the latest version. Here we go... |
Sorry ... I try to begin to code with latest FB feature... so
So .. you can get the code + win32 exe (already compiled ;) )at this url
http://csgp.suret.net/lander.zip
sorry to forgot to provide the already compiled prog
.... Come on gamemaster you do not use 0.17 yet ... ;P
I know that you were away for a quite long time ... I forgive you ;D
I'm pleased to see you back. |
| |
|
| Back to top |
|
 |
|
|
Posted: May 30, 2007 20:23 Post subject: |
|
|
Hmm...for some reason I can't compile the code, despite the fact I downloaded the lastest version of fb. I'll have to deal with this later.
Anyway, thanks for providing the executable. The retro sytle of the game is great. I dig it very much. You should really try to expand on this. Not much. Just add a menu, some options, like ability to edit terrains, and similar. I might be willing to add sound effects (retro style), if interested (this weekend). That is, if I get to compile the code. Weird. I get this error (among others):
| Code:
|
|
D:/Working/freeBASIC/FBGames/lander/lander.bas(47) : Error 18: Syntax Error, found: 'Constructor' Declare Constructor() ^ D:/Working/freeBASIC/FBGames/lander/lander.bas(48) : Error 18: Syntax Error, found: 'Constructor' Declare Constructor(x As Double, y As Double) ^ D:/Working/freeBASIC/FBGames/lander/lander.bas(49) : Error 18: Syntax Error, found: 'Sub' Declare Sub init() |
The version of FB is checked. It's 0.17. |
| |
|
| Back to top |
|
 |
|
|
Posted: May 30, 2007 21:38 Post subject: |
|
|
Lachie, did you use " fbc -lang fb" or with no option and not "fbc -lang qb" ... strange I use the FBC from fbedit bundle you may download it at http://www.fbedit.freebasic.net
it's a recent 0.17 CVS version...(around May 2007 version).
hope you will be able to compile new FB code. |
| |
|
| Back to top |
|
 |
|
|
|
| Back to top |
|
 |
|
|
Posted: May 30, 2007 23:38 Post subject: |
|
|
| Deleter wrote: | | yup just like the classic....ridiculously hard and no fun at all, great job :) (and I am serious, its nice, I just totally suck at this game) |
haha, the trick is to use short bursts :P |
| |
|
| Back to top |
|
 |
|
|
Posted: May 31, 2007 0:46 Post subject: |
|
|
| When I first start off on the level I do really small bursts and aim my ship at the platform. Just as I'm about to hit it, I pump on the fuel :D Made it to level 10 or something, I don't recall. |
| |
|
| Back to top |
|
 |
|
|
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
|
|