Compare commits
29 commits
78ef008e6a
...
6831dd3a3f
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6831dd3a3f | ||
![]() |
b275630598 | ||
aebad63fa3 | |||
e2502866ef | |||
92266b024d | |||
ebd3adaeb8 | |||
82d01c09de | |||
35006bd3ae | |||
0344b7215c | |||
ec872b28d5 | |||
![]() |
59fd1289e8 | ||
![]() |
e3fde1b50f | ||
![]() |
2493e5f753 | ||
e6fb6a279f | |||
4d2c666282 | |||
f27325ad02 | |||
f899065416 | |||
277bc6d446 | |||
11112bf781 | |||
0e4d07c06d | |||
bfc06c7919 | |||
be0928bcb8 | |||
d785ca6bc1 | |||
1e3b3df3cf | |||
21dce0be45 | |||
c074d5b826 | |||
096a6126c1 | |||
96f67e78e9 | |||
4b0d443d14 |
BIN
.DS_Store
vendored
Normal file
1
.gitignore
vendored
|
@ -13,3 +13,4 @@ export_presets.cfg
|
|||
.mono/
|
||||
data_*/
|
||||
mono_crash.*.json
|
||||
*.import
|
||||
|
|
BIN
assets/icons.kra
Normal file
BIN
assets/icons.kra~
Normal file
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://cxbalfjqtp06t"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://7rnltps0ssra"]
|
||||
|
||||
[ext_resource type="Shader" path="res://shaders/crt.gdshader" id="2_wxq0n"]
|
||||
|
||||
|
|
91
gmtk_2024/levels/LevelBase.tscn
Normal file
|
@ -0,0 +1,91 @@
|
|||
[gd_scene load_steps=14 format=3 uid="uid://ba6afuig8bqrg"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://snxpqx0ony7s" path="res://objects/Player.tscn" id="1_prjlb"]
|
||||
[ext_resource type="PackedScene" uid="uid://dii1q3f5dj72y" path="res://objects/CRT.tscn" id="2_mxtem"]
|
||||
[ext_resource type="Texture2D" uid="uid://cw3onignoce3e" path="res://temp_assets/scale_up.png" id="3_7s458"]
|
||||
[ext_resource type="Texture2D" uid="uid://ckr5hxaqp6s5x" path="res://temp_assets/scale_up_hovered.png" id="4_6s82a"]
|
||||
[ext_resource type="Texture2D" uid="uid://btmck3gpinxo1" path="res://temp_assets/scaled_down.png" id="5_8tyx1"]
|
||||
[ext_resource type="Texture2D" uid="uid://c02aqv5sgwvgn" path="res://temp_assets/scale_down_hovered.png" id="6_kdplq"]
|
||||
[ext_resource type="Texture2D" uid="uid://2rfdls8oduj1" path="res://temp_assets/mirror.png" id="7_xwthi"]
|
||||
[ext_resource type="Texture2D" uid="uid://bfpwj3kaxe1ka" path="res://temp_assets/mirror_hovered.png" id="8_r6dd1"]
|
||||
|
||||
[sub_resource type="Theme" id="Theme_efdhj"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1vofj"]
|
||||
size = Vector2(1289, 70.5)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4uh45"]
|
||||
size = Vector2(1281, 85.5)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_nnio8"]
|
||||
size = Vector2(63.75, 738.5)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h7316"]
|
||||
size = Vector2(100, 753)
|
||||
|
||||
[node name="LevelBase" type="Node"]
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("1_prjlb")]
|
||||
|
||||
[node name="CanvasLayer" parent="." instance=ExtResource("2_mxtem")]
|
||||
visible = false
|
||||
|
||||
[node name="UILayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="UI" type="Control" parent="UILayer"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="UILayer/UI"]
|
||||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="ScaleUp" type="TextureButton" parent="UILayer/UI/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme = SubResource("Theme_efdhj")
|
||||
texture_normal = ExtResource("3_7s458")
|
||||
texture_pressed = ExtResource("4_6s82a")
|
||||
texture_hover = ExtResource("4_6s82a")
|
||||
texture_disabled = ExtResource("3_7s458")
|
||||
texture_focused = ExtResource("4_6s82a")
|
||||
|
||||
[node name="ScaleDown" type="TextureButton" parent="UILayer/UI/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
texture_normal = ExtResource("5_8tyx1")
|
||||
texture_pressed = ExtResource("6_kdplq")
|
||||
texture_hover = ExtResource("6_kdplq")
|
||||
texture_disabled = ExtResource("5_8tyx1")
|
||||
texture_focused = ExtResource("6_kdplq")
|
||||
|
||||
[node name="TextureButton" type="TextureButton" parent="UILayer/UI/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
texture_normal = ExtResource("7_xwthi")
|
||||
texture_pressed = ExtResource("8_r6dd1")
|
||||
texture_hover = ExtResource("8_r6dd1")
|
||||
texture_disabled = ExtResource("7_xwthi")
|
||||
texture_focused = ExtResource("8_r6dd1")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
|
||||
[node name="Walls" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="Ground" type="CollisionShape2D" parent="Walls"]
|
||||
position = Vector2(0.5, 394.25)
|
||||
shape = SubResource("RectangleShape2D_1vofj")
|
||||
|
||||
[node name="Ceiling" type="CollisionShape2D" parent="Walls"]
|
||||
position = Vector2(-0.5, -402.25)
|
||||
shape = SubResource("RectangleShape2D_4uh45")
|
||||
|
||||
[node name="LeftWall" type="CollisionShape2D" parent="Walls"]
|
||||
position = Vector2(-671.125, 2.25)
|
||||
shape = SubResource("RectangleShape2D_nnio8")
|
||||
|
||||
[node name="RightWall" type="CollisionShape2D" parent="Walls"]
|
||||
position = Vector2(690, -2.5)
|
||||
shape = SubResource("RectangleShape2D_h7316")
|
118
gmtk_2024/levels/TestingField.tscn
Normal file
|
@ -1,33 +0,0 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://o8wdfgnlp0ud"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cfnmiqovwwhry" path="res://player.tscn" id="1_nvifn"]
|
||||
[ext_resource type="PackedScene" uid="uid://cxbalfjqtp06t" path="res://canvas_layer.tscn" id="2_1gnwx"]
|
||||
[ext_resource type="Texture2D" uid="uid://cyealb63c8uqg" path="res://temp_assets/background_commision.png" id="2_qherw"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsu1bvlb0s8dp" path="res://temp_assets/Screenshot (1).png" id="3_es5ys"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_dqhmf"]
|
||||
size = Vector2(1928.3, 529.623)
|
||||
|
||||
[node name="TestingRoom" type="Node2D"]
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("1_nvifn")]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
z_index = -1
|
||||
texture = ExtResource("2_qherw")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
scale = Vector2(1e-05, 1e-05)
|
||||
|
||||
[node name="Sprite2D2" type="Sprite2D" parent="."]
|
||||
position = Vector2(38, 807)
|
||||
scale = Vector2(1.06, 1.06)
|
||||
texture = ExtResource("3_es5ys")
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="Sprite2D2"]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Sprite2D2/StaticBody2D"]
|
||||
position = Vector2(1.88681, -274.811)
|
||||
shape = SubResource("RectangleShape2D_dqhmf")
|
||||
|
||||
[node name="CanvasLayer" parent="." instance=ExtResource("2_1gnwx")]
|
37
gmtk_2024/menu/level_menu/level_button.tscn
Normal file
|
@ -0,0 +1,37 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://t83eid7pf4iv"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://yg2u8vwwbpv1" path="res://textures/File-Icon.png" id="1_2sfn6"]
|
||||
[ext_resource type="Texture2D" uid="uid://bc2ictes4mln1" path="res://textures/File-Icon-Closed.png" id="2_6ev1f"]
|
||||
[ext_resource type="FontFile" uid="uid://d3pbvdemdbxes" path="res://CommodoreSixtyFour.ttf" id="3_732s0"]
|
||||
[ext_resource type="Script" path="res://scripts/level_menu_level_button.gd" id="3_t0h1w"]
|
||||
|
||||
[node name="LevelButton" type="TextureButton"]
|
||||
custom_minimum_size = Vector2(50, 50)
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
disabled = true
|
||||
texture_normal = ExtResource("1_2sfn6")
|
||||
texture_disabled = ExtResource("2_6ev1f")
|
||||
ignore_texture_size = true
|
||||
stretch_mode = 5
|
||||
script = ExtResource("3_t0h1w")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/outline_size = 3
|
||||
theme_override_fonts/font = ExtResource("3_732s0")
|
||||
theme_override_font_sizes/font_size = 35
|
||||
text = "1"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[connection signal="pressed" from="." to="." method="_on_pressed"]
|
86
gmtk_2024/menu/level_menu/level_select.tscn
Normal file
|
@ -0,0 +1,86 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://bvvxwhg4tihng"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://cohbys634cf18" path="res://menu/main_menu/MainMenuTheme.tres" id="1_3v0vu"]
|
||||
[ext_resource type="Texture2D" uid="uid://dr4ayedb5xb2k" path="res://textures/file_editor.png" id="1_44xee"]
|
||||
[ext_resource type="Script" path="res://scripts/level_select.gd" id="2_nurro"]
|
||||
[ext_resource type="PackedScene" uid="uid://t83eid7pf4iv" path="res://menu/level_menu/level_button.tscn" id="4_0d7hu"]
|
||||
|
||||
[node name="LevelSelect" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_3v0vu")
|
||||
script = ExtResource("2_nurro")
|
||||
|
||||
[node name="Background" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("1_44xee")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Label" type="Label" parent="Background"]
|
||||
layout_mode = 0
|
||||
offset_left = 30.0
|
||||
offset_top = -8.0
|
||||
offset_right = 272.0
|
||||
offset_bottom = 42.0
|
||||
theme_override_font_sizes/font_size = 45
|
||||
text = "level select"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="QuitButton" type="Button" parent="Background"]
|
||||
layout_mode = 0
|
||||
offset_left = 1232.0
|
||||
offset_top = 2.0
|
||||
offset_right = 1270.0
|
||||
offset_bottom = 40.0
|
||||
flat = true
|
||||
|
||||
[node name="ClipControl" type="Control" parent="Background"]
|
||||
layout_mode = 1
|
||||
anchor_left = 0.005
|
||||
anchor_top = 0.11
|
||||
anchor_right = 0.956
|
||||
anchor_bottom = 0.924
|
||||
offset_left = 0.599999
|
||||
offset_top = -0.200005
|
||||
offset_right = 0.319946
|
||||
offset_bottom = -0.280029
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="Background/ClipControl"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
columns = 3
|
||||
|
||||
[node name="LevelButton" parent="Background/ClipControl/GridContainer" instance=ExtResource("4_0d7hu")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="LevelButton2" parent="Background/ClipControl/GridContainer" instance=ExtResource("4_0d7hu")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="LevelButton3" parent="Background/ClipControl/GridContainer" instance=ExtResource("4_0d7hu")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="LevelButton4" parent="Background/ClipControl/GridContainer" instance=ExtResource("4_0d7hu")]
|
||||
layout_mode = 2
|
||||
level_num = 2
|
||||
|
||||
[node name="LevelButton5" parent="Background/ClipControl/GridContainer" instance=ExtResource("4_0d7hu")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="LevelButton6" parent="Background/ClipControl/GridContainer" instance=ExtResource("4_0d7hu")]
|
||||
layout_mode = 2
|
||||
|
||||
[connection signal="pressed" from="Background/QuitButton" to="." method="_on_quit_button_pressed"]
|
21
gmtk_2024/objects/CRT.tscn
Normal file
|
@ -0,0 +1,21 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://dii1q3f5dj72y"]
|
||||
|
||||
[ext_resource type="Shader" path="res://shaders/crt.gdshader" id="1_wsc8u"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_c8ly2"]
|
||||
shader = ExtResource("1_wsc8u")
|
||||
shader_parameter/crt_curve = 0.01
|
||||
shader_parameter/crt_scan_line_color = 0.178
|
||||
shader_parameter/aperture_grille_rate = 0.141
|
||||
shader_parameter/rf_switch_esque_blur = 1.0
|
||||
shader_parameter/white_noise_rate = 0.0
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer"]
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
material = SubResource("ShaderMaterial_c8ly2")
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
17
gmtk_2024/objects/EnemyMover.tscn
Normal file
|
@ -0,0 +1,17 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://vtwswrkfkgas"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/enemy_movement_mover.gd" id="1_7kapi"]
|
||||
[ext_resource type="Texture2D" uid="uid://buqgl7x10et1f" path="res://temp_assets/img.png" id="1_ci3x0"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_duogd"]
|
||||
radius = 16.0
|
||||
height = 32.0
|
||||
|
||||
[node name="EnemyMover" type="CharacterBody2D"]
|
||||
script = ExtResource("1_7kapi")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_ci3x0")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CapsuleShape2D_duogd")
|
19
gmtk_2024/objects/Player.tscn
Normal file
|
@ -0,0 +1,19 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://snxpqx0ony7s"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/player_movement.gd" id="1_a6lhy"]
|
||||
[ext_resource type="Texture2D" uid="uid://qcx482jc7pqr" path="res://textures/player.png" id="2_sscjv"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_jqi2f"]
|
||||
radius = 9.0
|
||||
height = 22.0
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
script = ExtResource("1_a6lhy")
|
||||
jump_count = 1
|
||||
jump_strength = 600
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CapsuleShape2D_jqi2f")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("2_sscjv")
|
|
@ -1,19 +0,0 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://cfnmiqovwwhry"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/player_movement.gd" id="1_otvu6"]
|
||||
[ext_resource type="Texture2D" uid="uid://b6gxkpy33b88g" path="res://temp_assets/player.png" id="2_d4ig1"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_jqi2f"]
|
||||
radius = 16.0
|
||||
height = 32.0
|
||||
|
||||
[node name="Player" type="Node2D"]
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
script = ExtResource("1_otvu6")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D"]
|
||||
texture = ExtResource("2_d4ig1")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
shape = SubResource("CapsuleShape2D_jqi2f")
|
|
@ -47,6 +47,7 @@ click={
|
|||
|
||||
[rendering]
|
||||
|
||||
textures/canvas_textures/default_texture_filter=0
|
||||
renderer/rendering_method="gl_compatibility"
|
||||
renderer/rendering_method.mobile="gl_compatibility"
|
||||
2d/snap/snap_2d_transforms_to_pixel=true
|
||||
|
|
58
gmtk_2024/project.godot.orig
Normal file
|
@ -0,0 +1,58 @@
|
|||
; Engine configuration file.
|
||||
; It's best edited using the editor UI and not directly,
|
||||
; since the parameters that go here are not all obvious.
|
||||
;
|
||||
; Format:
|
||||
; [section] ; section goes between []
|
||||
; param=value ; assign values to parameters
|
||||
|
||||
config_version=5
|
||||
|
||||
[application]
|
||||
|
||||
config/name="GMTK_2024"
|
||||
<<<<<<< HEAD
|
||||
run/main_scene="res://menu/main_menu/MainMenu.tscn"
|
||||
=======
|
||||
run/main_scene="res://levels/TestingField.tscn"
|
||||
>>>>>>> dev
|
||||
config/features=PackedStringArray("4.3", "GL Compatibility")
|
||||
config/icon="res://temp_assets/icon.svg"
|
||||
|
||||
[display]
|
||||
|
||||
window/size/viewport_width=1280
|
||||
window/size/viewport_height=720
|
||||
window/size/mode=2
|
||||
window/stretch/mode="viewport"
|
||||
|
||||
[input]
|
||||
|
||||
player_right={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
player_left={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
player_jump={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":32,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
click={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":0,"position":Vector2(0, 0),"global_position":Vector2(0, 0),"factor":1.0,"button_index":1,"canceled":false,"pressed":false,"double_click":false,"script":null)
|
||||
]
|
||||
}
|
||||
|
||||
[rendering]
|
||||
|
||||
textures/canvas_textures/default_texture_filter=0
|
||||
renderer/rendering_method="gl_compatibility"
|
||||
renderer/rendering_method.mobile="gl_compatibility"
|
||||
environment/defaults/default_clear_color=Color(0.785573, 0.700355, 0.83902, 1)
|
||||
2d/snap/snap_2d_transforms_to_pixel=true
|
14
gmtk_2024/scripts/enemy_movement_mover.gd
Normal file
|
@ -0,0 +1,14 @@
|
|||
extends CharacterBody2D
|
||||
|
||||
@export var speed = 200;
|
||||
@export var gravity = 50;
|
||||
|
||||
var direction = 1;
|
||||
|
||||
|
||||
func _physics_process(delta):
|
||||
if is_on_wall():
|
||||
direction = direction * -1
|
||||
velocity.x = direction * speed
|
||||
velocity.y += gravity
|
||||
move_and_slide()
|
24
gmtk_2024/scripts/level_menu_level_button.gd
Normal file
|
@ -0,0 +1,24 @@
|
|||
@tool
|
||||
extends TextureButton
|
||||
|
||||
signal level_selected
|
||||
|
||||
@export var level_num: int = 1
|
||||
@export var locked: bool = true:
|
||||
set(value):
|
||||
locked = value
|
||||
level_locked() if locked else level_unlocked()
|
||||
|
||||
func level_locked() -> void:
|
||||
level_state(true)
|
||||
|
||||
func level_unlocked() -> void:
|
||||
level_state(false)
|
||||
|
||||
func level_state(value: bool) -> void:
|
||||
disabled = value
|
||||
$Label.visible = not value
|
||||
|
||||
|
||||
func _on_pressed():
|
||||
level_selected.emit(level_num)
|
13
gmtk_2024/scripts/level_select.gd
Normal file
|
@ -0,0 +1,13 @@
|
|||
extends Control
|
||||
|
||||
func _ready():
|
||||
setup_level_box()
|
||||
|
||||
func setup_level_box():
|
||||
for box in $Background/ClipControl/GridContainer.get_children():
|
||||
box.level_num = box.get_index() + 1
|
||||
box.locked = false
|
||||
|
||||
|
||||
func _on_quit_button_pressed():
|
||||
get_tree().change_scene_to_file("res://menu/main_menu/MainMenu.tscn")
|
|
@ -57,7 +57,7 @@ func _show_menu_options() -> void:
|
|||
|
||||
|
||||
func _on_start_button_pressed() -> void:
|
||||
print("Start Button Clicked")
|
||||
get_tree().change_scene_to_file("res://menu/level_menu/level_select.tscn")
|
||||
|
||||
func _on_credits_button_pressed() -> void:
|
||||
get_tree().change_scene_to_file("res://menu/main_menu/CreditsScene.tscn")
|
||||
|
|
|
@ -3,7 +3,7 @@ extends CharacterBody2D
|
|||
@export var speed = 340;
|
||||
@export var gravity = 50;
|
||||
@export var jump_count = 2;
|
||||
@export var jump_strength = 700;
|
||||
@export var jump_strength = 100
|
||||
|
||||
var jump_count_current = 2;
|
||||
var input_direction = 0 #To keep track of which direction we where moving in last frame
|
||||
|
@ -24,14 +24,16 @@ func get_input():
|
|||
|
||||
velocity.x = input_direction * speed
|
||||
|
||||
if is_on_floor(): # rest the jump count
|
||||
jump_count_current = jump_count
|
||||
|
||||
if Input.is_action_just_pressed("player_jump") and jump_count_current > 0:
|
||||
velocity.y = -1 * jump_strength
|
||||
jump_count_current = jump_count_current-1
|
||||
elif Input.is_action_pressed("player_jump"): #Fall less fast if we keep holding the button
|
||||
velocity.y += -1 * 20
|
||||
velocity.y += -1 * 25
|
||||
|
||||
|
||||
if is_on_floor():
|
||||
jump_count_current = jump_count
|
||||
|
||||
func _physics_process(delta):
|
||||
get_input()
|
||||
|
|
|
@ -13,7 +13,7 @@ uniform float crt_scan_line_color : hint_range( 0.0, 1.0 ) = 0.347;
|
|||
// 光量
|
||||
uniform float aperture_grille_rate : hint_range( 0.0, 1.0 ) = 0.4;
|
||||
// RFスイッチ的ブラー
|
||||
uniform float rf_switch_esque_blur : hint_range( 0.0, 1.0 ) = 1.0;
|
||||
uniform float rf_switch_esque_blur : hint_range( 0.0, 1.0 ) = 1;
|
||||
// 白色ノイズ
|
||||
uniform float white_noise_rate : hint_range( 0.0, 1.0 ) = 0.0;
|
||||
|
||||
|
|
Before Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 994 B After Width: | Height: | Size: 994 B |
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://3t2am0l5qvpq"
|
||||
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
|
||||
path="res://.godot/imported/icon.svg-54b04439b4d8634f76176c472591e9b4.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://icon.svg"
|
||||
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]
|
||||
source_file="res://temp_assets/icon.svg"
|
||||
dest_files=["res://.godot/imported/icon.svg-54b04439b4d8634f76176c472591e9b4.ctex"]
|
||||
|
||||
[params]
|
||||
|
BIN
gmtk_2024/temp_assets/img.png
Normal file
After Width: | Height: | Size: 173 B |
|
@ -2,16 +2,16 @@
|
|||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bsu1bvlb0s8dp"
|
||||
path="res://.godot/imported/Screenshot (1).png-26ba2769ce1c9804975484893473fb3a.ctex"
|
||||
uid="uid://buqgl7x10et1f"
|
||||
path="res://.godot/imported/img.png-dc45bd2bd72f900a7a2ec2ffa7c47124.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://temp_assets/Screenshot (1).png"
|
||||
dest_files=["res://.godot/imported/Screenshot (1).png-26ba2769ce1c9804975484893473fb3a.ctex"]
|
||||
source_file="res://temp_assets/img.png"
|
||||
dest_files=["res://.godot/imported/img.png-dc45bd2bd72f900a7a2ec2ffa7c47124.ctex"]
|
||||
|
||||
[params]
|
||||
|
BIN
gmtk_2024/temp_assets/mirror.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
|
@ -2,16 +2,16 @@
|
|||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cyealb63c8uqg"
|
||||
path="res://.godot/imported/background_commision.png-3f6004e5239a2c4eb926ce75331cca04.ctex"
|
||||
uid="uid://2rfdls8oduj1"
|
||||
path="res://.godot/imported/mirror.png-8323ac08430b69a1455e8f58bedfc150.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://temp_assets/background_commision.png"
|
||||
dest_files=["res://.godot/imported/background_commision.png-3f6004e5239a2c4eb926ce75331cca04.ctex"]
|
||||
source_file="res://temp_assets/mirror.png"
|
||||
dest_files=["res://.godot/imported/mirror.png-8323ac08430b69a1455e8f58bedfc150.ctex"]
|
||||
|
||||
[params]
|
||||
|
BIN
gmtk_2024/temp_assets/mirror_hovered.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
34
gmtk_2024/temp_assets/mirror_hovered.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bfpwj3kaxe1ka"
|
||||
path="res://.godot/imported/mirror_hovered.png-fa2419b22d10d99c5187ca2e8ecc3d42.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://temp_assets/mirror_hovered.png"
|
||||
dest_files=["res://.godot/imported/mirror_hovered.png-fa2419b22d10d99c5187ca2e8ecc3d42.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
Before Width: | Height: | Size: 1.1 KiB |
BIN
gmtk_2024/temp_assets/scale_down_hovered.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
34
gmtk_2024/temp_assets/scale_down_hovered.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c02aqv5sgwvgn"
|
||||
path="res://.godot/imported/scale_down_hovered.png-0778febf7416ccd7c8ca97bc8f162cb4.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://temp_assets/scale_down_hovered.png"
|
||||
dest_files=["res://.godot/imported/scale_down_hovered.png-0778febf7416ccd7c8ca97bc8f162cb4.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
BIN
gmtk_2024/temp_assets/scale_up.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
34
gmtk_2024/temp_assets/scale_up.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cw3onignoce3e"
|
||||
path="res://.godot/imported/scale_up.png-c50833ff329efc91c6234f8910a0feaa.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://temp_assets/scale_up.png"
|
||||
dest_files=["res://.godot/imported/scale_up.png-c50833ff329efc91c6234f8910a0feaa.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
BIN
gmtk_2024/temp_assets/scale_up_hovered.png
Normal file
After Width: | Height: | Size: 6.3 KiB |
34
gmtk_2024/temp_assets/scale_up_hovered.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ckr5hxaqp6s5x"
|
||||
path="res://.godot/imported/scale_up_hovered.png-090bafae05a1ad3ed19d5bd535718527.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://temp_assets/scale_up_hovered.png"
|
||||
dest_files=["res://.godot/imported/scale_up_hovered.png-090bafae05a1ad3ed19d5bd535718527.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
BIN
gmtk_2024/temp_assets/scaled_down.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
34
gmtk_2024/temp_assets/scaled_down.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://btmck3gpinxo1"
|
||||
path="res://.godot/imported/scaled_down.png-212f7a95b9c138667b8d044aa8656802.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://temp_assets/scaled_down.png"
|
||||
dest_files=["res://.godot/imported/scaled_down.png-212f7a95b9c138667b8d044aa8656802.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
BIN
gmtk_2024/textures/File-Icon-Closed.png
Normal file
After Width: | Height: | Size: 565 B |
BIN
gmtk_2024/textures/File-Icon.png
Normal file
After Width: | Height: | Size: 467 B |
BIN
gmtk_2024/textures/Level 01.gif
Normal file
After Width: | Height: | Size: 685 KiB |
BIN
gmtk_2024/textures/Virus-Player-Sheet.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
34
gmtk_2024/textures/Virus-Player-Sheet.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bnj38vubchr2w"
|
||||
path="res://.godot/imported/Virus-Player-Sheet.png-07f10ef36716fa6b784552079fc14813.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://textures/Virus-Player-Sheet.png"
|
||||
dest_files=["res://.godot/imported/Virus-Player-Sheet.png-07f10ef36716fa6b784552079fc14813.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
BIN
gmtk_2024/textures/file_editor.png
Normal file
After Width: | Height: | Size: 13 KiB |
34
gmtk_2024/textures/file_editor.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dr4ayedb5xb2k"
|
||||
path="res://.godot/imported/file_editor.png-df29bf0603480d0e2a8749cfcfa90ea1.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://textures/file_editor.png"
|
||||
dest_files=["res://.godot/imported/file_editor.png-df29bf0603480d0e2a8749cfcfa90ea1.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
BIN
gmtk_2024/textures/level01-spritesheet.png
Normal file
After Width: | Height: | Size: 2 KiB |
34
gmtk_2024/textures/level01-spritesheet.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c3m4os8kteaix"
|
||||
path="res://.godot/imported/level01-spritesheet.png-1916fd85baf9b82e97ba6ec03a3146d9.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://textures/level01-spritesheet.png"
|
||||
dest_files=["res://.godot/imported/level01-spritesheet.png-1916fd85baf9b82e97ba6ec03a3146d9.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
Before Width: | Height: | Size: 580 B After Width: | Height: | Size: 580 B |
|
@ -2,16 +2,16 @@
|
|||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b6gxkpy33b88g"
|
||||
path="res://.godot/imported/player.png-f011f11e1b5afaa2c3b0bec051759309.ctex"
|
||||
uid="uid://qcx482jc7pqr"
|
||||
path="res://.godot/imported/player.png-ce289a19efa81f268b1bb13630e9f80b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://temp_assets/player.png"
|
||||
dest_files=["res://.godot/imported/player.png-f011f11e1b5afaa2c3b0bec051759309.ctex"]
|
||||
source_file="res://textures/player.png"
|
||||
dest_files=["res://.godot/imported/player.png-ce289a19efa81f268b1bb13630e9f80b.ctex"]
|
||||
|
||||
[params]
|
||||
|