aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* use sprites to draw cursor and boardHEADmainla-ninpre2023-08-291-44/+58
| | | | | | | | | | | | | | this is a bit more code, but ten times less cycles to draw the board and the cursor. the latter now looks slightly different, this is somewhat unintentional, but only slightly. also board is now drawn at the background layer, while everything else is on foreground. doesn't matter much, but makes more sense. in uxn32 redrawing the cursor erases figures. looks awful and is a bug. but this happens probably because uxn32 lacks the recent update to a screen device.
* refactoring and optimizationla-ninpre2023-08-292-28/+35
| | | | | | | - remove logic from drawing code (also simplify) - remove ability to make move with space key - fix bug where game instantly restarts at the end (key release event was triggering the restart)
* compact board drawing codela-ninpre2023-08-281-26/+33
| | | | also make cursor change color in place
* gitignore: ignore sym files and snarfla-ninpre2023-08-281-0/+2
|
* remove makefile and update readmela-ninpre2023-08-282-40/+9
|
* major refactoringla-ninpre2023-08-281-312/+194
| | | | | | | | | | | | | | | | | - fix bug when game restarts and board doesn't get cleared - optimize by using immediate opcodes and fallthrough subroutines - lint with uxnlin - format with uxnfor - store x and y coordinates of the cursor in different bytes (i thought this was a cool memory hack, but since the variables are located in zero page this doesn't save memory, on the contrary, it adds unnecessary complexity to manage packing and unpacking coordinates from nibbles) - remove loops from check-win - remove nested comments - avoid redoing some work when game restarts (restart code now jumps to code that is necessary to only reset game state and clear the board)
* readme: correct prerequisitesla-ninpre2022-09-271-3/+3
|
* apply optimizationsla-ninpre2022-07-072-10/+16
| | | | add lint to makefile
* makefile: allow uxnasm to be used as an assemblerla-ninpre2022-07-051-1/+2
|
* initla-ninpre2022-07-045-0/+390