New release: Meteor Storm

Discussion, Reviews & High-scores

Moderator: Moderators

Post Reply
User avatar
Mike
Herr VC
Posts: 4841
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

New release: Meteor Storm

Post by Mike »

Maybe one of the shortest VIC games of all time:

Image

Meteor Storm for unexpanded VIC-20. Steer your space ship through a seemingly infinite meteor field. Z for left, C for right. 4 lines in CBM BASIC. Download

Greetings,

Michael
Last edited by Mike on Thu Feb 20, 2014 4:10 pm, edited 3 times in total.
User avatar
Pedro Lambrini
Vic 20 Scientist
Posts: 1132
Joined: Mon Dec 01, 2008 11:36 am

Post by Pedro Lambrini »

The best 4 lines of code I've ever played! I just wish I didn't have to type RUN every time the game ends! :)
"...That of the Eastern tribe being like a multitude of colours as if a rainbow had settled upon its brow..." Daniels 1:3
User avatar
Mike
Herr VC
Posts: 4841
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Post by Mike »

Adding this line restarts the game by pressing the Y key:

Code: Select all

5 GETA$:ON-(A$<>"Y")GOTO5:RUN
But then's already 5 lines. ;)

Cheers,

Michael
User avatar
Pedro Lambrini
Vic 20 Scientist
Posts: 1132
Joined: Mon Dec 01, 2008 11:36 am

Post by Pedro Lambrini »

Wow, that's the best 5 lines of code I've ever played! :P
"...That of the Eastern tribe being like a multitude of colours as if a rainbow had settled upon its brow..." Daniels 1:3
User avatar
GreyGhost
Vic 20 Nerd
Posts: 525
Joined: Wed Oct 05, 2005 11:10 pm

Post by GreyGhost »

Yes, I've seen much larger programs that end up doing the same thing. Nice work.
Rob
User avatar
Jeff-20
Denial Founder
Posts: 5759
Joined: Wed Dec 31, 1969 6:00 pm

Post by Jeff-20 »

I want screenshots of Mike's games in the Release thread. Could also post the code here?
High Scores, Links, and Jeff's Basic Games page.
User avatar
orion70
VICtalian
Posts: 4341
Joined: Thu Feb 02, 2006 4:45 am
Location: Piacenza, Italy
Occupation: Biologist

Post by orion70 »

Great demonstration of programming skills, congratulations! :D
Please Mike, follow Jeff's advice, and post screenshots here and in the General Topics thread.
User avatar
Mike
Herr VC
Posts: 4841
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Post by Mike »

Jeff-20 wrote:I want screenshots of Mike's games in the Release thread.
I've just found out, that Skydrive indeed supports deep linking of images. :)
Could also post the code here?
Here's the game listing:

Code: Select all

1 PRINT"{CLR,WHT}":DATA,,,,,,,,24,60,60,24,153,255,255,153,56,110,255,251,127,222,252,56
2 POKE56,28:CLR:POKE36879,14:FORT=0TO23:READA:POKE7424+T,A:NEXT:POKE36869,255:A=8174
3 POKEINT(RND(1)*330)+7702,34:GETA$:A=A+(A$="Z"ANDA>8164)-(A$="C"ANDA<8185):SC=SC+1
4 PRINT"{HOME,RVS ON}"SC"{HOME,DOWN,LEFT}"CHR$(148):IFPEEK(A)<>34THENPOKEA,33:POKE218,PEEK(218)OR128:GOTO3
The magic happens in line 4, where PRINT"{HOME,DOWN,LEFT}"CHR$(148) extends the first logical line, thereby scrolling everything below the first line down. POKE218,PEEK(218)OR128 then separates this logical line into two physical lines again.
User avatar
Jeff-20
Denial Founder
Posts: 5759
Joined: Wed Dec 31, 1969 6:00 pm

Post by Jeff-20 »

This reminds me of the 20 line game contest we had years ago. We should have a 5 line BASIC game contest.
High Scores, Links, and Jeff's Basic Games page.
Post Reply