player.go 822 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. components {
  2. id: "player"
  3. component: "/example/player.script"
  4. position {
  5. x: 0.0
  6. y: 0.0
  7. z: 0.0
  8. }
  9. rotation {
  10. x: 0.0
  11. y: 0.0
  12. z: 0.0
  13. w: 1.0
  14. }
  15. }
  16. embedded_components {
  17. id: "sprite"
  18. type: "sprite"
  19. data: "tile_set: \"/assets/sprites.atlas\"\n"
  20. "default_animation: \"playerShip1_red\"\n"
  21. "material: \"/builtins/materials/sprite.material\"\n"
  22. "blend_mode: BLEND_MODE_ALPHA\n"
  23. ""
  24. position {
  25. x: 0.0
  26. y: 0.0
  27. z: 0.0
  28. }
  29. rotation {
  30. x: 0.0
  31. y: 0.0
  32. z: 0.0
  33. w: 1.0
  34. }
  35. }
  36. embedded_components {
  37. id: "bulletfactory"
  38. type: "factory"
  39. data: "prototype: \"/example/bullet.go\"\n"
  40. "load_dynamically: false\n"
  41. "dynamic_prototype: false\n"
  42. ""
  43. position {
  44. x: 0.0
  45. y: 0.0
  46. z: 0.0
  47. }
  48. rotation {
  49. x: 0.0
  50. y: 0.0
  51. z: 0.0
  52. w: 1.0
  53. }
  54. }