Marbles2 – 8-Nov 2020 [devlog/marbles2]

I’ve been making super minor changes since I started this game, focusing mostly on getting the blocks to drop in a way that doesn’t halt the entire game play.
Since the game is (currently) written in NextBASIC the maths and logic to check which blocks to drop and how far is pretty intensive even when running at full tilt at 28Mhz.
If you watch the video below you’ll notice when I’m selecting the blocks on the far right of the grid, the time it takes to clear out the blocks increases giving the impression of a hang:

So I’ve been focusing on how to improve perceived performance.

Instead of scanning the whole grid, I capture the range of min-x, max-x and min-y (which is inverted) – so this speeds up the scanning process
During the scanning and clearing process, I’m repeatedly calling the readInput so that the pointer can still move whilst the work is being done – this reduces the feeling that the game has hung during larger scans
During the scan process (the tag routine), if there’s more than one block tagged, I immediately start removing these blocks from the display, this allows for large clearings to give visual feedback that there’s work being done, and so far has visually tricked me into thinking I can’t play until the animation is complete

With the fundamental game play mechanics in place, I’m now adding the details to the game like the “next stage” overlays, buttons to quit or retry, an interface to change the game seed – and, if technology permits, a way of submitting high scores online, via the spectrum…


This content originally appeared on remy sharp's b:log and was authored by remy sharp's b:log

I've been making super minor changes since I started this game, focusing mostly on getting the blocks to drop in a way that doesn't halt the entire game play.

Since the game is (currently) written in NextBASIC the maths and logic to check which blocks to drop and how far is pretty intensive even when running at full tilt at 28Mhz.

If you watch the video below you'll notice when I'm selecting the blocks on the far right of the grid, the time it takes to clear out the blocks increases giving the impression of a hang:

So I've been focusing on how to improve perceived performance.

  • Instead of scanning the whole grid, I capture the range of min-x, max-x and min-y (which is inverted) - so this speeds up the scanning process
  • During the scanning and clearing process, I'm repeatedly calling the readInput so that the pointer can still move whilst the work is being done - this reduces the feeling that the game has hung during larger scans
  • During the scan process (the tag routine), if there's more than one block tagged, I immediately start removing these blocks from the display, this allows for large clearings to give visual feedback that there's work being done, and so far has visually tricked me into thinking I can't play until the animation is complete

With the fundamental game play mechanics in place, I'm now adding the details to the game like the "next stage" overlays, buttons to quit or retry, an interface to change the game seed - and, if technology permits, a way of submitting high scores online, via the spectrum…

Originally published on Remy Sharp's b:log


This content originally appeared on remy sharp's b:log and was authored by remy sharp's b:log


Print Share Comment Cite Upload Translate Updates
APA

remy sharp's b:log | Sciencx (2020-11-08T00:00:00+00:00) Marbles2 – 8-Nov 2020 [devlog/marbles2]. Retrieved from https://www.scien.cx/2020/11/08/marbles2-8-nov-2020-devlog-marbles2/

MLA
" » Marbles2 – 8-Nov 2020 [devlog/marbles2]." remy sharp's b:log | Sciencx - Sunday November 8, 2020, https://www.scien.cx/2020/11/08/marbles2-8-nov-2020-devlog-marbles2/
HARVARD
remy sharp's b:log | Sciencx Sunday November 8, 2020 » Marbles2 – 8-Nov 2020 [devlog/marbles2]., viewed ,<https://www.scien.cx/2020/11/08/marbles2-8-nov-2020-devlog-marbles2/>
VANCOUVER
remy sharp's b:log | Sciencx - » Marbles2 – 8-Nov 2020 [devlog/marbles2]. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2020/11/08/marbles2-8-nov-2020-devlog-marbles2/
CHICAGO
" » Marbles2 – 8-Nov 2020 [devlog/marbles2]." remy sharp's b:log | Sciencx - Accessed . https://www.scien.cx/2020/11/08/marbles2-8-nov-2020-devlog-marbles2/
IEEE
" » Marbles2 – 8-Nov 2020 [devlog/marbles2]." remy sharp's b:log | Sciencx [Online]. Available: https://www.scien.cx/2020/11/08/marbles2-8-nov-2020-devlog-marbles2/. [Accessed: ]
rf:citation
» Marbles2 – 8-Nov 2020 [devlog/marbles2] | remy sharp's b:log | Sciencx | https://www.scien.cx/2020/11/08/marbles2-8-nov-2020-devlog-marbles2/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.