Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / (DBPRO + Matrix1Utils) ASTROLANDER, my attempt to clone Lunar Lander (source)

Author
Message
Starshyne Emir
7
Years of Service
User Offline
Joined: 27th Nov 2016
Location: Porto Alegre, southern Brazil
Posted: 17th May 2019 18:29
Well, this is something I am working since yesterday.
It is a Lunar Lander clone, but it is very, very simple yet.

Take a look. Just paste it somewhere and compile.


God is real - except if declared as integer.
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 17th May 2019 23:53

What's it supposed to do?
It seems to be rolling random numbers and spurting out some particles at me when i press CTRL
Send your parents to noisy sprite demo hell... enter the D-Zone
LBFN
16
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 18th May 2019 22:40 Edited at: 21st May 2019 03:06
Ya, what Derek Darkly said....

EDIT: I did manage to get it going and it is decent start for a game that was started the day before.



So many games to code.....so little time.
Starshyne Emir
7
Years of Service
User Offline
Joined: 27th Nov 2016
Location: Porto Alegre, southern Brazil
Posted: 21st May 2019 23:24
Just explaining to mr. Daddy:

First you choose a lander. Up and down to select, ENTER to confirm, CTRL to test thrusters.

In game, up activates thrusters, left and right rotates ship.
You need a vertical speed below 3.0 to land safely (and a horizontal speed smaller than 0.5, too).

I know, it is not obvious, but it is not a real game, it is just a model of something I was trying to accomplish and, when working, I decided to share with you.

PS: How can I apply air resistence? Wihout it, I will not be able to simulate atmosphere and winds.
God is real - except if declared as integer.
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 25th May 2019 15:00
To be clear, in my first response I mainly just wanted to use the word spurting.

How can I apply air resistence? Wihout it, I will not be able to simulate atmosphere and winds.

All sarcasm aside, everything being a variable, just create that/those variable(s) then imagine how it would affect the craft, then apply the alteration with inc or dec

Send your parents to noisy sprite demo hell... enter the D-Zone

Login to post a reply

Server time is: 2024-03-29 07:47:29
Your offset time is: 2024-03-29 07:47:29