Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions core/terrain/dangerous/spikes_right.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
[ext_resource type="PackedScene" uid="uid://cjsx1l50iowce" path="res://core/terrain/dangerous/spikes_left.tscn" id="1_35j6u"]

[node name="SpikesRight" instance=ExtResource("1_35j6u")]
collision_layer = 1
collision_mask = 1

[node name="Sprite2D" parent="." index="0"]
flip_v = true
Expand Down
457 changes: 457 additions & 0 deletions user/SpicyOverlord/SpicyGravity.tscn

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions user/SpicyOverlord/stuff/Rotator.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
extends Area2D

@export var right_way = true

var player
var can_rotate_player = true

@onready var timer = Timer.new()

func _ready():
player = Levelmanager.get_player()

add_child(timer)
timer.wait_time = 0.5
timer.one_shot = true
timer.connect("timeout", _on_Timer_timeout)

func _process(delta):
if can_rotate_player:
var rotate_distance = delta * 50
if right_way:
rotation_degrees -= rotate_distance
#rotate(rotate_distance)
else:
rotation_degrees += rotate_distance
#rotate(-rotate_distance)

func _on_rotator_body_entered(body):
if body == player and can_rotate_player:
player.rotate_gravity(right_way, position)
can_rotate_player = false
timer.start()

func _on_Timer_timeout():
can_rotate_player = true
23 changes: 23 additions & 0 deletions user/SpicyOverlord/stuff/SpicyRotator.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[gd_scene load_steps=4 format=3 uid="uid://c1og1ojkymaoe"]

[ext_resource type="Texture2D" uid="uid://xr7nkaudj8p2" path="res://core/assets/Items/Fruits/Orange.png" id="1_ucyuk"]
[ext_resource type="Script" path="res://user/SpicyOverlord/stuff/Rotator.gd" id="2_02vju"]

[sub_resource type="CircleShape2D" id="CircleShape2D_35jak"]

[node name="Rotator" type="Area2D"]
collision_layer = 256
collision_mask = 16
input_pickable = false
script = ExtResource("2_02vju")

[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_ucyuk")
hframes = 17

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
scale = Vector2(0.6, 0.6)
shape = SubResource("CircleShape2D_35jak")
one_way_collision_margin = 0.0

[connection signal="body_entered" from="." to="." method="_on_rotator_body_entered"]
259 changes: 259 additions & 0 deletions user/SpicyOverlord/stuff/spicy_player.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,259 @@
[gd_scene load_steps=37 format=3 uid="uid://bkbjlmed1eklq"]

[ext_resource type="Script" path="res://user/SpicyOverlord/stuff/spicy_player_controller.gd" id="1_ebegd"]
[ext_resource type="Texture2D" uid="uid://ctgv8wa7c0pi3" path="res://core/assets/Main Characters/GDC Mascot/Fall (32x32).png" id="2_8klvm"]
[ext_resource type="Texture2D" uid="uid://23aptxhvybei" path="res://core/assets/Main Characters/GDC Mascot/Idle (32x32).png" id="3_2fkeu"]
[ext_resource type="Texture2D" uid="uid://cj0lk6htbc4a3" path="res://core/assets/Main Characters/GDC Mascot/Jump (32x32).png" id="4_w0dtc"]
[ext_resource type="Texture2D" uid="uid://d2x6xp5hmnha3" path="res://core/assets/Main Characters/GDC Mascot/Run (32x32).png" id="5_i8x8d"]
[ext_resource type="Texture2D" uid="uid://6xvrnj6ogdwd" path="res://core/assets/Main Characters/GDC Mascot/Wall Jump (32x32).png" id="6_7f5kx"]

[sub_resource type="AtlasTexture" id="AtlasTexture_qrcya"]
atlas = ExtResource("3_2fkeu")
region = Rect2(0, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_raekr"]
atlas = ExtResource("3_2fkeu")
region = Rect2(32, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_7y1dh"]
atlas = ExtResource("3_2fkeu")
region = Rect2(64, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_xc1c5"]
atlas = ExtResource("3_2fkeu")
region = Rect2(96, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_4fvy5"]
atlas = ExtResource("3_2fkeu")
region = Rect2(128, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_t3uxw"]
atlas = ExtResource("3_2fkeu")
region = Rect2(160, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_pi7qe"]
atlas = ExtResource("3_2fkeu")
region = Rect2(192, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_uufj2"]
atlas = ExtResource("3_2fkeu")
region = Rect2(224, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_8oose"]
atlas = ExtResource("3_2fkeu")
region = Rect2(256, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_dqu7a"]
atlas = ExtResource("3_2fkeu")
region = Rect2(288, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_4qgpu"]
atlas = ExtResource("3_2fkeu")
region = Rect2(320, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_sb4ny"]
atlas = ExtResource("5_i8x8d")
region = Rect2(0, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_k2sey"]
atlas = ExtResource("5_i8x8d")
region = Rect2(32, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_lcr33"]
atlas = ExtResource("5_i8x8d")
region = Rect2(64, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_j2ger"]
atlas = ExtResource("5_i8x8d")
region = Rect2(96, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_8i0xq"]
atlas = ExtResource("5_i8x8d")
region = Rect2(128, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_2cewc"]
atlas = ExtResource("5_i8x8d")
region = Rect2(160, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_neocg"]
atlas = ExtResource("5_i8x8d")
region = Rect2(192, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_f7d6b"]
atlas = ExtResource("5_i8x8d")
region = Rect2(224, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_cifib"]
atlas = ExtResource("5_i8x8d")
region = Rect2(256, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_maope"]
atlas = ExtResource("5_i8x8d")
region = Rect2(288, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_cp4os"]
atlas = ExtResource("5_i8x8d")
region = Rect2(320, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_3t2kv"]
atlas = ExtResource("5_i8x8d")
region = Rect2(352, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_4raqx"]
atlas = ExtResource("6_7f5kx")
region = Rect2(0, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_4bpyw"]
atlas = ExtResource("6_7f5kx")
region = Rect2(32, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_01wci"]
atlas = ExtResource("6_7f5kx")
region = Rect2(64, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_mu5tc"]
atlas = ExtResource("6_7f5kx")
region = Rect2(96, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_l0o7j"]
atlas = ExtResource("6_7f5kx")
region = Rect2(128, 0, 32, 32)

[sub_resource type="SpriteFrames" id="SpriteFrames_e4lh2"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_8klvm")
}],
"loop": true,
"name": &"fall",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_qrcya")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_raekr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7y1dh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xc1c5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4fvy5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t3uxw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pi7qe")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uufj2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8oose")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dqu7a")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4qgpu")
}],
"loop": true,
"name": &"idle",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_w0dtc")
}],
"loop": true,
"name": &"jump",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_sb4ny")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_k2sey")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lcr33")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_j2ger")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8i0xq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2cewc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_neocg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f7d6b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cifib")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_maope")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cp4os")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3t2kv")
}],
"loop": true,
"name": &"move",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_4raqx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4bpyw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_01wci")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mu5tc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l0o7j")
}],
"loop": true,
"name": &"wall_slide",
"speed": 12.0
}]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_1841f"]
size = Vector2(15, 13)

[node name="SpicyPlayer" type="CharacterBody2D"]
collision_layer = 256
collision_mask = 367
script = ExtResource("1_ebegd")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(2.08165e-12, 2.08165e-12)
sprite_frames = SubResource("SpriteFrames_e4lh2")
animation = &"wall_slide"
autoplay = "idle"

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0.5, 6.5)
shape = SubResource("RectangleShape2D_1841f")

[node name="Camera2D" type="Camera2D" parent="."]
position_smoothing_enabled = true
Loading