]> git.draconx.ca Git - rrace.git/commit
Pack/unpack the tile planes arithmetically.
authorNick Bowler <nbowler@draconx.ca>
Wed, 14 Dec 2022 03:10:15 +0000 (22:10 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 14 Dec 2022 03:10:15 +0000 (22:10 -0500)
commitf6be82664a5b8e8bc34c048b56417b591dcd5a5e
tree8276ca25cf0c126315cf324dba65d63a450e256b
parent4c08507a26fbe96d3978191a8dea26c1dc4e3d55
Pack/unpack the tile planes arithmetically.

Instead of a bunch of if statements, add a macro to extract an
individual tile value from the game/goal bitmaps using bitwise
arithmetic, and restructure the drawing paths to use it.

A similar change is made to populate the bitmaps during game board
initialization.  This simplifies the code a bit and also seems to
reduce the compiled size somewhat.
src/curses.c
src/game.c
src/game.h
src/x11.c