LUA Project – Derelict Station


Derelict Station is the result of a four week long scripting assignment. The objective was to take the basic side-scrolling shooter framework provided by the professor and add functionality, including:

  • A high score system
  • A power up that destroys all enemies on the screen
  • A new enemy type that avoids player attacks
  • A simple feature that added some functionality to the game

Production time: 4 weeks (approx. 20 hours per week)


     

    Code Sample

     

    Basic avoidance script for an enemy robot:

      
    Every object includes a property that determines its layer. Below is an example of code using this property to determine if bullets should collide with the player.