Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    570
  • comments
    2427
  • views
    216937

Untitled

Sign in to follow this  
Mushu

85 views

I can now export maps! :D



Produces -
#map
$name=1.txt
$mapWidth=5
$mapHeight=5
$tileWidth=64
$tileHeight=64
#tilesheets
%tilesheet=tileset1.bmp
%rect=64,0,64,64
%rep=1
%rect=64,64,64,64
%rep=2
%rect=192,0,64,64
%rep=3
#tiles
%1%1%1%3%2%1%1%1%3%2%1%1%1%3%2%1%1%1%3%2%1%1%1%3%2%2%0%0%0%2%0
#collision

I found a couple more annoying bugs due to bad design, namely the deletion of stuff that's being used currently on the map. Basically, if you create a tilesheet and use the tiles on the map, then go back to edit the tilesheet and delete some tiles... *poof* the application crashes.

This is again because the map itself has pointers to tile types which can't be destroyed without first nulling all the pointers which point to it. Which is easy enough to do, just something I should have thought of before.

Oh, and another oddity - mouse events which happen outside the bounds of the map (ie, too far right) should be ignored, not mis-parsed into tile clicks. Which is even easier to fix; can't believe I forgot to add that in...

Mushu trips over his own stupid.
Sign in to follow this  


4 Comments


Recommended Comments

Damn, that looks really nice!

Quote:
Mushu trips over his own stupid.

Mushu <-- LMFAO

Code Version:

Person* Programmer16 = &Mushu;
Programmer16->Laugh();


Just kidding, I've done that myself =D.

Share this comment


Link to comment
Quote:
HopeDagger [verb]s over his own [noun].


Hmmm... I'm tired so all I can come up with is:
HopeDagger walks over his own floor caek.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!