Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] - Loading a tiled map from a single image.

Author
Message
Da_Rhyno
12
Years of Service
User Offline
Joined: 25th May 2011
Location:
Posted: 31st May 2011 06:08
Hi all! This is my first code snippet/tutorial here, which shows
how to make a tiled map background for a 2D game. Also, I'm sure
you can apply the same to a 3D plane so you can have a tilemapped
plane for 3D effects (which I might do in the future, who knows!)

-Darth Rhyno

P.S. - Attached is the code with media files necessary. Warning: I am not that good of a paint artist! =P

Attachments

Login to view attachments
Stormwire
13
Years of Service
User Offline
Joined: 3rd Sep 2010
Location:
Posted: 4th Jun 2011 20:18
Works well The dba and dbpo files that come with the zip have no code in them
Phaelax
DBPro Master
20
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 5th Jun 2011 11:00 Edited at: 5th Jun 2011 11:02
I have code somewhere in the snippets for loading a tilemap using memblocks. The benefit of using a memblock (aside from being quicker), is that the tilemap image can be larger than the screen resolution. In one of my games I found my tilemap was larger than the height of my screen and therefore I could grab all the tile images.

http://forum.thegamecreators.com/?m=forum_view&t=164293&b=6

Grog Grueslayer
Valued Member
18
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 14th Aug 2011 18:53
Looks great but there's a way to do it without messing with bitmaps or having to use a FOR/NEXT loop to grab individual images... CREATE ANIMATED SPRITE.



Login to post a reply

Server time is: 2024-02-27 13:39:06
Your offset time is: 2024-02-27 13:39:06