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.

2D All the way! / Theory Question

Author
Message
old_School
13
Years of Service
User Offline
Joined: 29th Aug 2009
Location:
Posted: 25th Oct 2011 00:15
As most know I code in VB however this is a general question. I want to make a old school style 2d mmorpgish style game. How do I make a massive board? Are they using a zoom method?
Van B
Moderator
20
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 25th Oct 2011 17:11
There's a few ways that people tackle this, although I'm not sure that VB is efficient at any of them. All of them tend to use an array to store the tile at each location, maybe a 256x256 array, and if your tiles are 32x32 for instance, your visible world would be 8192 x 8192 pixels, pretty big. Ideally you'd only draw the tiles that are visible, so work out the top left and bottom right corner indices and draw the tiles inside that area. Ideally you would draw as little as possible, aim to cover the screen and that's all.

What engine will you be using - please don't say you plan to make a traditional 2D RPG in native VB, because that just might push me over the edge. You'd probably find a good 2D library for VB, with built in map rendering, maybe even built in animation and zdepth sorting and other useful things like that. VB is not cut out for 2D map drawing on it's own, not without it getting all rediculous and stupid.

Health, Ammo, and bacon and eggs!

Login to post a reply

Server time is: 2022-12-09 17:18:57
Your offset time is: 2022-12-09 17:18:57