Dev Diary


benjymous

Member
Joined
Aug 17, 2008
Messages
296
Age
44
Location
Northumberland, UK
Website
grapefruitopia.com
Ok - I've been a bit quiet recently - mostly as there's not really been much to demo, as everything's been going on deep in the innards of the engine, rather than anywhere that actually would show in a video.

The main focus at the moment is getting Lua integrated in, and it's mostly there now. Each level file gets its own corresponding lua script, which can subscribe to game events, and create timers and sensors.

Timers just wait for a set amount of time before triggering a lua callback, likewise a sensor is just a watch zone in the level which triggers another callback when something (the player, or another movable object) stumbles into it.

This means the game engine doesn't need to care about hard-coding the logic for each level, it just needs to provide the basic building blocks.

For example, instead of having to specifically code in the engine a way to have a windy tunnel that blows the player along, you just need to create a sensor in the tunnel, and apply a force to any object that stumbles in to it.

(as a quick test, I built something similar to Portal where you fall through one hole and pop out somewhere else, maintaining momentum - that probably doesn't make any sense for this game, but it means the engine is nice and versatile!)

Likewise, instead of having to have something in my level editor that defines what conditions you have to meet to be able to go through an exit (and which room you should go to when you do), it just gets coded into the onExit() event handler in the level's lua.
 
More slow progress (I'm currently only getting a chance to spend a few hours on this at weekends)

The Lua integration is progressing smoothly (I hope to soon be able to define an actor's physics from Lua, and tie actors together - this will let me have string on the balloon, and attach Lerp to the string, for example!)

Also got the basics for chat bubbles going, for basic RPG like interaction with other characters
 
After a bit of fiddling with VMWare, Ubuntu and Code::Blocks I've now got it building under Linux (so that's one of the big hurdles out of the way to getting it to run on Pandora / Wiz)

It runs awfully (~8fps) but I think that's mostly because VMWare player doesn't support hardware accel for OGL!
 
3689428329_1f6b06a162_o.jpg


Small example showing the chat bubbles in action, along with proper string on the balloon!
 
Back
Top