Munchy 2K (WIP)

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
Post Reply
Karl_G
Posts: 12
Joined: Sun Apr 28, 2024 4:49 pm

Munchy 2K (WIP)

Post by Karl_G »

This is a 2K ZX81 version of the one-line Pac-Man style game that has been ported to a number of other platforms. The original version is a web game. There is a list of ports for other platforms in a topic for the Atari 2600 version.

Anyway, this is a preliminary version, but it's fully playable. Making a 1K version wasn't possible for me, so I'll instead concentrate on fitting as much as I can into a 2K version instead.

How to play: Press space to change direction. Eat all the dots, and avoid the ghost!

Scoring:

Eat a dot: 1 point
Eat a power pellet: 10 points
Eat a ghost: 100 points

Version 2 (May 8th, 2024)
Screenshot from 2024-05-08 11-14-11.png
munchy.p
(1.77 KiB) Downloaded 21 times
munchy.asm
(17 KiB) Downloaded 9 times
Last edited by Karl_G on Wed May 08, 2024 6:49 pm, edited 1 time in total.
dr beep
Posts: 2133
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Munchy 2K (WIP)

Post by dr beep »

Why doesn't it fit 1K?

I can help to make it fit.
salvacam
Posts: 54
Joined: Wed Jul 21, 2021 4:50 pm

Re: Munchy 2K (WIP)

Post by salvacam »

It would be nice if it had a hi-score.
I find it more convenient to have a key for each direction, instead of a single key to change direction. but this is something personal.
My games

ZX81 hoy Blog (in Spanish) of new games and applications for the ZX81
Karl_G
Posts: 12
Joined: Sun Apr 28, 2024 4:49 pm

Re: Munchy 2K (WIP)

Post by Karl_G »

dr beep wrote: Tue May 07, 2024 10:56 am Why doesn't it fit 1K?

I can help to make it fit.
It really wasn't even that close to fitting into 1K, so I'm okay with it being 2K. Optimization tips would be welcome, but I will likely use them to fit as much as I can into 2K. I have experience with 6502 assembly, but this is my first time using Z80 assembly.
munchy.asm
(14.96 KiB) Downloaded 18 times
Karl_G
Posts: 12
Joined: Sun Apr 28, 2024 4:49 pm

Re: Munchy 2K (WIP)

Post by Karl_G »

salvacam wrote: Tue May 07, 2024 3:39 pm It would be nice if it had a hi-score.
I find it more convenient to have a key for each direction, instead of a single key to change direction. but this is something personal.
Thanks for the feedback! I'm planning on adding a high score feature, and a few other things as well, but I wanted to post what I had so far once I got to the point of it being fully playable.

I could potentially add support for both direction keys as well as keeping the space bar to turn. What keys do you think would be best for left and right?
dr beep
Posts: 2133
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Munchy 2K (WIP)

Post by dr beep »

Karl_G wrote: Tue May 07, 2024 4:21 pm
dr beep wrote: Tue May 07, 2024 10:56 am Why doesn't it fit 1K?

I can help to make it fit.
It really wasn't even that close to fitting into 1K, so I'm okay with it being 2K. Optimization tips would be welcome, but I will likely use them to fit as much as I can into 2K. I have experience with 6502 assembly, but this is my first time using Z80 assembly.

munchy.asm
You already used a very good optimization model on startup and screen!
Karl_G
Posts: 12
Joined: Sun Apr 28, 2024 4:49 pm

Re: Munchy 2K (WIP)

Post by Karl_G »

I added version 2 to the first post (binary and source). This version adds:
  • High score is displayed
  • Speed and difficulty tweaks
  • Text as "sound effects"
  • Flashing when power pellet is wearing off
Karl_G
Posts: 12
Joined: Sun Apr 28, 2024 4:49 pm

Re: Munchy 2K (WIP)

Post by Karl_G »

Oh, and since I'm in a dev forum, I have a dev-related question about this.

Is there a good way to calculate how many bytes I have left? In other assemblers, I've been able to put an assembler directive asking it to echo the byte difference between two labels to get an idea.
salvacam
Posts: 54
Joined: Wed Jul 21, 2021 4:50 pm

Re: Munchy 2K (WIP)

Post by salvacam »

Karl_G wrote: Wed May 08, 2024 6:52 pm I added version 2 to the first post (binary and source). This version adds:
  • High score is displayed
  • Speed and difficulty tweaks
  • Text as "sound effects"
  • Flashing when power pellet is wearing off
Now it's more playable. In version 1 it was more difficult
My games

ZX81 hoy Blog (in Spanish) of new games and applications for the ZX81
Post Reply