debug.lua 721 B

1234567891011121314151617181920212223242526272829303132333435
  1. EntityContainer = {}
  2. EntityContainer[ "Director" ] = {
  3. on_start = function( self )
  4. background2d:autoscroll_to_entity( entity_manager:get_entity( "Cloud" ) )
  5. script:request( Script.ENTITY, "Director", "main", 6 )
  6. return 0
  7. end,
  8. main = function( self )
  9. return 0
  10. end,
  11. }
  12. EntityContainer[ "Cloud" ] = {
  13. on_start = function( self )
  14. set_entity_to_character( "Cloud", "Cloud" )
  15. self.cloud = entity_manager:get_entity( "Cloud" )
  16. entity_manager:set_player_entity( "Cloud" )
  17. self.cloud:set_solid_radius( 0.3 )
  18. self.cloud:set_solid( true )
  19. return 0
  20. end,
  21. on_collide = function( self )
  22. return 0
  23. end,
  24. }