QFrogger game

General games-related topics
User avatar
thewiz
Posts: 58
Joined: Sun Aug 16, 2009 8:36 pm
Location: Crewe

QFrogger game

Post by thewiz »

Hi all,

Here is a new game for a 1Kb ZX81 called QFrogger.

I had this idea to write a number of games in 1Kb using about a quarter of the screen. I'll be entering it into the next mini game competition.

Keys are Q - T for up. A - G for down, O for right and P for right.

Thanks to Chad Gray for beta testing.
qfrog.jpg
(75.03 KiB) Downloaded 34986 times
Attachments
qfrog.rar
(4.5 KiB) Downloaded 397 times
qfrog.p
(941 Bytes) Downloaded 392 times
Memotech rules
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: QFrogger game

Post by sirmorris »

One word:

ABSOLUTELY FREAKING AWESOME!

This is a cracking little program - you've smashed expectations of what a 1k game can be!

It's rock hard - as it should be.
It's gorgeous to look at - A CARAVAN??!!
It's got the zap factor - it makes me jump when I play it.
It's ... How many bytes??!!

Congratulations. When's the next one coming?? :)

C
Chad
Posts: 40
Joined: Mon May 04, 2009 5:17 pm

Re: QFrogger game

Post by Chad »

Just wait til you see how fast that racing car goes!!! :p

Don't suppose I could request QDefender??!! I remember a 1k version in C&VG years ago written in basic... I wonder what you could achieve in machine code!

Chad
User avatar
thewiz
Posts: 58
Joined: Sun Aug 16, 2009 8:36 pm
Location: Crewe

Re: QFrogger game

Post by thewiz »

Thanks sirmorris for the review. Glad you liked it.
nama
Posts: 128
Joined: Fri May 09, 2008 4:49 pm

Re: QFrogger game

Post by nama »

Totally awesome!!!!
User avatar
yerzmyey
Posts: 1240
Joined: Thu May 15, 2008 10:11 am
Location: Rubber Planet
Contact:

Re: QFrogger game

Post by yerzmyey »

Incredible work.

Can I add the game to POUET portal???

Y
IN NIHILUM REVERTERIS - a big text-adventure game for ZX81: http://tiny.pl/g2m6m
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
User avatar
thewiz
Posts: 58
Joined: Sun Aug 16, 2009 8:36 pm
Location: Crewe

Re: QFrogger game

Post by thewiz »

Be my guest yerzmyey.
Memotech rules
User avatar
yerzmyey
Posts: 1240
Joined: Thu May 15, 2008 10:11 am
Location: Rubber Planet
Contact:

Re: QFrogger game

Post by yerzmyey »

Thank You.
It's ready now - http://pouet.net/prod.php?which=54093
IN NIHILUM REVERTERIS - a big text-adventure game for ZX81: http://tiny.pl/g2m6m
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
Sdw
Posts: 17
Joined: Mon Nov 09, 2009 1:39 pm

Re: QFrogger game

Post by Sdw »

Very impressive stuff! I've done some attempts at coding for the unexpanded machine, and it's quite the challenge trying to balance the RAM-consuming screen and the actual code.
Looks like you are using 15x16 chars for the screen, so that eats up a good 256 bytes (15 chars + end of line marker * 16) I guess?
Oh! Just noticed that you have included the source as well, so now I can study exactly how it was done! :D
User avatar
Math123
Posts: 44
Joined: Sun May 11, 2008 11:14 pm
Location: Germany Wuppertal
Contact:

Re: QFrogger game

Post by Math123 »

Hi thewiz!
Wow! This is impressive. I just saw the source... Nice work.

A hint to save at least 4 more bytes.

Code: Select all

AUTO    .DW 0                                   ; Line number (MSB)
        .DW USREND - USRBEG                     ; Line length
USRBEG  .DB $f5, $d4,                           ; PRINT USR
        .DB $1c + 1, $1c + 6, $1c + 5, $1c + 2, $1c + 7
        .db 126, 143, 1, 30, 0, 0               ; Always 16527
        .DB $76                                 ; EOL
USREND
You do not need to store the whole number literals. Since Basic looks only to the floating point values behind "db 126" this should work as well:

Code: Select all

AUTO    .DW 0                                   ; Line number (MSB)
        .DW USREND - USRBEG                     ; Line length
USRBEG  .DB $f5, $d4,                           ; PRINT USR
        .DB $1c                                 ; this is a 0. Maybe this byte can be skipped also?
        .db 126, 143, 1, 30, 0, 0               ; Always 16527
        .DB $76                                 ; EOL
USREND
Its worth the try to just skip the 0 as well...
Go on. Lets see more.

Matthias
Post Reply