Add files via upload

This commit is contained in:
Venky-234 2024-01-31 19:57:37 +05:30 committed by GitHub
parent 384cca3001
commit d27c39677a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
53 changed files with 3599 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dm86fji40m2dx"
path="res://.godot/imported/anti_grav_line.png-23fecec28195a3dacd65a300172fe5db.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://anti_grav_line.png"
dest_files=["res://.godot/imported/anti_grav_line.png-23fecec28195a3dacd65a300172fe5db.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bu2wuqqpt3v8c"
path="res://.godot/imported/arrow.png-9a52328c9c8f79a188b7fabb13b1f3fc.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://arrow.png"
dest_files=["res://.godot/imported/arrow.png-9a52328c9c8f79a188b7fabb13b1f3fc.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

Binary file not shown.

View file

@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://dws2o5d1cy5r3"
path="res://.godot/imported/bgm.mp3-67cac9dc6920484fa7a58e23002995eb.mp3str"
[deps]
source_file="res://bgm.mp3"
dest_files=["res://.godot/imported/bgm.mp3-67cac9dc6920484fa7a58e23002995eb.mp3str"]
[params]
loop=true
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cqj65bmfid3ll"
path="res://.godot/imported/black_box.png-3c5fbfc19b97170f48f19696a291deb7.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://black_box.png"
dest_files=["res://.godot/imported/black_box.png-3c5fbfc19b97170f48f19696a291deb7.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

View file

@ -0,0 +1,11 @@
extends Label
# Called when the node enters the scene tree for the first time.
func _ready():
#text = GameState.time_taken
text = "%.2f" % GameState.time_taken
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass

View file

@ -0,0 +1,14 @@
extends ColorRect
# Called when the node enters the scene tree for the first time.
func _ready():
modulate.a8 = 0
# Called every frame. 'delta' is the elapsed time since the previous frame.s
func _process(delta):
#modulate.a8 += 12
#await get_tree().create_timer(0.001)

View file

@ -0,0 +1,26 @@
[gd_scene load_steps=3 format=3 uid="uid://xa5a67axcxrf"]
[ext_resource type="Script" path="res://start.gd" id="1_hq6fn"]
[ext_resource type="FontFile" uid="uid://b2p71d75wtr0g" path="res://sofachrome.rg-regular.otf" id="1_pjhoi"]
[node name="enter_game" type="Node2D"]
script = ExtResource("1_hq6fn")
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="Label" type="Label" parent="CanvasLayer"]
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -264.0
offset_top = 336.0
offset_right = 264.0
offset_bottom = 596.0
grow_horizontal = 2
theme_override_fonts/font = ExtResource("1_pjhoi")
theme_override_font_sizes/font_size = 40
text = "speed square
hit p to play"

View file

@ -0,0 +1,242 @@
[preset.0]
name="test2"
platform="Windows Desktop"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="../test_pre/speed_square_final/speed_square.exe"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
[preset.0.options]
custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=1
binary_format/embed_pck=false
texture_format/bptc=true
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
binary_format/architecture="x86_64"
codesign/enable=false
codesign/timestamp=true
codesign/timestamp_server_url=""
codesign/digest_algorithm=1
codesign/description=""
codesign/custom_options=PackedStringArray()
application/modify_resources=true
application/icon=""
application/console_wrapper_icon="res://icon.svg"
application/icon_interpolation=4
application/file_version=""
application/product_version=""
application/company_name=""
application/product_name=""
application/file_description=""
application/copyright=""
application/trademarks=""
ssh_remote_deploy/enabled=false
ssh_remote_deploy/host="user@host_ip"
ssh_remote_deploy/port="22"
ssh_remote_deploy/extra_args_ssh=""
ssh_remote_deploy/extra_args_scp=""
ssh_remote_deploy/run_script="Expand-Archive -LiteralPath '{temp_dir}\\{archive_name}' -DestinationPath '{temp_dir}'
$action = New-ScheduledTaskAction -Execute '{temp_dir}\\{exe_name}' -Argument '{cmd_args}'
$trigger = New-ScheduledTaskTrigger -Once -At 00:00
$settings = New-ScheduledTaskSettingsSet
$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings
Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true
Start-ScheduledTask -TaskName godot_remote_debug
while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 }
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue"
ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue
Remove-Item -Recurse -Force '{temp_dir}'"
[preset.1]
name="macOS"
platform="macOS"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="../speed_square_pc_build/speed_square_final_mac/speed_square.zip"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
[preset.1.options]
export/distribution_type=1
binary_format/architecture="universal"
custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=1
application/icon=""
application/icon_interpolation=4
application/bundle_identifier="com"
application/signature=""
application/app_category="Games"
application/short_version="1.0"
application/version="1.0"
application/copyright=""
application/copyright_localized={}
application/min_macos_version="10.12"
display/high_res=true
xcode/platform_build="14C18"
xcode/sdk_version="13.1"
xcode/sdk_build="22C55"
xcode/sdk_name="macosx13.1"
xcode/xcode_version="1420"
xcode/xcode_build="14C18"
codesign/codesign=1
codesign/installer_identity=""
codesign/apple_team_id=""
codesign/identity=""
codesign/entitlements/custom_file=""
codesign/entitlements/allow_jit_code_execution=false
codesign/entitlements/allow_unsigned_executable_memory=false
codesign/entitlements/allow_dyld_environment_variables=false
codesign/entitlements/disable_library_validation=false
codesign/entitlements/audio_input=false
codesign/entitlements/camera=false
codesign/entitlements/location=false
codesign/entitlements/address_book=false
codesign/entitlements/calendars=false
codesign/entitlements/photos_library=false
codesign/entitlements/apple_events=false
codesign/entitlements/debugging=false
codesign/entitlements/app_sandbox/enabled=false
codesign/entitlements/app_sandbox/network_server=false
codesign/entitlements/app_sandbox/network_client=false
codesign/entitlements/app_sandbox/device_usb=false
codesign/entitlements/app_sandbox/device_bluetooth=false
codesign/entitlements/app_sandbox/files_downloads=0
codesign/entitlements/app_sandbox/files_pictures=0
codesign/entitlements/app_sandbox/files_music=0
codesign/entitlements/app_sandbox/files_movies=0
codesign/entitlements/app_sandbox/helper_executables=[]
codesign/custom_options=PackedStringArray()
notarization/notarization=0
privacy/microphone_usage_description=""
privacy/microphone_usage_description_localized={}
privacy/camera_usage_description=""
privacy/camera_usage_description_localized={}
privacy/location_usage_description=""
privacy/location_usage_description_localized={}
privacy/address_book_usage_description=""
privacy/address_book_usage_description_localized={}
privacy/calendar_usage_description=""
privacy/calendar_usage_description_localized={}
privacy/photos_library_usage_description=""
privacy/photos_library_usage_description_localized={}
privacy/desktop_folder_usage_description=""
privacy/desktop_folder_usage_description_localized={}
privacy/documents_folder_usage_description=""
privacy/documents_folder_usage_description_localized={}
privacy/downloads_folder_usage_description=""
privacy/downloads_folder_usage_description_localized={}
privacy/network_volumes_usage_description=""
privacy/network_volumes_usage_description_localized={}
privacy/removable_volumes_usage_description=""
privacy/removable_volumes_usage_description_localized={}
ssh_remote_deploy/enabled=false
ssh_remote_deploy/host="user@host_ip"
ssh_remote_deploy/port="22"
ssh_remote_deploy/extra_args_ssh=""
ssh_remote_deploy/extra_args_scp=""
ssh_remote_deploy/run_script="#!/usr/bin/env bash
unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
open \"{temp_dir}/{exe_name}.app\" --args {cmd_args}"
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
kill $(pgrep -x -f \"{temp_dir}/{exe_name}.app/Contents/MacOS/{exe_name} {cmd_args}\")
rm -rf \"{temp_dir}\""
[preset.2]
name="Linux/X11"
platform="Linux/X11"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="../speed_square_pc_build/speed_square_linux_build/speed_square.x86_64"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
[preset.2.options]
custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=1
binary_format/embed_pck=false
texture_format/bptc=true
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
binary_format/architecture="x86_64"
ssh_remote_deploy/enabled=false
ssh_remote_deploy/host="user@host_ip"
ssh_remote_deploy/port="22"
ssh_remote_deploy/extra_args_ssh=""
ssh_remote_deploy/extra_args_scp=""
ssh_remote_deploy/run_script="#!/usr/bin/env bash
export DISPLAY=:0
unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
\"{temp_dir}/{exe_name}\" {cmd_args}"
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
rm -rf \"{temp_dir}\""
[preset.3]
name="Web"
platform="Web"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="../speed_square_pc_build/web_build/speed_square.html"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
[preset.3.options]
custom_template/debug=""
custom_template/release=""
variant/extensions_support=false
vram_texture_compression/for_desktop=true
vram_texture_compression/for_mobile=false
html/export_icon=true
html/custom_html_shell=""
html/head_include=""
html/canvas_resize_policy=2
html/focus_canvas_on_start=true
html/experimental_virtual_keyboard=false
progressive_web_app/enabled=false
progressive_web_app/offline_page=""
progressive_web_app/display=1
progressive_web_app/orientation=0
progressive_web_app/icon_144x144=""
progressive_web_app/icon_180x180=""
progressive_web_app/icon_512x512=""
progressive_web_app/background_color=Color(0, 0, 0, 1)

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bsptkoh3qcq21"
path="res://.godot/imported/floor.png-d43f03cb7a8f42941311ed90ed2021b9.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://floor.png"
dest_files=["res://.godot/imported/floor.png-d43f03cb7a8f42941311ed90ed2021b9.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

View file

@ -0,0 +1,10 @@
extends Camera2D
var player
# Called when the node enters the scene tree for the first time.
func _ready():
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass

View file

@ -0,0 +1,11 @@
extends ColorRect
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
$Label.text = str(Engine.get_frames_per_second())

View file

@ -0,0 +1,17 @@
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready():
#DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)
GameState.time_taken = 0.0
# Called every frame. 'delta' is the elapsed time since the previous frame.
var pressed = false
func _process(delta):
if Input.is_key_pressed(KEY_R):
Transition.change_scene("res://level.tscn")

View file

@ -0,0 +1,12 @@
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready():
#DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if Input.is_key_pressed(KEY_R):
Transition.change_scene("res://enter_game.tscn")

View file

@ -0,0 +1,53 @@
[gd_scene load_steps=5 format=3 uid="uid://bbhhrct747w5m"]
[ext_resource type="Script" path="res://game_over.gd" id="1_2l5d1"]
[ext_resource type="FontFile" uid="uid://b2p71d75wtr0g" path="res://sofachrome.rg-regular.otf" id="1_53imi"]
[ext_resource type="Script" path="res://display_time.gd" id="2_lvjau"]
[sub_resource type="LabelSettings" id="LabelSettings_u7hcw"]
font = ExtResource("1_53imi")
font_size = 100
[node name="root" type="Node2D"]
script = ExtResource("1_2l5d1")
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="Label2" type="Label" parent="CanvasLayer"]
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -259.5
offset_top = 326.0
offset_right = 259.5
offset_bottom = 390.0
grow_horizontal = 2
theme_override_fonts/font = ExtResource("1_53imi")
theme_override_font_sizes/font_size = 50
text = "TIME TAKEN"
[node name="Label" type="Label" parent="CanvasLayer"]
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -79.5
offset_top = 457.0
offset_right = 79.5
offset_bottom = 578.0
grow_horizontal = 2
label_settings = SubResource("LabelSettings_u7hcw")
horizontal_alignment = 1
script = ExtResource("2_lvjau")
[node name="Label3" type="Label" parent="CanvasLayer"]
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -304.0
offset_top = 625.0
offset_right = 304.0
offset_bottom = 677.0
grow_horizontal = 2
theme_override_fonts/font = ExtResource("1_53imi")
theme_override_font_sizes/font_size = 40
text = "hit r to restart"

View file

@ -0,0 +1,14 @@
extends Node
var time_taken = 0.0
var stop_stopwatch = false
func _process(delta):
if stop_stopwatch == false:
time_taken += delta
#if stop_stopwatch == true:
#print("stopped the watch")

View file

@ -0,0 +1,17 @@
extends Node2D
# Called when the node enters the scene tree for the first time.
var tree
var speed
func _ready():
tree = get_tree() # Replace with function body.
speed = 12
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if self.position.x <= -19 or self.position.x >= 10:
speed *= -1
self.position.x += speed*delta

View file

@ -0,0 +1 @@
<svg height="128" width="128" xmlns="http://www.w3.org/2000/svg"><g transform="translate(32 32)"><path d="m-16-32c-8.86 0-16 7.13-16 15.99v95.98c0 8.86 7.13 15.99 16 15.99h96c8.86 0 16-7.13 16-15.99v-95.98c0-8.85-7.14-15.99-16-15.99z" fill="#363d52"/><path d="m-16-32c-8.86 0-16 7.13-16 15.99v95.98c0 8.86 7.13 15.99 16 15.99h96c8.86 0 16-7.13 16-15.99v-95.98c0-8.85-7.14-15.99-16-15.99zm0 4h96c6.64 0 12 5.35 12 11.99v95.98c0 6.64-5.35 11.99-12 11.99h-96c-6.64 0-12-5.35-12-11.99v-95.98c0-6.64 5.36-11.99 12-11.99z" fill-opacity=".4"/></g><g stroke-width="9.92746" transform="matrix(.10073078 0 0 .10073078 12.425923 2.256365)"><path d="m0 0s-.325 1.994-.515 1.976l-36.182-3.491c-2.879-.278-5.115-2.574-5.317-5.459l-.994-14.247-27.992-1.997-1.904 12.912c-.424 2.872-2.932 5.037-5.835 5.037h-38.188c-2.902 0-5.41-2.165-5.834-5.037l-1.905-12.912-27.992 1.997-.994 14.247c-.202 2.886-2.438 5.182-5.317 5.46l-36.2 3.49c-.187.018-.324-1.978-.511-1.978l-.049-7.83 30.658-4.944 1.004-14.374c.203-2.91 2.551-5.263 5.463-5.472l38.551-2.75c.146-.01.29-.016.434-.016 2.897 0 5.401 2.166 5.825 5.038l1.959 13.286h28.005l1.959-13.286c.423-2.871 2.93-5.037 5.831-5.037.142 0 .284.005.423.015l38.556 2.75c2.911.209 5.26 2.562 5.463 5.472l1.003 14.374 30.645 4.966z" fill="#fff" transform="matrix(4.162611 0 0 -4.162611 919.24059 771.67186)"/><path d="m0 0v-47.514-6.035-5.492c.108-.001.216-.005.323-.015l36.196-3.49c1.896-.183 3.382-1.709 3.514-3.609l1.116-15.978 31.574-2.253 2.175 14.747c.282 1.912 1.922 3.329 3.856 3.329h38.188c1.933 0 3.573-1.417 3.855-3.329l2.175-14.747 31.575 2.253 1.115 15.978c.133 1.9 1.618 3.425 3.514 3.609l36.182 3.49c.107.01.214.014.322.015v4.711l.015.005v54.325c5.09692 6.4164715 9.92323 13.494208 13.621 19.449-5.651 9.62-12.575 18.217-19.976 26.182-6.864-3.455-13.531-7.369-19.828-11.534-3.151 3.132-6.7 5.694-10.186 8.372-3.425 2.751-7.285 4.768-10.946 7.118 1.09 8.117 1.629 16.108 1.846 24.448-9.446 4.754-19.519 7.906-29.708 10.17-4.068-6.837-7.788-14.241-11.028-21.479-3.842.642-7.702.88-11.567.926v.006c-.027 0-.052-.006-.075-.006-.024 0-.049.006-.073.006v-.006c-3.872-.046-7.729-.284-11.572-.926-3.238 7.238-6.956 14.642-11.03 21.479-10.184-2.264-20.258-5.416-29.703-10.17.216-8.34.755-16.331 1.848-24.448-3.668-2.35-7.523-4.367-10.949-7.118-3.481-2.678-7.036-5.24-10.188-8.372-6.297 4.165-12.962 8.079-19.828 11.534-7.401-7.965-14.321-16.562-19.974-26.182 4.4426579-6.973692 9.2079702-13.9828876 13.621-19.449z" fill="#478cbf" transform="matrix(4.162611 0 0 -4.162611 104.69892 525.90697)"/><path d="m0 0-1.121-16.063c-.135-1.936-1.675-3.477-3.611-3.616l-38.555-2.751c-.094-.007-.188-.01-.281-.01-1.916 0-3.569 1.406-3.852 3.33l-2.211 14.994h-31.459l-2.211-14.994c-.297-2.018-2.101-3.469-4.133-3.32l-38.555 2.751c-1.936.139-3.476 1.68-3.611 3.616l-1.121 16.063-32.547 3.138c.015-3.498.06-7.33.06-8.093 0-34.374 43.605-50.896 97.781-51.086h.066.067c54.176.19 97.766 16.712 97.766 51.086 0 .777.047 4.593.063 8.093z" fill="#478cbf" transform="matrix(4.162611 0 0 -4.162611 784.07144 817.24284)"/><path d="m0 0c0-12.052-9.765-21.815-21.813-21.815-12.042 0-21.81 9.763-21.81 21.815 0 12.044 9.768 21.802 21.81 21.802 12.048 0 21.813-9.758 21.813-21.802" fill="#fff" transform="matrix(4.162611 0 0 -4.162611 389.21484 625.67104)"/><path d="m0 0c0-7.994-6.479-14.473-14.479-14.473-7.996 0-14.479 6.479-14.479 14.473s6.483 14.479 14.479 14.479c8 0 14.479-6.485 14.479-14.479" fill="#414042" transform="matrix(4.162611 0 0 -4.162611 367.36686 631.05679)"/><path d="m0 0c-3.878 0-7.021 2.858-7.021 6.381v20.081c0 3.52 3.143 6.381 7.021 6.381s7.028-2.861 7.028-6.381v-20.081c0-3.523-3.15-6.381-7.028-6.381" fill="#fff" transform="matrix(4.162611 0 0 -4.162611 511.99336 724.73954)"/><path d="m0 0c0-12.052 9.765-21.815 21.815-21.815 12.041 0 21.808 9.763 21.808 21.815 0 12.044-9.767 21.802-21.808 21.802-12.05 0-21.815-9.758-21.815-21.802" fill="#fff" transform="matrix(4.162611 0 0 -4.162611 634.78706 625.67104)"/><path d="m0 0c0-7.994 6.477-14.473 14.471-14.473 8.002 0 14.479 6.479 14.479 14.473s-6.477 14.479-14.479 14.479c-7.994 0-14.471-6.485-14.471-14.479" fill="#414042" transform="matrix(4.162611 0 0 -4.162611 656.64056 631.05679)"/></g></svg>

After

Width:  |  Height:  |  Size: 4.1 KiB

View file

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bihirf2383vqp"
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://icon.svg"
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.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
svg/scale=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dky5cbuw7jup6"
path="res://.godot/imported/killer.png-1a7c08069a11d2f84233739d124049e2.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://killer.png"
dest_files=["res://.godot/imported/killer.png-1a7c08069a11d2f84233739d124049e2.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c05lvgak02i8p"
path="res://.godot/imported/killer_bar_tex.png-3e8dc918dd3d768cd9e4987e263c3287.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://killer_bar_tex.png"
dest_files=["res://.godot/imported/killer_bar_tex.png-3e8dc918dd3d768cd9e4987e263c3287.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cdnf5rcxnvnfm"
path="res://.godot/imported/killer_box.png-cc85448275ca1d45aecfa95512afeb67.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://killer_box.png"
dest_files=["res://.godot/imported/killer_box.png-cc85448275ca1d45aecfa95512afeb67.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

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,94 @@
extends RigidBody2D
# Called when the node enters the scene tree for the first time.
var tree
var player_skin
var initial_pos : Vector2
func _ready():
tree = get_tree()
player_skin = $player_skin
initial_pos = position
var is_lost = false
var speed : int = 100
var speed_limit = 6.5
var grav_scale = 1
var fly_down = false
func _physics_process(delta):
if is_lost == false:
if Input.is_key_pressed(KEY_A) or Input.is_key_pressed(KEY_LEFT):
if linear_velocity.x >= -speed * speed_limit:
apply_central_impulse(Vector2(-speed,0))
if Input.is_key_pressed(KEY_D) or Input.is_key_pressed(KEY_RIGHT):
if linear_velocity.x <= speed * speed_limit:
apply_central_impulse(Vector2(speed,0))
if Input.is_key_pressed(KEY_SPACE) or Input.is_key_pressed(KEY_UP):
if fly_down == false:
if linear_velocity.y > -speed * speed_limit:
apply_central_impulse(Vector2(0,-speed))
if fly_down == true:
if linear_velocity.y < speed * speed_limit:
apply_central_impulse(Vector2(0,speed))
#self.rotation
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if is_lost == true:
if(player_skin.modulate.a8 > 0):
$player_skin.modulate.a8 -= 15
#await tree.create_timer(0.1).timeout
else:
await tree.create_timer(0.2).timeout
position = initial_pos
$player_skin.modulate.a8 = 255
self.linear_velocity.y = 0
self.linear_velocity.x = 0
gravity_scale = 1
is_lost = false
func _on_area_2d_area_entered(area):
if area.is_in_group("killer_group"):
is_lost = true
if area.get_name() == "next_level_check1" and is_lost == false:
initial_pos = Vector2(1560,-435)
if area.get_name() == "next_level_check2" and is_lost == false:
initial_pos = Vector2(100,-1313)
if area.get_name() == "next_level_check3" and is_lost == false:
initial_pos = Vector2(1668,-1629)
if area.get_name() == "anti_grav_zone":
gravity_scale = -1
fly_down = true
if area.get_name() == "finished" and is_lost == false:
GameState.stop_stopwatch = true
Transition.change_scene("res://game_over.tscn")
#print(area.get_name())
func _on_area_2d_area_exited(area):
if area.get_name() == "anti_grav_zone":
gravity_scale = 1
fly_down = false
#if area.is_in_group("killer_group"):
# is_lost = false

View file

@ -0,0 +1,11 @@
extends Node
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass

View file

@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=3 uid="uid://b7s3nplhf62w3"]
[ext_resource type="AudioStream" uid="uid://dws2o5d1cy5r3" path="res://bgm.mp3" id="1_sdebk"]
[node name="music" type="Node2D"]
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("1_sdebk")
autoplay = true

View file

@ -0,0 +1,4 @@
[gd_resource type="PhysicsMaterial" format=3 uid="uid://cgifxtguda0mh"]
[resource]
bounce = 0.9

View file

@ -0,0 +1,11 @@
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready():
remove_child(get_child(0,false))
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cg66ftpesld74"
path="res://.godot/imported/player_tex.png-146206b5285304779e2e411734060a1d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://player_tex.png"
dest_files=["res://.godot/imported/player_tex.png-146206b5285304779e2e411734060a1d.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

View file

@ -0,0 +1,37 @@
; 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="speed_square_pc"
run/main_scene="res://enter_game.tscn"
config/features=PackedStringArray("4.2", "Forward Plus")
boot_splash/bg_color=Color(0.141176, 0.141176, 0.141176, 1)
config/icon="res://icon.svg"
[autoload]
GameState="*res://game_state.gd"
Transition="*res://transition.tscn"
Music="*res://music.tscn"
[editor]
movie_writer/movie_file="E:/projects/test/bug.avi"
[physics]
2d/run_on_separate_thread=true
common/physics_ticks_per_second=240
2d/physics_engine="GodotPhysics2D"
[rendering]
environment/defaults/default_clear_color=Color(0, 0, 0, 1)

View file

@ -0,0 +1,17 @@
extends Sprite2D
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if modulate.a8 <= 0:
#var trail_renderer = $trail_renderer
#remove_child(get_child(0))
$trail_renderer.free()
var trail_renderer = load("res://trail_renderer.tscn").instantiate()
add_child(trail_renderer)

View file

@ -0,0 +1,18 @@
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if rotation + (10 * delta) >= 2*PI:
rotation = (rotation + (10 * delta)) - (2*PI)
else:
rotation += 10 * delta
#print(rotation)

View file

@ -0,0 +1,10 @@
extends CanvasLayer
func change_scene(path: String):
$AnimationPlayer.play("fade")
await $AnimationPlayer.animation_finished
get_tree().change_scene_to_file(path)
$AnimationPlayer.play_backwards("fade")

View file

@ -0,0 +1,13 @@
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready():
for i in get_children():
i.get_node("RigidBody2D").mass = 15
i.get_node("RigidBody2D").gravity_scale = 0
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass

Binary file not shown.

View file

@ -0,0 +1,3 @@
extends Node
var time_taken = 69.7

Binary file not shown.

View file

@ -0,0 +1,33 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://b2p71d75wtr0g"
path="res://.godot/imported/sofachrome.rg-regular.otf-58fe3fd51f8c0c63b1f808dd85dfdf28.fontdata"
[deps]
source_file="res://sofachrome.rg-regular.otf"
dest_files=["res://.godot/imported/sofachrome.rg-regular.otf-58fe3fd51f8c0c63b1f808dd85dfdf28.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

View file

@ -0,0 +1,14 @@
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready():
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)
GameState.time_taken = 0
GameState.stop_stopwatch = true
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if Input.is_key_pressed(KEY_P):
Transition.change_scene("res://level.tscn")
GameState.stop_stopwatch = false

View file

@ -0,0 +1,16 @@
extends Label
# Called when the node enters the scene tree for the first time.
func _ready():
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
var seconds = 0.0
var len = 8
var init_delta_taken = false
func _process(delta):
text = "%.2f" % GameState.time_taken

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bxrmikfbbbfp3"
path="res://.godot/imported/stopwatch_back.png-234a58f83500183f8ec91f283b3be7a2.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://stopwatch_back.png"
dest_files=["res://.godot/imported/stopwatch_back.png-234a58f83500183f8ec91f283b3be7a2.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

View file

@ -0,0 +1,20 @@
extends Line2D
var length = 20
var point = Vector2()
func _process(delta):
global_position = Vector2(0,0)
global_rotation = 0
#point = Vector2(get_parent().linear_velocity.x, get_parent().linear_velocity.y - 10)
point = get_parent().global_position
add_point(point)
if modulate.a8 <= 0:
points = PackedVector2Array()
if get_point_count()>length:
remove_point(0)

View file

@ -0,0 +1,18 @@
[gd_scene load_steps=4 format=3 uid="uid://bn6akfqnhuitq"]
[ext_resource type="Script" path="res://trail_renderer.gd" id="1_u5nk3"]
[sub_resource type="Curve" id="Curve_7jyuq"]
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="Gradient" id="Gradient_6v2un"]
[node name="trail_renderer" type="Line2D"]
show_behind_parent = true
position = Vector2(1.72159, 2.23407)
scale = Vector2(1.37931, 1.37931)
width_curve = SubResource("Curve_7jyuq")
gradient = SubResource("Gradient_6v2un")
antialiased = true
script = ExtResource("1_u5nk3")

View file

@ -0,0 +1,56 @@
[gd_scene load_steps=5 format=3 uid="uid://0tp0a7qa388f"]
[ext_resource type="Script" path="res://scene_transition.gd" id="1_fgy15"]
[sub_resource type="Animation" id="Animation_800gx"]
resource_name = "fade"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("dissolve_rect:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0, 0, 0, 0), Color(0, 0, 0, 1)]
}
[sub_resource type="Animation" id="Animation_nr4wr"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("dissolve_rect:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(0, 0, 0, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_yeick"]
_data = {
"RESET": SubResource("Animation_nr4wr"),
"fade": SubResource("Animation_800gx")
}
[node name="transition" type="CanvasLayer"]
script = ExtResource("1_fgy15")
[node name="dissolve_rect" type="ColorRect" parent="."]
modulate = Color(0, 0, 0, 0)
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_yeick")
}