Hey, there. So, I started this module, the BGHelper module, many moons ago to help with making games. The module ended up being heavy and kind of awkward to use. So, I’ve started to refactor the entire thing from scratch, adding new features, fixing broken ones, and keeping track of my organization. All of my modules and resources will be under this umbrella, and will feature a singular example blend file with difference scenes to show the different uses of the module (theoretically).
So far I have an example for some of the different parts of the module, and have otherwise just been working on progressively refactoring the code. The new BGHelper module covers:
- 2D Sprites, achieved via SpriteMaps (objects that you can add animations to, set callbacks for their operation, and do other nifty things)
- Viewports, added via a manager object
- Window resizing
- Easy audio playback using a base audio directory (i.e. “//assets/sound/”)
- 2D Filter library containing filters like bloom, scanlines, a Game-boy like filter, and others as well.
- API-related functions, like the ability to end the game on the first error.
- A built-in mouse-look function with customizable arguments.
- Useful math functions, like Lerping, Clamping, and returning the Sign of a number. Also, the ability to cast multiple rays on a single line.
- A mesh “wrapper” that allows for determined polygon indexing (i.e. so that you will always be able to access a specific polygon).
- Random level generation (my old RLG module).
- Lots of other cool stuff.
Anyway, you can grab the entire thing via SVN from my Google Code page here.