|
I was writing a whack-a-mole. Hit some snags with my logic and it being incredibly slow (load/save are rather slow on chip8 if you rely on them a lot). After postulating with Internet Janitor about it for a while, basically I'd have to up the cycles to something ridiculous and frame-limit it somehow with the delay timer, or limit it to two moles which I could keep in memory. I started experimenting with a new data structure layout for that and it ended up working out. Maybe 3 would work out, I'm not sure. Anyway, I've learned a lot but I'm not having fun with this particular project anymore, so I'm going back to other projects. I'm popping the current code out and if someone wants to play with it, I'm not offended (but you might be, looking at the code). Warning: my draw animation functions don't work right now, but the graphics are top-notch chip8 greatness, if I do say so myself. '1' resets the board/game, and '2' fails to draw a mole. http://johnearnest.github.io/Octo/index.html?gist=6690bfb2e97fc288fc0f
|
# ¿ Jul 21, 2014 04:42 |
|
|
# ¿ May 10, 2024 00:04 |