Log In  

Cart #19873 | 2016-04-18 | Code ▽ | Embed ▽ | No License

Submitted to #LOWREZJAM: https://program_ix.itch.io/mslcom64

In MISSLCOM64, you control the missile defence system for a small town that's under attack. Move the cursor with the arrows and send bullets up to destroy the missiles with Z.

Made in about two and a half hours. Hinged on the realisation late the night before submission that I could hack my own sprite function to make PICO-8 effectively 64x64 (by stretching EVERY sprite*2). Unfortunately this meant to stay within the 64x64 grid, I had to do a lot of manual drawing of text and write a custom function to draw numbers based on sprites too. Still, I think it came out pretty well. If I'd come up with a way to do text without drawing it in the spritesheet, I would have had an easier time I think. (And given how quickly I did the numbers rendering function, it would have been well worth the time invested.) But it would've meant either custom sprite sizes for text, or having a lot less text onscreen. So whatever.

For those interested, the function to 'convert' PICO-8 to 64x64 is this:


If you replace all your SPR() calls with that, and keep your coordinates inside (64, 64), it should 'just work'. Problem is that now you have half as many sprites' worth of space. I didn't want to get into half-size sprites, but you definitely could change this function a little to get that if you are confident in how the sprite numbering works (since e.g., 4x4 sprites will mean you cannot rely on the numbers in the UI).

EDIT: You can also just do POKE(0x5F2C,3) to achieve the same effect without all the messing about. >.< Oh well. It was a fun hack.

Anyway, enjoy!

P#19876 2016-04-18 03:30 ( Edited 2016-04-18 07:45)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-08-06 00:57 | 0.014s | 4194k | Q:22