mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-07 16:30:06 +01:00
This re-ports the following demos to Godot 4 following their latest `3.x` versions: - 2D Navigation with AStarGrid2D - 2D JRPG Demo - 2D Isometric Game - 2D Platformer Some tweaks have also been made in the process, such as split screen players having different colors in the 2D Platformer demo. Co-authored-by: Nonparoxysmic <69494951+Nonparoxysmic@users.noreply.github.com>
23 lines
924 B
Plaintext
23 lines
924 B
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://bf3wnwihk7ymg"]
|
|
|
|
[ext_resource type="Script" path="res://game.gd" id="2"]
|
|
[ext_resource type="PackedScene" uid="uid://ctgumjaytuoch" path="res://level/level.tscn" id="3"]
|
|
[ext_resource type="PackedScene" uid="uid://vh7pmputa7r3" path="res://player/player.tscn" id="4"]
|
|
[ext_resource type="PackedScene" uid="uid://c7ai4bigaryci" path="res://gui/pause_menu_singleplayer.tscn" id="4_x6l06"]
|
|
|
|
[node name="Game" type="Node"]
|
|
process_mode = 3
|
|
script = ExtResource("2")
|
|
|
|
[node name="Level" parent="." instance=ExtResource("3")]
|
|
|
|
[node name="Player" parent="Level" instance=ExtResource("4")]
|
|
position = Vector2(90, 546)
|
|
|
|
[node name="InterfaceLayer" type="CanvasLayer" parent="."]
|
|
layer = 100
|
|
|
|
[node name="PauseMenu" parent="InterfaceLayer" instance=ExtResource("4_x6l06")]
|
|
|
|
[connection signal="coin_collected" from="Level/Player" to="InterfaceLayer/PauseMenu" method="_on_coin_collected"]
|