Instantly share code, notes, and snippets.

Embed
What would you like to do?
8.7 Add ProjectileType class
Import fantomX
Class ProjectileType
Field power:Int
Field range:Float
Field acceleration:Float
Field max_speed:Float
Method New(power:Int=1, range:Float=1000, acceleration:Float=0, max_speed:Float=200)
Self.power = power
Self.range = range
Self.acceleration = acceleration
Self.max_speed = max_speed
End
End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment