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.

The 20 Line Challenge / 50 Liner - DBP - Empire Of The Far Suns - Space Conquest Strategy Game

Author
Message
IBOL
Moderator
13
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 20th Mar 2007 09:53 Edited at: 22nd Mar 2007 08:35
Empire Of The Far Suns - Space Conquest Strategy Game
created for the 50-line challenge, this game features
combat, invasion, and research among the stars,
against two hostile alien forces, in an ever-changing galaxy.

code as a 50-liner:
+ Code Snippet

Readme & Instructions:

+ Code Snippet

if you are running dbp 6.2 or above, i recommend this code:
+ Code Snippet

Main Screen:


Attachments

Login to view attachments
IBOL
Moderator
13
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 20th Mar 2007 09:55
+ Code Snippet

this is the code broken up into nice, easy counting blocks,
so you can see how many commands are on each line.

Attachments

Login to view attachments
IBOL
Moderator
13
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 20th Mar 2007 09:56 Edited at: 22nd Mar 2007 01:54
+ Code Snippet

and finally, the code BEFORE all the condensing began,
complete with all the remarks and notes.

IBOL
Moderator
13
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 20th Mar 2007 10:10
The Download link on this post has the compiled .exe zipped.

Attachments

Login to view attachments
drarem
14
Years of Service
User Offline
Joined: 26th Jun 2003
Location:
Posted: 21st Mar 2007 15:42
First, the red on black in the screenshot do not do the eyes good, those are primary colors and they just don't go together when you're trying to focus on the 'action'..

Second, have you tested the code? I get a 'line out of place' error on the cleaned up code and the compressed code I get 'array out of bounds 151' or something like that.

Looks interesting though.
IBOL
Moderator
13
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 21st Mar 2007 19:58 Edited at: 21st Mar 2007 20:00
yes, i tested the code many times. i use DBP v5.2 , and all the different versions out there have their own quirks.
i use 5.2 because it's stable, and it doesn't require dx9.0c,
which i don't have, and can be limiting to non-dbp users.
(it also compiles in dbp 'straight-from-the-disc')

did you try running the 3rd code version, with no condensing,
or the DL link?

about the colors, they look much more washed out on my computer...
an old version of photoshop has my gamma all screwy.

i would appreciate it if some other people would try to compile this, and could post their version of dbp.

thanks,
bob

French gui
13
Years of Service
User Offline
Joined: 11th May 2004
Location: France
Posted: 21st Mar 2007 20:21
Good work as always Bob! I myself have a 'array out of bounds error' that is normal because of this line:

inc RP(t,rnd(5)+1),u

Rnd(5)+1 gives random numbers from 1 to 6 which is out of bounds ( dim RP(3,5) ).

I really don't know why it works with your U6.2.
Code Dragon
11
Years of Service
User Offline
Joined: 21st Aug 2006
Location: Everywhere
Posted: 21st Mar 2007 23:43
Good job on this, it reminds me of Alpha Centuri, but in that game you only use 1 planet. But I really think you should change the background color of the text, or just have no background color.

By reading this you have given me brief control of your mind.
IBOL
Moderator
13
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 22nd Mar 2007 01:58 Edited at: 22nd Mar 2007 02:00
thanks for trying it, guys!

Quote: "Rnd(5)+1 gives random numbers from 1 to 6 which is out of bounds ( dim RP(3,5) )."

yeah, thanks...i had changed my mind during programming, making NAV a valid preference...i never changed the DIM...but i have since fixed it in the above codes.

i have made a NEW VERSION where you can
pick your own colors before the game starts.
+ Code Snippet
this is NOT my official entry, but it still conforms to 50-line.
if someone comes up with a really nice color scheme,
write down the numbers and i WILL change it.
thanks,
bob

drarem
14
Years of Service
User Offline
Joined: 26th Jun 2003
Location:
Posted: 22nd Mar 2007 02:56
both the Omega and the Alpha DL link doesn't work, pulls up a blank screen, and the 3rd non-convoluted code snippet tells me command at line 596 is out of place.
drarem
14
Years of Service
User Offline
Joined: 26th Jun 2003
Location:
Posted: 22nd Mar 2007 02:57
this just-posted version gave me no errors.
IBOL
Moderator
13
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 22nd Mar 2007 07:13
thanks for trying so much drarem!
if you find a color scheme that works let me know.

n008
10
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 20th May 2007 22:18
holy crap that is a lot of code! Nice work, i liked the game.

Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
bosskeith
11
Years of Service
User Offline
Joined: 5th Dec 2005
Location:
Posted: 5th Jun 2007 07:15
wow any hints for your game i cannot win no matter how i try...i use to play a game like this long ago but battles were animated for 50 lines this is a knock up job

bass guy1669
10
Years of Service
User Offline
Joined: 24th Mar 2007
Location: The Zone
Posted: 8th Jun 2007 15:20
wow major bump on noo8s part

come see night shift at http://forum.thegamecreators.com/?m=forum_view&t=106003&b=25 see you there
Libervurto
11
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 13th Aug 2007 22:20
I'd like to convert this to DBC, can you organise the code better and have a main loop that branches to all these gosubs
Thanks, the game looks great

Your signature has been erased by a mod because it was rubbish.
Markswii
10
Years of Service
User Offline
Joined: 5th Aug 2007
Location: Object position x (mark)
Posted: 19th Aug 2007 02:59 Edited at: 26th Aug 2007 23:13
I am a "noob" to dbp and I am very new to programming I have had some experience with other languages but I have never used a program such as dark basic you have given my xx year old mind something to think about for awhile!

Login to post a reply

Server time is: 2017-11-25 07:48:28
Your offset time is: 2017-11-25 07:48:28