2010-07-13

ILGE 2010: Engine Troubles over Tentacle Planet, part 1

Introduction

I've finally managed to scramble together a good couple of hours to work on my ILGE 2010 entry. At this rate it will be doubtful whether I'll have a minimal game by the end of this month :-(


The first item that can be checked off the to-do list: rolling terrain. The video is low quality and stutters but this is due to me using sub-optimal software to capture my desktop. The program actually runs very smoothly on both systems I've ran it on (a Samsung NC10 netbook and an Intel P4 2.8Ghz desktop).

The video shows the planet on which this game is played. It is a standard heightfield created using Perlin Noise (with the CL Black Tie library) which keeps scrolling down endlessly until the player dies.

Goal

Explore the usability of Ogre and C++ from Embeddable Common Lisp (ECL) using functionality specific to ECL as opposed to using the CFFI approach used by Okra. (Since Okra's CFFI approach needs to compile a small C wrapper library to access Ogre's C++ functions anyway.)

I will be ignoring any licensing issues that might come with releasing a binary that's statically linked to ECL and Ogre for now.

Development Environment

My development environment is Debian Linux. Testing will also be done on Windows (Vista unfortunately) in the future but that hasn't happened yet.

Dependencies

  • ECL 10.4.1
  • Ogre 1.6.4
  • OIS 1.2.0 (not used yet)

ECL has been compiled by myself but Ogre and OIS have been installed using Debian's package manager (you need libogre-dev and libois-dev).

I have not used Ogre 1.7.x yet but since Ogre's API has been pretty stable in the past it might just work without any changes.

TO-DO

In chronological order:

  • [X] rolling terrain
  • [X] controllable spaceship
  • [X] basic tentacles
  • [X] bullets
  • [X] shootable tentacles
  • [X] tentacles that shoot small spores
  • [X] roaming (bigger) spores that attack the player
  • [X] collision detection: spaceship vs terrain
  • [X] collision detection: spaceship vs all other entities

Don't know when:

  • [X] some minor GUI elements showing the score, highscore and FPS.

Source

The code is not pretty but available here: http://www.aerique.net/software/etotp/etotp-20100713.tar.gz

I'm slowly moving from using global variables to stuffing everything into a scene-class instance so that will account for any duplication you might see.

Labels: , , , , , ,

2 Comments:

OpenID didi said...

Sorry, but I don't see any instruction in the tarball. How do I run it?

Tuesday, 13 July, 2010  
Blogger aerique said...

Yeah, sorry about that. Check the header of "ogre.cpp" for compilation instructions and run it with "etotp.sh". It is assumed ECL and Ogre are already installed on your system and can be compiled & linked against.

A binary is not yet available: it's on my to-do list.

Wednesday, 14 July, 2010  

Post a Comment

<< Home