Skip to content

Commit 4d01a26

Browse files
Port demos with remade art assets to Godot 4 (#922)
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 <[email protected]>
1 parent 8fc246a commit 4d01a26

File tree

344 files changed

+13398
-2405
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

344 files changed

+13398
-2405
lines changed

2d/isometric/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ as well as be occluded when standing in front or behind them.
77

88
Language: GDScript
99

10-
Renderer: GLES 2
10+
Renderer: Compatibility
1111

1212
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/112
1313

@@ -21,6 +21,10 @@ and [`CollisionPolygon2D`](https://docs.godotengine.org/en/latest/classes/class_
2121
at their base. The player also has a collider at its base,
2222
which makes the player collide with the level.
2323

24+
2D lighting effects are achieved using a mixture of PointLight2D nodes (which provide real-time shadows)
25+
and pre-placed Polygon2Ds with sprites. To provide additional ambient shading, the goblin also has a blob
26+
shadow below its feet (a Sprite2D with a texture).
27+
2428
## Screenshots
2529

26-
![Screenshot](screenshots/isometric.png)
30+
![Screenshot](screenshots/isometric.webp)
11.5 KB
Loading

2d/platformer/level/cloud_1.webp.import renamed to 2d/isometric/decorations/banner.png.import

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
importer="texture"
44
type="CompressedTexture2D"
5-
uid="uid://b4n7s65t0qoep"
6-
path="res://.godot/imported/cloud_1.webp-d4440f8a56714fd63d83c7074d20ace3.ctex"
5+
uid="uid://bycat883fu7q2"
6+
path="res://.godot/imported/banner.png-45264389ab2131df9b78c5ec3b246773.ctex"
77
metadata={
88
"vram_texture": false
99
}
1010

1111
[deps]
1212

13-
source_file="res://level/cloud_1.webp"
14-
dest_files=["res://.godot/imported/cloud_1.webp-d4440f8a56714fd63d83c7074d20ace3.ctex"]
13+
source_file="res://decorations/banner.png"
14+
dest_files=["res://.godot/imported/banner.png-45264389ab2131df9b78c5ec3b246773.ctex"]
1515

1616
[params]
1717

4.51 KB
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://dpxv7d5d7hm33"
6+
path="res://.godot/imported/bone_pile_1.png-72c582c4f31012bb8009120719983b0c.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://decorations/bone_pile_1.png"
14+
dest_files=["res://.godot/imported/bone_pile_1.png-72c582c4f31012bb8009120719983b0c.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[gd_scene load_steps=3 format=2]
2+
3+
[ext_resource path="res://decorations/bone_pile_1.png" type="Texture2D" id=1]
4+
5+
[sub_resource type="CapsuleShape2D" id=1]
6+
radius = 18.0
7+
height = 28.0
8+
9+
[node name="bone_pile" type="Node2D"]
10+
11+
[node name="StaticBody2D" type="StaticBody2D" parent="."]
12+
13+
[node name="Sprite2D" type="Sprite2D" parent="StaticBody2D"]
14+
position = Vector2( 0, -14 )
15+
texture = ExtResource( 1 )
16+
17+
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
18+
position = Vector2( 0, -15 )
19+
rotation = 1.5708
20+
shape = SubResource( 1 )
4.17 KB
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://wxpdcei7yeuk"
6+
path="res://.godot/imported/bone_pile_2.png-f448133711e0ebea56f9e49e956ac902.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://decorations/bone_pile_2.png"
14+
dest_files=["res://.godot/imported/bone_pile_2.png-f448133711e0ebea56f9e49e956ac902.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[gd_scene load_steps=3 format=2]
2+
3+
[ext_resource path="res://decorations/bone_pile_2.png" type="Texture2D" id=1]
4+
5+
[sub_resource type="CapsuleShape2D" id=1]
6+
radius = 13.0
7+
height = 26.0001
8+
9+
[node name="bone_pile" type="Node2D"]
10+
11+
[node name="Sprite2D" type="Sprite2D" parent="."]
12+
position = Vector2( 0, -13 )
13+
texture = ExtResource( 1 )
14+
15+
[node name="StaticBody2D" type="StaticBody2D" parent="."]
16+
17+
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
18+
position = Vector2( 0, -13 )
19+
rotation = 1.5708
20+
shape = SubResource( 1 )
3.91 KB
Loading

0 commit comments

Comments
 (0)