Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

So today I wrote an asset manager which should be extendable to any "asset type" I choose to define. Of course it includes "graphic" and "audio" out of the box via pygame. I also gave it "json" assets, so I can load and store JSON data as well.

I'm actually kinda proud of myself with the ResourceManager class. While the user can make as many instances of it as they want, all instances access the same underlying shared group of assets. It also passes out assets by weakref references, so the manager has TOTAL control of when those resources are deleted.

Next big thing was the NodeSprite class... I think it gave me a migraine, but at least the code has been laid down (untested, so it's bound to change... still though). As I was working on NodeSprite, I realized all of my previous Node classes ran the risk of having property name collisions with hidden variables, so I did a rewrite on how they're handles in all Nodes except NodeSurface. NodeSurface just has a TON of code in it that would need an almost total rewrite, so I figure it should work for the JAM.

Tomorrow I might get to make and display images! Wheeee!!!