Gameboy Development Forum

Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)

You are not logged in.

#1 2017-03-21 22:58:42

Alexander the bat
Member
Registered: 2017-03-19
Posts: 31

Createing a Sudoku Grid

I'm basically new to the World of C and GBDK and I'm basically programming a fun Sudoku game with over 15,000 puzzles! (if I can stuff it within' 4MB of code) and I'm trying figure out on how to make the Sudoku Grid by either making it as sprites or drawing it by C, what I can do to make a Sudoku grid without using sprites and taking up space?

I could draw it out but it gonna be tricky for the Gameboy to handle!

Offline

 

#2 2017-03-22 17:21:47

RoboTwo
Member
From: Sweden
Registered: 2014-10-29
Posts: 19

Re: Createing a Sudoku Grid

As far as I know, a Sudoku grid remains fairly static, so I would definitely recommend using the BG layer for that.

You could write the inital grid pattern to it and just modify a few bytes at a time when putting down numbers on it.
If you're going for a 9x9 grid it'll even fit very nicely within the 256x256 pixel BG map, meaning you won't need to put much effort into loading the BG as it scrolls.


Shake well before use

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson