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 / Classic 2D Space shooter in 20 lines!

Author
Message
AlexRiva
19
Years of Service
User Offline
Joined: 29th Jan 2005
Location: Monza, Italy
Posted: 1st Feb 2005 09:22 Edited at: 10th Feb 2005 00:31
Hi everyone!
I have done a classic 2d Space shoot-em-up in 20 lines. Check out the counting of commands, it's a maximum of 25 commands x line! (If not so please tell me, I can cut something else).
Starscape, aliens firing, 3 parallax scrolling levels of stars, sound and music all included in 197k of Unzipped media and source.
Try out from the download button here at your right/bottom.
Tested OK on DBPRO Trial 1.05.
Alex



I hope code is within the 20 lines rules, otherwise tell me!

Attachments

Login to view attachments
AlexRiva
19
Years of Service
User Offline
Joined: 29th Jan 2005
Location: Monza, Italy
Posted: 1st Feb 2005 21:36
The keys to play:
return : start game
ctrl: fire
arrows: move ship
Monsieur Mort
19
Years of Service
User Offline
Joined: 12th Feb 2005
Location:
Posted: 14th Feb 2005 07:23
Jesus... That's impressive. You wouldn't have thought it was possible to do that in 20 lines. It fitted in 20 fine on my comp, though it did run a bit fast. Maybe you want to code HL3 in under a page next?

Yes, sir, but sir is not a rabbit, is sir?
CHECK
19
Years of Service
User Offline
Joined: 15th Dec 2004
Location:
Posted: 16th Feb 2005 02:51
that is an extremly good game for 20 lines i like it

CHECK
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 19th Feb 2005 02:33
oh.. my.... god...
That was a 20 liner?
Just checking the code...
20 lines!
That's just INCREDIBLE!
How long have you been coding? 'Cause you're good


Check out PanzerGames at: http://www.freewebs.com/panzergames
æ ø å
AlexRiva
19
Years of Service
User Offline
Joined: 29th Jan 2005
Location: Monza, Italy
Posted: 19th Feb 2005 05:08
Thanks for positive comments.
@KLU 007: I code from the age of 10 (now I'm 25) when I used my uncle's C64 first in Basic and then in Assembly. After that I started coding in C on PCs. This is my second work in DB(THE tool for game development) after the 3D Marble Run, by now I'm developing a full version of this shoot'em up (much more than 20 lines).
Please could a moderator or long time DB coder tell me if my source is without any doubt within the 20 lines rules? I counted no more than 25 commands for line. Thanks.
Alex
StepTiger
19
Years of Service
User Offline
Joined: 18th Feb 2005
Location:
Posted: 20th Feb 2005 23:23
EHM!
It isnt a 20 liner!
It even isnt in the 200 line rule!
He just take 20 lines and splitted them with a ":"
Thats a 300 liner!
StepTiger
19
Years of Service
User Offline
Joined: 18th Feb 2005
Location:
Posted: 20th Feb 2005 23:25
!!!! 1 of his line was 23 commands long!!! 23!!! 23 line in 1 line!
Is that allowed???
StepTiger
19
Years of Service
User Offline
Joined: 18th Feb 2005
Location:
Posted: 20th Feb 2005 23:37
Hi again! This is your real code:

yeah! A 300 liner!
399 lines!
If you can take this code for the 20 line code challange, the owner of the challange were drunk when they made the rules!
StepTiger
19
Years of Service
User Offline
Joined: 18th Feb 2005
Location:
Posted: 20th Feb 2005 23:41
Sorry! Youre right! Never more than 25 commands per line! Sorry! I take everything back!
AlexRiva
19
Years of Service
User Offline
Joined: 29th Jan 2005
Location: Monza, Italy
Posted: 21st Feb 2005 01:59
No problem. You made a big work for me, checking command counts for line.
Deadwords
19
Years of Service
User Offline
Joined: 2nd Feb 2005
Location: Canada
Posted: 24th Feb 2005 00:17
You're very good, AlexRiva, i hope that i will be a good programmer like you before i start what i want to do later (my job), Programmer. 'Cause i am not too old...

PDAC 4 Ever! http://www.pdac-online.com
Current Project: House Maker 1.0
http://www.pdac-online.com/PDAC%20Logo.jpg
DEANO
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United States
Posted: 25th Feb 2005 07:26
I thinks me smells a winner

"When I examine myself and my methods of thought, I come to the conclusion that the gift of fantasy has meant more than my talent for absorbing positive knowledge."
-ALBERT EINSTEIN

Login to post a reply

Server time is: 2024-11-24 02:52:31
Your offset time is: 2024-11-24 02:52:31