Log In  


Cart #blockrect-1 | 2021-12-04 | Code ▽ | Embed ▽ | No License
5

Here is Blockrect, my Pico-8 version of the Game Boy Advance game "It's Mister Pants" from 2004.

The basic idea of the game is to create rectangles which have to be 2 by 3 blocks or larger to clear them from the grid.

Blocks cannot be placed on top of blocks of the same color that are already on the grid, but they can be placed on top of blocks of any other color which causes the different blocks on the grid to disappear.

Features:

  • Normal mode

    • 250 puzzles
    • 2 unsolved puzzles unlocked at a time
    • cheat mode
    • restart level, give up via menu
  • Freestyle mode

Have fun!

5


The game doesn't start. "Booting cartridge..."
Something to do with version 0.2.4 @zep?


This is the problem why the cart is not loading in 0.2.4. It seems like the string termination is different between version 0.2.3 and 0.2.4.

@zep @dw817

This code sample stops in 0.2.3 and keeps running in 0.2.4

local p=1
local s="123465789"
repeat 
    print(p)                    
    local v = sub(s,p,p)    
    local numeric = (tonum(v) != nil)                
    if (numeric) then
        p+=1
    end
until (not numeric)

Uploaded version 1.1. It works now.


Thanks for pointing me here, @troske007.

Yeah that is pretty creepy. A string termination code may be quite critical in a lot of existing TWEETS out there. Maybe ZEP will say why he changed it from the latter ?



[Please log in to post a comment]