Instantly share code, notes, and snippets.

What would you like to do?
8.11 Projectile type, add rate of fire
Import fantomX
Class ProjectileType
Field power:Int
Field range:Float
Field acceleration:Float
Field max_speed:Float
' Add rate of fire
Field rate_of_fire:Float
' and also add to constructor
Method New(power:Int=1, range:Float=1000, acceleration:Float=0, max_speed:Float=200, rate_of_fire:Float=2.0)
Self.power = power
Self.range = range
Self.acceleration = acceleration
Self.max_speed = max_speed
Self.rate_of_fire = rate_of_fire
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment