fork download
  1. module GameObject
  2. attr_accessor :x
  3. attr_accessor :y
  4. attr_accessor :speed
  5. attr_accessor :angle
  6. attr_accessor :img
  7. attr_accessor :function
  8. def draw
  9. #描画関係
  10. end
  11. def move
  12. #前に推進する処理とか。×
  13. #オブジェクトをsin,cosで動かす処理 ○
  14. end
  15. def effect
  16. #爆発とかそういうの
  17. end
  18. end
  19. module Misa_module
  20. def homing
  21. #ホーミングしてもいいし、しなくてもいい
  22. end
  23. end
  24.  
  25. class Misa
  26. include GameObject
  27. include Misa_module
  28. def initialize
  29. end
  30. end
  31.  
  32. # Field
  33. go = nil
  34.  
Success #stdin #stdout 0s 4760KB
stdin
Standard input is empty
stdout
Standard output is empty