Page 1 of 1
Simple Gaming Grid
Posted: Wed Mar 24, 2010 3:21 am
by ColBoy
I am looking to port and some old retro basic games to Purebasic and was wondering what's the best approach to writing to the screen. This is all low res stuff, and would be based on a 32x24 grid. Each cell would consist of an 8x8 character. So I would basically have my UDG characters, in some kind of enumeration. I Imagine I would use a 2D array, 32x24, with each array cell, containing 0 for space, 1 for reverse space, etc. What would be the best way to display the grid. Would love to be able to scale the grid up to the capacity of the screen, i.e. 1x, 2x, 3x, etc. upto max screen width.
Any pointers gratefully received.
Re: Simple Gaming Grid
Posted: Wed Mar 24, 2010 4:05 am
by Demivec
ColBoy wrote:I am looking to port and some old retro basic games to Purebasic and was wondering what's the best approach to writing to the screen. This is all low res stuff, and would be based on a 32x24 grid. Each cell would consist of an 8x8 character. So I would basically have my UDG characters, in some kind of enumeration. I Imagine I would use a 2D array, 32x24, with each array cell, containing 0 for space, 1 for reverse space, etc. What would be the best way to display the grid. Would love to be able to scale the grid up to the capacity of the screen, i.e. 1x, 2x, 3x, etc. upto max screen width.
Use sprites to display the Spectrum character patterns (or any other character patterns).
Re: Simple Gaming Grid
Posted: Wed Mar 24, 2010 7:49 am
by Kaeru Gaman
Re: Simple Gaming Grid
Posted: Wed Mar 24, 2010 1:55 pm
by ColBoy
Excellent, thanks, I think that puts me on the right track. Had to add .s to the Read command, but otherwise the demo worked great. Just need to play with UDG's and colour.