Instantly share code, notes, and snippets.

What would you like to do?
8.9 Add ProjectileType to Character
Import fantomX
Import projectile_type
Class Character
Field box:ftObject
Field current_health:Int
Field max_health:Int
Field is_player:Bool
' Add projectile type
Field projectile_type:ProjectileType
Method New(box:ftObject, health:Int=1, player:Bool=False, projectile_type:ProjectileType) = box
Self.current_health = health
Self.max_health = health
Self.is_player = player
' Set initial projectile type
Self.projectile_type = projectile_type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment