project.godot 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. ; Engine configuration file.
  2. ; It's best edited using the editor UI and not directly,
  3. ; since the parameters that go here are not all obvious.
  4. ;
  5. ; Format:
  6. ; [section] ; section goes between []
  7. ; param=value ; assign values to parameters
  8. config_version=4
  9. _global_script_classes=[ {
  10. "base": "KinematicBody2D",
  11. "class": "Actor",
  12. "language": "GDScript",
  13. "path": "res://src/Actors/Actor.gd"
  14. }, {
  15. "base": "RigidBody2D",
  16. "class": "Bullet",
  17. "language": "GDScript",
  18. "path": "res://src/Objects/Bullet.gd"
  19. }, {
  20. "base": "Area2D",
  21. "class": "Coin",
  22. "language": "GDScript",
  23. "path": "res://src/Objects/Coin.gd"
  24. }, {
  25. "base": "Actor",
  26. "class": "Enemy",
  27. "language": "GDScript",
  28. "path": "res://src/Actors/Enemy.gd"
  29. }, {
  30. "base": "Position2D",
  31. "class": "Gun",
  32. "language": "GDScript",
  33. "path": "res://src/Actors/Gun.gd"
  34. }, {
  35. "base": "Actor",
  36. "class": "Player",
  37. "language": "GDScript",
  38. "path": "res://src/Actors/Player.gd"
  39. } ]
  40. _global_script_class_icons={
  41. "Actor": "",
  42. "Bullet": "",
  43. "Coin": "",
  44. "Enemy": "",
  45. "Gun": "",
  46. "Player": ""
  47. }
  48. [application]
  49. config/name="Platformer 2D"
  50. config/description="This demo is a pixel art 2D platformer with graphics and sound.
  51. It shows you how to code characters and physics-based objects
  52. in a real game context. This is a relatively complete demo
  53. where the player can jump, walk on slopes, fire bullets,
  54. interact with enemies, and more. It contains one closed
  55. level, and the player is invincible, unlike the enemies."
  56. run/main_scene="res://src/Main/Game.tscn"
  57. config/icon="res://icon.png"
  58. target_fps="60"
  59. [debug]
  60. gdscript/completion/autocomplete_setters_and_getters=true
  61. gdscript/warnings/unsafe_property_access=true
  62. gdscript/warnings/unsafe_method_access=true
  63. gdscript/warnings/unsafe_cast=true
  64. gdscript/warnings/unsafe_call_argument=true
  65. [display]
  66. window/size/width=800
  67. window/size/height=480
  68. window/dpi/allow_hidpi=true
  69. window/stretch/mode="2d"
  70. window/stretch/aspect="keep_height"
  71. stretch/aspect="keep_height"
  72. stretch/mode="2d"
  73. [gdnative]
  74. singletons=[ ]
  75. [image_loader]
  76. repeat=false
  77. [importer_defaults]
  78. texture={
  79. "compress/bptc_ldr": 0,
  80. "compress/hdr_mode": 0,
  81. "compress/lossy_quality": 0.7,
  82. "compress/mode": 0,
  83. "compress/normal_map": 0,
  84. "detect_3d": false,
  85. "flags/anisotropic": false,
  86. "flags/filter": false,
  87. "flags/mipmaps": false,
  88. "flags/repeat": 0,
  89. "flags/srgb": 2,
  90. "process/HDR_as_SRGB": false,
  91. "process/fix_alpha_border": true,
  92. "process/invert_color": false,
  93. "process/premult_alpha": false,
  94. "size_limit": 0,
  95. "stream": false,
  96. "svg/scale": 1.0
  97. }
  98. [input]
  99. jump={
  100. "deadzone": 0.5,
  101. "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"unicode":0,"echo":false,"script":null)
  102. , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":0,"pressure":0.0,"pressed":false,"script":null)
  103. , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"unicode":0,"echo":false,"script":null)
  104. ]
  105. }
  106. move_left={
  107. "deadzone": 0.5,
  108. "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"unicode":0,"echo":false,"script":null)
  109. , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":14,"pressure":0.0,"pressed":false,"script":null)
  110. , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"unicode":0,"echo":false,"script":null)
  111. , Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":-1.0,"script":null)
  112. ]
  113. }
  114. move_right={
  115. "deadzone": 0.5,
  116. "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"unicode":0,"echo":false,"script":null)
  117. , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":15,"pressure":0.0,"pressed":false,"script":null)
  118. , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"unicode":0,"echo":false,"script":null)
  119. , Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":1.0,"script":null)
  120. ]
  121. }
  122. shoot={
  123. "deadzone": 0.5,
  124. "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"unicode":0,"echo":false,"script":null)
  125. , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":2,"pressure":0.0,"pressed":false,"script":null)
  126. , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":90,"unicode":0,"echo":false,"script":null)
  127. , Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":1,"pressed":false,"doubleclick":false,"script":null)
  128. , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777350,"unicode":0,"echo":false,"script":null)
  129. , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777238,"unicode":0,"echo":false,"script":null)
  130. ]
  131. }
  132. toggle_fullscreen={
  133. "deadzone": 0.5,
  134. "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777254,"unicode":0,"echo":false,"script":null)
  135. ]
  136. }
  137. toggle_pause={
  138. "deadzone": 0.5,
  139. "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777217,"unicode":0,"echo":false,"script":null)
  140. , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":11,"pressure":0.0,"pressed":false,"script":null)
  141. ]
  142. }
  143. jump_p1={
  144. "deadzone": 0.5,
  145. "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"unicode":0,"echo":false,"script":null)
  146. , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":0,"pressure":0.0,"pressed":false,"script":null)
  147. ]
  148. }
  149. move_left_p1={
  150. "deadzone": 0.5,
  151. "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"unicode":0,"echo":false,"script":null)
  152. , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":14,"pressure":0.0,"pressed":false,"script":null)
  153. , Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":-1.0,"script":null)
  154. ]
  155. }
  156. move_right_p1={
  157. "deadzone": 0.5,
  158. "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"unicode":0,"echo":false,"script":null)
  159. , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":15,"pressure":0.0,"pressed":false,"script":null)
  160. , Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":1.0,"script":null)
  161. ]
  162. }
  163. shoot_p1={
  164. "deadzone": 0.5,
  165. "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":90,"unicode":0,"echo":false,"script":null)
  166. , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"unicode":0,"echo":false,"script":null)
  167. , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":2,"pressure":0.0,"pressed":false,"script":null)
  168. ]
  169. }
  170. jump_p2={
  171. "deadzone": 0.5,
  172. "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"unicode":0,"echo":false,"script":null)
  173. , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":1,"button_index":0,"pressure":0.0,"pressed":false,"script":null)
  174. ]
  175. }
  176. move_left_p2={
  177. "deadzone": 0.5,
  178. "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"unicode":0,"echo":false,"script":null)
  179. , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":1,"button_index":14,"pressure":0.0,"pressed":false,"script":null)
  180. , Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":1,"axis":0,"axis_value":-1.0,"script":null)
  181. ]
  182. }
  183. move_right_p2={
  184. "deadzone": 0.5,
  185. "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"unicode":0,"echo":false,"script":null)
  186. , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":1,"button_index":15,"pressure":0.0,"pressed":false,"script":null)
  187. , Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":1,"axis":0,"axis_value":1.0,"script":null)
  188. ]
  189. }
  190. shoot_p2={
  191. "deadzone": 0.5,
  192. "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777350,"unicode":0,"echo":false,"script":null)
  193. , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777238,"unicode":0,"echo":false,"script":null)
  194. , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":1,"button_index":2,"pressure":0.0,"pressed":false,"script":null)
  195. ]
  196. }
  197. splitscreen={
  198. "deadzone": 0.5,
  199. "events": [ Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":10,"pressure":0.0,"pressed":false,"script":null)
  200. , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777218,"unicode":0,"echo":false,"script":null)
  201. ]
  202. }
  203. [layer_names]
  204. 2d_physics/layer_1="player"
  205. 2d_physics/layer_2="enemies"
  206. 2d_physics/layer_3="coins"
  207. 2d_physics/layer_4="platforms"
  208. 2d_physics/layer_5="ground"
  209. [physics]
  210. 2d/default_gravity=900
  211. [rasterizer]
  212. use_pixel_snap=true
  213. [render]
  214. mipmap_policy=1
  215. [rendering]
  216. quality/intended_usage/framebuffer_allocation=0
  217. quality/intended_usage/framebuffer_allocation.mobile=1
  218. 2d/snapping/use_gpu_pixel_snap=true
  219. quality/filters/anisotropic_filter_level=2
  220. quality/filters/use_nearest_mipmap_filter=true
  221. quality/depth/hdr=false
  222. quality/2d/use_pixel_snap=true
  223. [texture_import]
  224. filter=false