Archive for November, 2009

Horay for a framework!

November 27th, 2009

Today I struggled about 8 hours with a computer graphics programming assignment. It’s not that I’m new to shaders, I’ve written some in Cg (Ogre) and more in HLSL (XNA). But this time it’s OpenGL and Cg…and what should I say…I just had a hard time getting it to work properly. It was probably a series of some crappy mistakes and it ate up all my nervs.
Nevertheless, I found the mistake(s).  Maybe I was just sitting in front the the PC for too long and my brain was all messed-up.

All the errors (in sense of visual debugging) I got somehow reminded me of a classical case of I Get Your Fail (really amusing for the not involved…for me right now, I rather feel like crying).

My main point is, that it are these types of situations, which let you worship good frameworks / engines, which handle all the “nasty” stuff for you ;)

Great tutorial on using the PushButton Engine console

November 25th, 2009

Natebeck has posted a great tutorial on how to use the PushButton Engine console. I guess there’s no need to say how important consoles can be in the final stage of game development (read balancing). It covers the basics as well as how to add your own console commands – and a little spoiler: PBE does make this really easy, so check it out at his blog!

Developing games or apps with PushButton Engine using FlashDevelop

November 22nd, 2009

In case some readers don’t know, PushButton Engine is a component based game engine for Flash/ActionScript3.
I am using it for my rapid prototyping tool (current working title “LevelMaster2000″). With this post, I’d like to wrap up how I got my development environment setup.

Basically, there are three options when coding ActionScript (I am not counting FlashCS3/4 as an option!)

  1. use Adobe FlexBuilder3 / nowadays FlashBuilder4
  2. use FDT
  3. use FlashDevelop

Since FlashDevelop is free and open source and (seems) mature, I decided to go with it.

Installation was pretty straight forward, and there are good docs how to setup a project with PushButton Engine. I am also working with Flex SDK 3.4, haven’t yet tried version 4, but that might come later on.

As soon as you got your project running, you’ll probably miss the debugger (at least if you have some programming background ;) ). There’s also a solution to this: FlexDbg, a debug plugin for FlashDevelop. You can get it here (if that doesn’t work, try http://gforge.opensource-sw.net/gf/project/flexdbg). Just copy the files to your FlashDevelop/Plugins directory.

After restarting FlashDevelop, the debug-toolbar should be visible. You also get some windows (breakpoints, locals, stack) you might want to dock somewhere. If you navigate to Tools > Programm Settings > FlexDbg, you can set hotkeys for debugging, which is nice as always needing to press a button can be a bit annoying.

So, with this done, you’re setup for action!

A last remark: it seems that alternately using FlashDevelop’s “Test Movie” and FlexDbg’s “Start” confuses FlashDevelop so hard, that it won’t start the movie after all. Examining the TaskManager, a flash.exe starts up, but doesn’t show up. The solution is to kill the process, restart FlashDevelop and don’t use those two functions along. After all, you probably won’t need the standard “Test Movie” anymore anyway!

If somebody has a better solution to this problem, I’m happy to hear it and update my post.

Starting to cook

November 16th, 2009

The oven is turned on, preparation finished, it’s time to get things rolling!

A short word of introduction: I study game development at the University of applied Sciences in Hagenberg / Austria. I’m currently working on my master thesis project, which is a rapid prototyping tool based on the PushButton Engine.

My blog will cover the following topics:

  • Experience I gain with the PushButton Engine,
  • progress reports of former projects, combined with how-tos,
  • and last but not least, other side projects I am working on.

I am confident that I can keep this blog updated at least once a week, so feel free to drop back in any time!