DeveloperX 202192397
Joined: 04 May 2003 Posts: 1626 Location: Decatur, IL, USA
|
Posted: 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
|
|