mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-07 16:30:06 +01:00
Use the keep_height aspect ratio option as in the original demo. This prevents seeing the clear color when making the window tall Change the ParallaxBackground scene so mirrored sections don't disappear on wide windows
162 lines
6.0 KiB
Plaintext
162 lines
6.0 KiB
Plaintext
; Engine configuration file.
|
|
; It's best edited using the editor UI and not directly,
|
|
; since the parameters that go here are not all obvious.
|
|
;
|
|
; Format:
|
|
; [section] ; section goes between []
|
|
; param=value ; assign values to parameters
|
|
|
|
config_version=4
|
|
|
|
_global_script_classes=[ {
|
|
"base": "KinematicBody2D",
|
|
"class": "Actor",
|
|
"language": "GDScript",
|
|
"path": "res://src/Actors/Actor.gd"
|
|
}, {
|
|
"base": "RigidBody2D",
|
|
"class": "Bullet",
|
|
"language": "GDScript",
|
|
"path": "res://src/Objects/Bullet.gd"
|
|
}, {
|
|
"base": "Area2D",
|
|
"class": "Coin",
|
|
"language": "GDScript",
|
|
"path": "res://src/Objects/Coin.gd"
|
|
}, {
|
|
"base": "Actor",
|
|
"class": "Enemy",
|
|
"language": "GDScript",
|
|
"path": "res://src/Actors/Enemy.gd"
|
|
}, {
|
|
"base": "Position2D",
|
|
"class": "Gun",
|
|
"language": "GDScript",
|
|
"path": "res://src/Actors/Gun.gd"
|
|
}, {
|
|
"base": "Actor",
|
|
"class": "Player",
|
|
"language": "GDScript",
|
|
"path": "res://src/Actors/Player.gd"
|
|
} ]
|
|
_global_script_class_icons={
|
|
"Actor": "",
|
|
"Bullet": "",
|
|
"Coin": "",
|
|
"Enemy": "",
|
|
"Gun": "",
|
|
"Player": ""
|
|
}
|
|
|
|
[application]
|
|
|
|
config/name="Platformer 2D"
|
|
run/main_scene="res://src/Main/Game.tscn"
|
|
config/icon="res://icon.png"
|
|
target_fps="60"
|
|
|
|
[debug]
|
|
|
|
gdscript/completion/autocomplete_setters_and_getters=true
|
|
gdscript/warnings/unsafe_property_access=true
|
|
gdscript/warnings/unsafe_method_access=true
|
|
gdscript/warnings/unsafe_cast=true
|
|
gdscript/warnings/unsafe_call_argument=true
|
|
|
|
[display]
|
|
|
|
window/size/width=800
|
|
window/size/height=480
|
|
window/dpi/allow_hidpi=true
|
|
window/stretch/mode="2d"
|
|
window/stretch/aspect="keep_height"
|
|
stretch/aspect="keep_height"
|
|
stretch/mode="2d"
|
|
|
|
[gdnative]
|
|
|
|
singletons=[ ]
|
|
|
|
[image_loader]
|
|
|
|
repeat=false
|
|
|
|
[input]
|
|
|
|
jump={
|
|
"deadzone": 0.5,
|
|
"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)
|
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":0,"pressure":0.0,"pressed":false,"script":null)
|
|
, 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)
|
|
]
|
|
}
|
|
move_left={
|
|
"deadzone": 0.5,
|
|
"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)
|
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":14,"pressure":0.0,"pressed":false,"script":null)
|
|
, 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)
|
|
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":-1.0,"script":null)
|
|
]
|
|
}
|
|
move_right={
|
|
"deadzone": 0.5,
|
|
"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)
|
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":15,"pressure":0.0,"pressed":false,"script":null)
|
|
, 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)
|
|
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":1.0,"script":null)
|
|
]
|
|
}
|
|
shoot={
|
|
"deadzone": 0.5,
|
|
"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)
|
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":2,"pressure":0.0,"pressed":false,"script":null)
|
|
, 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)
|
|
, 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)
|
|
]
|
|
}
|
|
toggle_fullscreen={
|
|
"deadzone": 0.5,
|
|
"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)
|
|
]
|
|
}
|
|
toggle_pause={
|
|
"deadzone": 0.5,
|
|
"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)
|
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":11,"pressure":0.0,"pressed":false,"script":null)
|
|
]
|
|
}
|
|
|
|
[layer_names]
|
|
|
|
2d_physics/layer_1="player"
|
|
2d_physics/layer_2="enemies"
|
|
2d_physics/layer_3="coins"
|
|
2d_physics/layer_4="platforms"
|
|
2d_physics/layer_5="ground"
|
|
|
|
[physics]
|
|
|
|
2d/default_gravity=700
|
|
2d/gravity_default=1800.0
|
|
|
|
[rasterizer]
|
|
|
|
use_pixel_snap=true
|
|
|
|
[render]
|
|
|
|
mipmap_policy=1
|
|
|
|
[rendering]
|
|
|
|
quality/intended_usage/framebuffer_allocation=0
|
|
quality/intended_usage/framebuffer_allocation.mobile=1
|
|
quality/2d/use_pixel_snap=true
|
|
quality/filters/anisotropic_filter_level=2
|
|
quality/filters/use_nearest_mipmap_filter=true
|
|
quality/depth/hdr=false
|
|
|
|
[texture_import]
|
|
|
|
filter=false
|