(Lua 5.1)

 

(DoomScript)

 

(Visual C++)

 

(Visual Basic)

 

Game Name: Burning Method, Chilling Technique

Scripting Language: Lua 5.1

Burning Method, Chilling Technique uses the Lua 5.1 scripting language to implement all the gameplay elements. This includes the two variations of fire and ice attacks (single-target and area of effect), crystal generation, damage over time effects, combat formulas for the enemies and the player, and the training hall.

 

This is a Lua script to inflict area of effect damage to monsters within a grid unit around the player. A for loop is used to check the location of all monsters currently in the game world to see if they are within range of the area of effect attack. If they are, the damage inflicted is calculated and the freeze flag is set to root the monsters at their current location. The ice attack sprite is drawn at the location of the affected monsters to signify the effect

 

Copyright © 2007 Steven Chew and The Guildhall at SMU

All rights reserved