Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1075975 Posts in 44155 Topics- by 36120 Members - Latest Member: crochi

December 29, 2014, 07:58:18 PM
  Show Posts
Pages: [1]
1  Developer / Technical / Game Resource Management on: June 02, 2010, 01:38:05 PM
So I've been pondering the line where code meets game resources and have been wondering what is a better idea.

Say we have several high to lower level game resources like sprites, sounds, levels, player(s), menus, etc. implemented in code and now we just have to all have them work together to form what we would consider a game.

Idea 1:
It can only be assumed that things like sprites and sounds may be tied to a higher level classes like level and player.

Each high level may have its own lower level data types.

This would make the programmer have to implement resource management for every higher level class.

So basically in this scheme, each higher level class would manage their own resources. For instance Level handles their sprites, sounds, and music - Player handles it's own sprites, sounds, and music.

Idea 2:
Rather then having some of the higher level classes like level and player manage their own resources, we implement an even higher level class that manages all resources like say "GameHandler" that each lower level class only contains routines used to make modifications to the game data.

In this scheme, Level just worries about doing it's own level stuff, and it's up to a higher GameHandler to worry about the resourses associated with it.

I'm not sure if this makes sense, its kindof hard to describe I guess.

Basically I'm asking, what do you think the best way of managing game resources is?

What are the pros and cons as they pertain to game speed and code maintainability, or readability.
2  Community / Townhall / Re: The Obligatory Introduce Yourself Thread on: March 12, 2010, 03:26:17 PM
Hi All,
This is relay01 or Dustin.

I am a game designer/programmer with no completed projects under my belt.  Just several tech demos and design documents.

I will post no pictures of myself right now as I am currently losing weight. (10lb. so far w00t)

My website is www.dustingray.net I post information about myself, my projects, and indie game reviews on there.  It's new as of the time of this writing so there isn't a lot of content yet.

Hopefully one day you will all know me more through my work.
3  Player / Games / Re: Hammerfight 50% off on Steam! on: February 25, 2010, 12:27:45 PM
I played the demo/beta back when it was in IGF 2008.  Didn't even know the full version was released, let alone on sale.

It's as good as I remembered it.
Pages: [1]
Theme orange-lt created by panic