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.

Dark GDK / Char Map Help

Author
Message
SephGrave
14
Years of Service
User Offline
Joined: 13th Jun 2010
Location:
Posted: 13th Jun 2010 19:37
OK so Im new to the video game programming, but have been a programmer for a long time, I have started creating a game and have used:
int MAP [][];
{1,2,2,2,3}; and so on

along with an animated sprite for my tiles as mention in the tileset tut here and in the gaddis book and it is ok for making the stage.

But I have recently heard about using:

const char MAP[][];
{" 1 2 22 3333 222"};


which appears to make a better stage along with the ability of using backgrounds. I have no idea how it reads the bmp image or how to load images to it using this method.

While I do not know exactly how to do it any help would be greatly appreciated.
Cuddle Bunniezzz 12
15
Years of Service
User Offline
Joined: 14th Jan 2009
Location: Buffalo, NY
Posted: 13th Jun 2010 22:55
Well, I'm having a little trouble understanding you, but what I can gather from your post, you're having issues with tilesets and maps.

Take a look at this thing I wrote a few months back:
http://www.darkgdk.us/index.php?page=12

And for using backgrounds, just have two different maps going at the same time, you can layer them.

http://www.darkgdk.us/ <- You can now submit pages, upload images, yet were lacking content. We need your help!
SephGrave
14
Years of Service
User Offline
Joined: 13th Jun 2010
Location:
Posted: 13th Jun 2010 23:25 Edited at: 14th Jun 2010 03:38
Yes I read that tut, thank you very much for the in-depth details it was a pleasure to read, my question was: I notice that in the tut you use integers but how would you make the stage with arrays using strings or even using a world.dat file?


Also can someone please point me in the right direction for 2d side scrolling tut using the above method.


I just need to view one good source code of what each piece does and I'll understand it. I've searched these forums but haven't found any good tuts.

{EDIT}

Found a good tut on side scrolling here:
http://forum.thegamecreators.com/?m=forum_view&t=140846&b=22
Thanks.

Login to post a reply

Server time is: 2024-07-04 10:38:59
Your offset time is: 2024-07-04 10:38:59