Simple Gaming Grid

Advanced game related topics
ColBoy
Enthusiast
Enthusiast
Posts: 143
Joined: Fri Feb 13, 2004 2:37 pm
Location: Ottawa, Canada
Contact:

Simple Gaming Grid

Post 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.
Colin
User avatar
Demivec
Addict
Addict
Posts: 4282
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Simple Gaming Grid

Post 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).
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: Simple Gaming Grid

Post by Kaeru Gaman »

oh... and have a nice day.
ColBoy
Enthusiast
Enthusiast
Posts: 143
Joined: Fri Feb 13, 2004 2:37 pm
Location: Ottawa, Canada
Contact:

Re: Simple Gaming Grid

Post by ColBoy »

Kaeru Gaman wrote:have a look at this
http://www.purebasic.fr/english/viewtopic.php?t=28597
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.
Colin
Post Reply