freebasic.net Forum Index
FreeBASIC's Official Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log inLog in

CSGP : Moon Lander...
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    freebasic.net Forum Index -> Projects
View previous topic :: View next topic  
Author Message
redcrab
Sr. Member
PostPosted: May 30, 2007 12:22    Post subject: CSGP : Moon Lander... Reply with quote

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
View user's profile Send e-mail Visit poster's website
Deleter
Master
PostPosted: May 30, 2007 12:28    Post subject: Reply with quote

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
View user's profile
redcrab
Sr. Member
PostPosted: May 30, 2007 12:33    Post subject: Reply with quote

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
View user's profile Send e-mail Visit poster's website
h4tt3n
Sr. Member
PostPosted: May 30, 2007 14:39    Post subject: Reply with quote

Hi Redcrab, very nice game. I'll take a closer look at your code tonight.
 
Back to top
View user's profile Send e-mail
redcrab
Sr. Member
PostPosted: May 30, 2007 14:52    Post subject: Reply with quote

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
View user's profile Send e-mail Visit poster's website
cha0s
Site Admin
PostPosted: May 30, 2007 14:59    Post subject: Reply with quote

I thought it's great. ^^
 
Back to top
View user's profile Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
h4tt3n
Sr. Member
PostPosted: May 30, 2007 15:37    Post subject: Reply with quote

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
View user's profile Send e-mail
Pritchard
Guru
PostPosted: May 30, 2007 17:25    Post subject: Reply with quote

Fun game :D
 
Back to top
View user's profile Send e-mail
Lachie Dazdarian
Master
PostPosted: May 30, 2007 19:46    Post subject: Reply with quote

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
View user's profile Send e-mail Visit poster's website
redcrab
Sr. Member
PostPosted: May 30, 2007 19:57    Post subject: Reply with quote

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
View user's profile Send e-mail Visit poster's website
Lachie Dazdarian
Master
PostPosted: May 30, 2007 20:23    Post subject: Reply with quote

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
View user's profile Send e-mail Visit poster's website
redcrab
Sr. Member
PostPosted: May 30, 2007 21:38    Post subject: Reply with quote

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
View user's profile Send e-mail Visit poster's website
cha0s
Site Admin
PostPosted: May 30, 2007 23:30    Post subject: Reply with quote

Lachie: http://www.freebasic.net/forum/viewtopic.php?p=70210#70210
 
Back to top
View user's profile Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
1000101
Hero
PostPosted: May 30, 2007 23:38    Post subject: Reply with quote

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
View user's profile
Pritchard
Guru
PostPosted: May 31, 2007 0:46    Post subject: Reply with quote

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
View user's profile Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    freebasic.net Forum Index -> Projects All times are GMT
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
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



sf.net phatcode