RE: maps

new topic     » topic index » view thread      » older message » newer message

engale2000 at hotmail.com wrote:

> My question has probaly been asked and answered.
> 
> But I am trying to creat a game like diablo or Ultima Online.
> 
> To do this I need to have the map to move the other direction of the 
> character you're playin' to give the illusion of the character moving. 
> If I just had one big map.bmp file how would I do such a thing?
> 
> Side note: I want this gave to be played online so the other characters 
> might be a variable I don't know!

These games are written using "tiles".
The "big" map is made up of a series of smaller bitmaps (tiles)
usually of a size like 32x32 or 64x64 pixels.
if the player moves you repaint just the titles on the screen.
The full world is kept in a 2d array (sequence) where the value
of each element corrresponds to each tile.

There is a fair amount of info available on tile based games on the
net a search should bring up alot to read.

euAllegro (yes it had to be mentioned!!!) has a built in library called
Mappy that handles very well the creation of tiled based games.
It also comes with a map editor and an example program.
It will take a little effort to get it up and running but the results
"in the long term" will be much quicker than doing it all yourself.
To be honest I haven't looked at euAllegro long time and I never 
wrote more than a demo using Mappy BUT it all works ... just never
been used.



Ray Smith
http://rays-web.com

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu