RPGDXThe center of Indie-RPG gaming
Not logged in. [log in] [register]
 
 
Post new topic Reply to topic  
View previous topic - View next topic  
Author Message
DeveloperX
202192397


Joined: 04 May 2003
Posts: 1626
Location: Decatur, IL, USA

PostPosted: Mon Apr 05, 2004 8:04 pm    Post subject: * Game Code In A Minute [quote]

The first in a series of short articles that are written on my lunch breaks at CompUSA... :)

Rendering Tilemaps Larger than the Screen:
Code:

Dim Map(100, 100) AS MapCell

For Y = StartY To MapVHeight-StartY
 For X = StartX To MapVWidth-StartX
  PX = X * TileSize - StartX* TileSize
  PY = Y * TileSize - StartY * TileSize
 Tile = Map(Y, X).TileValue
  Call DrawTile(PX, PY, "default.set", Tile)
 Next
Next

... to be continued...
_________________
Principal Software Architect
Rambling Indie Games, LLC

See my professional portfolio


Last edited by DeveloperX on Thu Nov 18, 2004 11:25 pm; edited 1 time in total
Back to top  
Ninkazu
Demon Hunter


Joined: 08 Aug 2002
Posts: 945
Location: Location:

PostPosted: Mon Apr 05, 2004 9:53 pm    Post subject: [quote]

...as opposed to optimized and more memory efficient code.
Back to top  
Post new topic Reply to topic Page 1 of 1 All times are GMT
 



Display posts from previous:   
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum