M. Brandon Miller dot com


  • Blog
  • Games
  • Code Snippets
  • About

How I learned to stop worrying and love the Tiles

4/19/2010

 
Picture
Progress is being made in the world of XNA.  I spent a while figuring out the right way to load in the assets and properties mentioned before in a hierarchical format.

I've spent a lot of time gutting the sample platformer game of most of its' game-specific code.  I was going to toss out the whole system of 'tiles' for the background until I looked closer at how they worked.

At first I thought having such a large number of collidable objects would be a horrible drain on performance for anything larger than one screen, but then I realized that the grid was more than just a way to lay out levels, it was also a convenient way to sort things for collision detection, since we know where on the grid the relevant actors are.

I did, however, disconnect the collision and graphics elements of the grid.  As it stood, the collision type and texture were wired together.  I also added in a data-driven 'tile set' xml, which brings back memories of RPG Maker already.

I'm still going to support colliding actors who don't fit nicely into a series of cubes, but I'll be keeping this grid around for now to help lay the foundation for platforming adventure.

Today's screenshot still uses the sample assets, but it was screen-grabbed from my own XBox, so that's exciting.
Stair treads and risers link
8/13/2012 08:05:42 am

This is my first trip to your website. We are starting a new initiative in the same niche as this blog web page. Your blog web page website offered us with important information and facts to perform on. You have done a admirable job.

bleeding on the brain link
8/11/2015 11:12:08 am

This is a truly stunning write-up.. The amount of entertainment I had from this is significant. I wish you all the best for your future stuff. Keep this stuff going.

bair hugger side effects link
8/11/2015 11:22:03 am

Really i appreciate the effort you made to share the knowledge. The topic here i found was really effective to the topic which i was researching for a long time.

essay writing service link
10/28/2015 05:56:12 pm

Assignment and thesis are very important and essential for the success of the modern and latest students. Their goals and aims are all organized and planned in accordance to the rights and duties of the experts of the research.

trucchi gta 5 xbox 360 link
2/12/2016 12:34:12 pm

Can I just say what a relief to find someone who actually understands what they're discussing over the internet. You definitely realize how to bring an issue to light and make it important. More and more people really need to look at this and understand this side of your story. I was surprised you aren't more popular since you surely have the gift.

bestaustralianessays writing services link
5/8/2016 06:00:02 pm

What is XNA? Tell us about it please.


Comments are closed.

    Archives

    March 2023
    February 2023
    June 2016
    May 2014
    January 2014
    February 2013
    May 2010
    April 2010
    March 2010

    Categories

    All
    Code Samples
    Fiea
    Master Plan
    Rapid Prototyping
    Video
    Xna

    RSS Feed



Web Hosting by PowWeb