stuff
This commit is contained in:
parent
7d3e6ccc2a
commit
8aaba75408
5 changed files with 41 additions and 1 deletions
|
@ -1,10 +1,11 @@
|
||||||
[gd_scene load_steps=9 format=4 uid="uid://ctc0arg3efa5k"]
|
[gd_scene load_steps=10 format=4 uid="uid://ctc0arg3efa5k"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://ba6afuig8bqrg" path="res://levels/LevelBase.tscn" id="1_ad6qp"]
|
[ext_resource type="PackedScene" uid="uid://ba6afuig8bqrg" path="res://levels/LevelBase.tscn" id="1_ad6qp"]
|
||||||
[ext_resource type="Shader" path="res://shaders/scrolling.gdshader" id="2_60gse"]
|
[ext_resource type="Shader" path="res://shaders/scrolling.gdshader" id="2_60gse"]
|
||||||
[ext_resource type="Texture2D" uid="uid://bki6ucvk6bjwk" path="res://textures/Level 01.png" id="2_gi0pl"]
|
[ext_resource type="Texture2D" uid="uid://bki6ucvk6bjwk" path="res://textures/Level 01.png" id="2_gi0pl"]
|
||||||
[ext_resource type="Texture2D" uid="uid://c35kb2k4l1ku" path="res://textures/level01-spritesheet.png" id="3_3ou1v"]
|
[ext_resource type="Texture2D" uid="uid://c35kb2k4l1ku" path="res://textures/level01-spritesheet.png" id="3_3ou1v"]
|
||||||
[ext_resource type="PackedScene" uid="uid://vtwswrkfkgas" path="res://objects/EnemyMover.tscn" id="4_3fnma"]
|
[ext_resource type="PackedScene" uid="uid://vtwswrkfkgas" path="res://objects/EnemyMover.tscn" id="4_3fnma"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://d0gpnqknarkg7" path="res://objects/Goal.tscn" id="6_e2vpu"]
|
||||||
|
|
||||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_e817v"]
|
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_e817v"]
|
||||||
texture = ExtResource("3_3ou1v")
|
texture = ExtResource("3_3ou1v")
|
||||||
|
@ -159,3 +160,6 @@ direction = -1
|
||||||
[node name="EnemyMover4" parent="." index="10" instance=ExtResource("4_3fnma")]
|
[node name="EnemyMover4" parent="." index="10" instance=ExtResource("4_3fnma")]
|
||||||
position = Vector2(-78, -280)
|
position = Vector2(-78, -280)
|
||||||
direction = -1
|
direction = -1
|
||||||
|
|
||||||
|
[node name="Goal" parent="." index="11" instance=ExtResource("6_e2vpu")]
|
||||||
|
position = Vector2(582, -317)
|
||||||
|
|
25
gmtk_2024/objects/Goal.tscn
Normal file
25
gmtk_2024/objects/Goal.tscn
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
[gd_scene load_steps=5 format=3 uid="uid://d0gpnqknarkg7"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" path="res://scripts/goal.gd" id="1_xjaxa"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://hsp64ixwg2bb" path="res://temp_assets/goal.png" id="1_y0s3c"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bs8mevd0fornj" path="res://temp_assets/goal_bg.png" id="2_mxvn8"]
|
||||||
|
|
||||||
|
[sub_resource type="CircleShape2D" id="CircleShape2D_fjcci"]
|
||||||
|
radius = 41.0488
|
||||||
|
|
||||||
|
[node name="Goal" type="Area2D" node_paths=PackedStringArray("img", "img2")]
|
||||||
|
scale = Vector2(0.5, 0.5)
|
||||||
|
script = ExtResource("1_xjaxa")
|
||||||
|
img = NodePath("GoalImg")
|
||||||
|
img2 = NodePath("GoalBg")
|
||||||
|
|
||||||
|
[node name="GoalBg" type="Sprite2D" parent="."]
|
||||||
|
z_index = -1
|
||||||
|
position = Vector2(-4, 0)
|
||||||
|
texture = ExtResource("2_mxvn8")
|
||||||
|
|
||||||
|
[node name="GoalImg" type="Sprite2D" parent="."]
|
||||||
|
texture = ExtResource("1_y0s3c")
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
|
shape = SubResource("CircleShape2D_fjcci")
|
11
gmtk_2024/scripts/goal.gd
Normal file
11
gmtk_2024/scripts/goal.gd
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
extends Node
|
||||||
|
|
||||||
|
@export var next : Node
|
||||||
|
@export var img : Sprite2D
|
||||||
|
@export var img2 : Sprite2D
|
||||||
|
|
||||||
|
|
||||||
|
func _process(delta: float) -> void:
|
||||||
|
img.rotate(2 * delta)
|
||||||
|
img2.rotate(1 * delta)
|
||||||
|
|
BIN
gmtk_2024/temp_assets/goal.png
Normal file
BIN
gmtk_2024/temp_assets/goal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3 KiB |
BIN
gmtk_2024/temp_assets/goal_bg.png
Normal file
BIN
gmtk_2024/temp_assets/goal_bg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5 KiB |
Loading…
Add table
Reference in a new issue