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.
Simple Gaming Grid
Simple Gaming Grid
Colin
Re: Simple Gaming Grid
Use sprites to display the Spectrum character patterns (or any other character patterns).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.
- Kaeru Gaman
- Addict

- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Re: Simple Gaming Grid
have a look at this
http://www.purebasic.fr/english/viewtopic.php?t=28597
http://www.purebasic.fr/english/viewtopic.php?t=28597
oh... and have a nice day.
Re: Simple Gaming Grid
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.Kaeru Gaman wrote:have a look at this
http://www.purebasic.fr/english/viewtopic.php?t=28597
Colin
