Skip to content

Instantly share code, notes, and snippets.

@codetravis
Created December 6, 2016 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codetravis/7a1e0d41d425ed9b45d46b0dffa389c8 to your computer and use it in GitHub Desktop.
Save codetravis/7a1e0d41d425ed9b45d46b0dffa389c8 to your computer and use it in GitHub Desktop.
7.1 Adding collection for enemies
#FantomX_UsePhysics = True
Import fantomX
Import character
Class Game Extends App
Field engine:ftEngine
Field default_layer:ftLayer
Field default_scene:ftScene
Field player:Character
' Add a collection for enemy Characters
Field enemies:List<Character>
' .......
End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment