Jump to content
  • Advertisement


Sign in to follow this  
  • entries
  • comments
  • views

In more then one place at once...

Sign in to follow this  


Of all the tiles that have the translucent bluish animation, they are using one animation object. This cuts down significantly on update costs. Instead of having to update 50 animations (lets say for range highlighting) and hope for them to keep in sync, you can use one animation and reference them from more then one actor.

In this case however we have a total of four actors on the map. The cursor, Person, bush, and highlight (sharing the same animation as the cursor). There is only one highlight actor, but he's attached to the map in 9 places. While you wouldn't want to do this with actors that you want to activate an event on, it works great for engine handled graphics.

So by seperating the tile, animation, path and picture classes, we can attach each of these to more then one place at a time, without more overhead (besides rendering... which I have to admit is the biggest pull back to all of it)

:: EDIT ::

I thought that I'd start posting my line count...

Sign in to follow this  


Recommended Comments

Your game has definition.

That definition is: kickin rad. I salute you.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!