Strife.lua

From codeTank

Jump to: navigation, search
Strife Screen Shot
Strife Screen Shot

Strife.lua is a game that is included with Brain Damage 1.2. In it, your job is to shoot aliens as they drop from the sky, like annoying maggots.

Download it here:

(Latest Update to Source Code: 1 Jan 2008)

Controls

  • Up, Down, Left, Right - Move around
  • Z - Jump
  • X - Shoot

Also, if you have a joystick, you can use that instead. The game will prompt you if it detects you have one.

Goal

Your goal is to survive for as long as possible, and rack up the highest score! Kill as many aliens as you can, before exploding.

Homework

Play around with the configuration table, and see what different values do to alter the game. Read the comments in the source code, and try changing things around in there too. Can you hack the code to make yourself invincible permanently?

Add different kinds of guns. Draw powerups, and if the user picks it up, then upgrade their gun. Make a grenade launcher :-).

I started to draw more enemies in the image files, but I got lazy and decided not to add them. See if you can add them - or - just make your own new images, and add more enemies. Add a boss, that the player has to beat. Add more levels, at different locations.

Personal tools