Munchy 2K (WIP)
Munchy 2K (WIP)
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)
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)
Last edited by Karl_G on Wed May 08, 2024 6:49 pm, edited 1 time in total.
Re: Munchy 2K (WIP)
Why doesn't it fit 1K?
I can help to make it fit.
I can help to make it fit.
Re: Munchy 2K (WIP)
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.
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.
Re: Munchy 2K (WIP)
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.
Re: Munchy 2K (WIP)
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?
Re: Munchy 2K (WIP)
You already used a very good optimization model on startup and screen!Karl_G wrote: ↑Tue May 07, 2024 4:21 pmIt 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
Re: Munchy 2K (WIP)
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
Re: Munchy 2K (WIP)
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.
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.
Re: Munchy 2K (WIP)
Now it's more playable. In version 1 it was more difficult