Menu

More Hooks

The title sums it up, there's almost no need to continue, lol.

First in Other News, we added some new screen shots from our proof-of-concept AGE game, Ball Basher 2. A demo is okay, but an actual game is better! This is where it all comes together: UV-mapped models exported from Blender, textures made in GIMP, physics by jbox2d, rendering and game logic by AGE, achievements and leaderboards by Google Play Games.

There are now 3 more abstract methods in GameCycle to give you more opportunities to tap into the callback streams for load/unload/event. The 3 existing methods are renamed.

Each pipeline callback stream (in GameCycle) now has two hooks, pre and post. As you can guess, one is called before anything happens, the other after everything happens. In R43, only the pre-hooks existed.

Having only pre-hook is a problem for the event pipeline, because typically you would like the event to have its effect on the model, before doing anything based on it.

These hooks are the perfect place to perform top-level decisions, based on what is flowing down the pipeline (e.g. seeing GameOverSentinel post-event and doing game-over logic).

We are getting very close to the next release, so Stay Tuned!

Posted by g-dollar 2014-09-25

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.