mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-07 16:30:06 +01:00
* 2d/platformer works flawlessly on Godot 3.1 beta 8 * fix warnings for inferred node type * every script has a class_name * formatted code for better clarity * each files has its own subfolder * As suggested by @akien-mga * states are back to const instead of enum * class_name comes after extends * better code style * PascalCase for nodes
17 lines
539 B
Plaintext
17 lines
539 B
Plaintext
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://platform/moving_platform.gd" type="Script" id=1]
|
|
[ext_resource path="res://platform/moving_platform.png" type="Texture" id=2]
|
|
|
|
[node name="MovingPlatform" type="Node2D"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="Platform" type="KinematicBody2D" parent="."]
|
|
|
|
[node name="Sprite" type="Sprite" parent="Platform"]
|
|
texture = ExtResource( 2 )
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Platform"]
|
|
polygon = PoolVector2Array( -88, -24, 88, -24, 88, 24, -88, 24 )
|
|
|