Compare commits

..
5 Commits
Author SHA1 Message Date
Martin Felis 8e47c26ed4 Release 1.0 2024-01-28 16:42:29 +01:00
Martin Felis fcfffe7825 UI improvements, added control descriptions 2024-01-28 16:07:43 +01:00
Martin Felis 0d9d9f856c Tweaked UI 2024-01-28 15:50:18 +01:00
Martin Felis b41a7ba2c3 Both controllers can select level 2024-01-28 15:40:04 +01:00
Martin Felis 57a9861b41 Added LotsaHoles level 2024-01-28 15:26:49 +01:00
19 changed files with 642 additions and 166 deletions
+2
View File
@@ -1,3 +1,5 @@
# Godot 4+ specific ignores
.godot/
assets/sounds/
export/
+93
View File
@@ -0,0 +1,93 @@
Copyright (c) 2013, 2014, Hubert and Fischer, Philipp Hubert (philipp@hubertfischer.com), Sebastian Fischer (sebastian@hubertfischer.com)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file not shown.
@@ -0,0 +1,33 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://dv01hh045k5n2"
path="res://.godot/imported/RubikMonoOne-Regular.ttf-e0dfb02f9f37dfb799d755a9158977e9.fontdata"
[deps]
source_file="res://assets/fonts/Rubik_Mono_One/RubikMonoOne-Regular.ttf"
dest_files=["res://.godot/imported/RubikMonoOne-Regular.ttf-e0dfb02f9f37dfb799d755a9158977e9.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={}
+3 -3
View File
@@ -145,15 +145,15 @@ func calc_coloring_position():
return result;
func on_player_spawn():
print ("Player " + str(self) + ": spawning")
print ("Player " + str(name) + ": spawning")
spawn_stream_player.pitch_scale = 0.8 + randf () * 0.4
spawn_stream_player.play()
func on_player_falling():
print ("Player " + str(self) + ": falling")
print ("Player " + str(name) + ": falling")
func on_player_dead():
print ("Player " + str(self) + ": death")
print ("Player " + str(name) + ": death")
func on_dash():
is_dashing = true;
+3 -2
View File
@@ -1,6 +1,7 @@
[gd_scene load_steps=7 format=3 uid="uid://bfyjtfdko3l7o"]
[gd_scene load_steps=8 format=3 uid="uid://bfyjtfdko3l7o"]
[ext_resource type="Script" path="res://entities/Player.gd" id="1_w5gy0"]
[ext_resource type="Material" uid="uid://bxbikke5t70ff" path="res://materials/PlayerMaterial.tres" id="2_jg6ir"]
[ext_resource type="AudioStream" uid="uid://bhbhh78j5rkfe" path="res://assets/sounds/pixabay/dash/whoosh-6316.mp3" id="2_ykhbt"]
[ext_resource type="AudioStream" uid="uid://qeg12ynvjvy0" path="res://assets/sounds/pixabay/explosion/081895_impact_wav-43951.mp3" id="3_mjsr0"]
[ext_resource type="AudioStream" uid="uid://b33xjins3dqpp" path="res://assets/sounds/pixabay/sfx/game-teleport-90735.mp3" id="4_y7abk"]
@@ -13,7 +14,6 @@ height = 0.75
radius = 0.15
[node name="Player1" type="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -7329.1, 0)
collision_layer = 5
collision_mask = 7
velocity = Vector3(0, -378.927, 0)
@@ -22,6 +22,7 @@ script = ExtResource("1_w5gy0")
[node name="Geometry" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.472656, 0)
mesh = SubResource("BoxMesh_yle83")
surface_material_override/0 = ExtResource("2_jg6ir")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.496337, 0)
+108
View File
@@ -0,0 +1,108 @@
[preset.0]
name="Linux/X11"
platform="Linux/X11"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="export/DashBoomColorClash/DashBoomColorClash.x86_64"
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"
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}\""
dotnet/include_scripts_content=false
dotnet/include_debug_symbols=true
dotnet/embed_build_outputs=false
[preset.1]
name="Windows Desktop"
platform="Windows Desktop"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="export/DashBoomColorClash/DashBoomColorClash.exe"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
[preset.1.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="res://ui/Icon.png"
application/console_wrapper_icon=""
application/icon_interpolation=4
application/file_version=""
application/product_version=""
application/company_name=""
application/product_name=""
application/file_description=""
application/copyright=""
application/trademarks=""
application/export_angle=0
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}'"
dotnet/include_scripts_content=false
dotnet/include_debug_symbols=true
dotnet/embed_build_outputs=false
Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

After

Width:  |  Height:  |  Size: 134 KiB

+35 -28
View File
@@ -1,50 +1,57 @@
[gd_scene load_steps=4 format=3 uid="uid://dobm413reyqom"]
[gd_scene load_steps=5 format=3 uid="uid://dobm413reyqom"]
[ext_resource type="PackedScene" uid="uid://7a2ma10hq0qa" path="res://scenes/PlatformA.tscn" id="1_ljufl"]
[ext_resource type="PackedScene" uid="uid://bnmtyc1kkt6ku" path="res://scenes/PlatformB.tscn" id="2_alvfs"]
[ext_resource type="PackedScene" uid="uid://cc521i07ajufm" path="res://entities/SpawnPoint.tscn" id="3_5ocaq"]
[ext_resource type="PackedScene" uid="uid://0fxjod84sli" path="res://scenes/PlatformParts/heptagon_platform_medium.tscn" id="4_w36x1"]
[node name="BasicLevel" type="Node3D"]
[node name="LotsaHoles" type="Node3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.76534, 0, 5.93242)
[node name="Platforms" parent="." instance=ExtResource("1_ljufl")]
transform = Transform3D(0.856951, 0, 0.515397, 0, 1, 0, -0.515397, 0, 0.856951, -0.673425, 0, 1.59883)
[node name="Platforms2" parent="." instance=ExtResource("1_ljufl")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.68666, 0, 5.21494)
[node name="SpawnPoint" parent="." instance=ExtResource("3_5ocaq")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.60433, 0, 0.463968)
[node name="Platforms2" parent="." instance=ExtResource("2_alvfs")]
transform = Transform3D(0.923739, 0, -0.383022, 0, 1, 0, 0.383022, 0, 0.923739, -10.2072, 0, -10.4223)
[node name="Platforms3" parent="." instance=ExtResource("1_ljufl")]
transform = Transform3D(0.768741, 0, -0.63956, 0, 1, 0, 0.63956, 0, 0.768741, 8.83345, 0, 2.90911)
transform = Transform3D(0.817256, 0, 0.576275, 0, 1, 0, -0.576275, 0, 0.817256, 8.80868, 0, -7.00391)
[node name="SpawnPoint2" parent="." instance=ExtResource("3_5ocaq")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.45146, 0, -7.63975)
[node name="HeptagonPlatform" parent="." instance=ExtResource("4_w36x1")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.819961, 0, -5.89795)
[node name="SpawnPoint3" parent="." instance=ExtResource("3_5ocaq")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -12.2548, 0, -10.074)
[node name="Platforms4" parent="." instance=ExtResource("1_ljufl")]
transform = Transform3D(-0.99988, 0, -0.0155154, 0, 1, 0, 0.0155154, 0, -0.99988, 13.9505, -4.76837e-07, -0.629952)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.98194, 0, -2.85678)
[node name="Platforms5" parent="." instance=ExtResource("1_ljufl")]
transform = Transform3D(-0.99988, 0, -0.0155154, 0, 1, 0, 0.0155154, 0, -0.99988, 6.40327, 0, -5.73714)
transform = Transform3D(0.9418, 0, -0.336175, 0, 1, 0, 0.336175, 0, 0.9418, 1.55973, 9.53674e-07, -13.245)
[node name="Platforms6" parent="." instance=ExtResource("1_ljufl")]
transform = Transform3D(-0.91991, 0, -0.392128, 0, 1, 0, 0.392128, 0, -0.91991, 17.1955, -4.76837e-07, -5.8158)
[node name="Platforms6" parent="." instance=ExtResource("2_alvfs")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.319829, 0, 0.317585)
[node name="Platforms7" parent="." instance=ExtResource("1_ljufl")]
transform = Transform3D(-0.91991, 0, -0.392128, 0, 1, 0, 0.392128, 0, -0.91991, 8.27811, 0, -7.69307)
[node name="Platforms7" parent="." instance=ExtResource("2_alvfs")]
transform = Transform3D(0.441584, 0, 0.89722, 0, 1, 0, -0.89722, 0, 0.441584, -14.4344, 9.53674e-07, -1.29715)
[node name="Platforms8" parent="." instance=ExtResource("2_alvfs")]
transform = Transform3D(0.769634, 0, 0.638486, 0, 1, 0, -0.638486, 0, 0.769634, -1.18219, 0, -6.89363)
[node name="SpawnPoint4" parent="." instance=ExtResource("3_5ocaq")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -15.1344, 0, 0.296233)
[node name="Platforms9" parent="." instance=ExtResource("2_alvfs")]
transform = Transform3D(0.330663, 0, -0.943749, 0, 1, 0, 0.943749, 0, 0.330663, 3.64812, -9.53674e-07, -15.7327)
[node name="Platforms8" parent="." instance=ExtResource("1_ljufl")]
transform = Transform3D(-0.247405, 0, 0.968912, 0, 1, 0, -0.968912, 0, -0.247405, -1.1221, 0, -6.80485)
[node name="Platforms10" parent="." instance=ExtResource("1_ljufl")]
transform = Transform3D(-0.851736, 0, 0.523971, 0, 1, 0, -0.523971, 0, -0.851736, 15.3333, 0, -12.1468)
[node name="Platforms9" parent="." instance=ExtResource("1_ljufl")]
transform = Transform3D(-0.878392, 0, -0.477941, 0, 1, 0, 0.477941, 0, -0.878392, -10.3357, 0, 3.40673)
[node name="SpawnPointPlayer1" parent="." instance=ExtResource("3_5ocaq")]
[node name="HeptagonPlatform2" parent="." instance=ExtResource("4_w36x1")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.23604, 0, 1.73223)
[node name="SpawnPointPlayer2" parent="." instance=ExtResource("3_5ocaq")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.83554, 0, -13.291)
player_index = 1
[node name="SpawnPointPlayer3" parent="." instance=ExtResource("3_5ocaq")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.4298, 0, 1.74365)
[node name="SpawnPointPlayer4" parent="." instance=ExtResource("3_5ocaq")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.0431, 0, -9.95279)
player_index = 1
[node name="SpawnPoint5" parent="." instance=ExtResource("3_5ocaq")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.89178, 0, -13.1054)
Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

+34
View File
@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b3bftdoqgqopj"
path="res://.godot/imported/LotsaHoles.png-9e2501e458428cba511d8c99fb395361.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://levels/LotsaHoles.png"
dest_files=["res://.godot/imported/LotsaHoles.png-9e2501e458428cba511d8c99fb395361.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
+30
View File
@@ -0,0 +1,30 @@
[gd_scene load_steps=5 format=3 uid="uid://8v8wcdht4g1n"]
[ext_resource type="PackedScene" uid="uid://7a2ma10hq0qa" path="res://scenes/PlatformA.tscn" id="1_3vod7"]
[ext_resource type="PackedScene" uid="uid://bnmtyc1kkt6ku" path="res://scenes/PlatformB.tscn" id="2_1sjbn"]
[ext_resource type="PackedScene" uid="uid://cc521i07ajufm" path="res://entities/SpawnPoint.tscn" id="3_5fxgl"]
[ext_resource type="PackedScene" uid="uid://0fxjod84sli" path="res://scenes/PlatformParts/heptagon_platform_medium.tscn" id="4_tix3f"]
[node name="LotsaHoles" type="Node3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.76534, 0, 5.93242)
[node name="Platforms" parent="." instance=ExtResource("1_3vod7")]
transform = Transform3D(0.856951, 0, 0.515397, 0, 1, 0, -0.515397, 0, 0.856951, -0.673425, 0, 1.59883)
[node name="SpawnPoint" parent="." instance=ExtResource("3_5fxgl")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.60433, 0, 0.463968)
[node name="Platforms2" parent="." instance=ExtResource("2_1sjbn")]
transform = Transform3D(0.923739, 0, -0.383022, 0, 1, 0, 0.383022, 0, 0.923739, -10.2072, 0, -10.4223)
[node name="Platforms3" parent="." instance=ExtResource("1_3vod7")]
transform = Transform3D(0.817256, 0, 0.576275, 0, 1, 0, -0.576275, 0, 0.817256, 8.80868, 0, -7.00391)
[node name="SpawnPoint2" parent="." instance=ExtResource("3_5fxgl")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.45146, 0, -7.63975)
[node name="HeptagonPlatform" parent="." instance=ExtResource("4_tix3f")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.819961, 0, -5.89795)
[node name="SpawnPoint3" parent="." instance=ExtResource("3_5fxgl")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.31, 0, -10.3338)
+3
View File
@@ -0,0 +1,3 @@
[gd_resource type="StandardMaterial3D" format=3 uid="uid://bxbikke5t70ff"]
[resource]
+45 -8
View File
@@ -11,9 +11,15 @@ config_version=5
[application]
config/name="DashBoomColorClash"
config/description="Spread your color in the level. Use bombs to mark spots and dash to evade your opponent!"
config/version="1.0"
run/main_scene="res://scenes/Game.tscn"
config/features=PackedStringArray("4.2", "GL Compatibility")
config/icon="res://icon.svg"
config/icon="res://ui/Icon.png"
[display]
window/size/mode=3
[dotnet]
@@ -29,17 +35,52 @@ ui_accept={
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":0,"pressure":0.0,"pressed":true,"script":null)
]
}
ui_select={
"deadzone": 0.5,
"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":3,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":32,"physical_keycode":0,"key_label":0,"unicode":32,"echo":false,"script":null)
]
}
ui_cancel={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194305,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":1,"pressure":0.0,"pressed":true,"script":null)
]
}
ui_left={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194319,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":13,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":0,"axis_value":-1.0,"script":null)
]
}
ui_right={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194321,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":14,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":0,"axis_value":1.0,"script":null)
]
}
ui_up={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194320,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":11,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":1,"axis_value":-1.0,"script":null)
]
}
ui_down={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194322,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":12,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":1,"axis_value":1.0,"script":null)
]
}
ui_menu={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194370,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":6,"pressure":0.0,"pressed":true,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":6,"pressure":0.0,"pressed":true,"script":null)
, 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":4194305,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
move_up_p1={
@@ -94,7 +135,7 @@ move_down_p2={
}
move_left_p2={
"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":4194319,"key_label":0,"unicode":0,"echo":false,"script":null)
"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":4194319,"key_label":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":1,"axis":0,"axis_value":-1.0,"script":null)
]
}
@@ -106,8 +147,8 @@ move_right_p2={
}
dash_p2={
"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":4194440,"key_label":0,"unicode":50,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":1,"button_index":0,"pressure":0.0,"pressed":true,"script":null)
"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":1,"button_index":0,"pressure":0.0,"pressed":true,"script":null)
, 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":4194440,"key_label":0,"unicode":50,"echo":false,"script":null)
]
}
bomb_p2={
@@ -116,10 +157,6 @@ bomb_p2={
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":1,"button_index":1,"pressure":0.0,"pressed":true,"script":null)
]
}
move={
"deadzone": 0.5,
"events": []
}
[layer_names]
+196 -121
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=11 format=3 uid="uid://rd48gl8k5x34"]
[gd_scene load_steps=13 format=3 uid="uid://rd48gl8k5x34"]
[ext_resource type="Theme" uid="uid://bb8mjy6l7umui" path="res://themes/GameUI.tres" id="2_eun58"]
[ext_resource type="PackedScene" uid="uid://b1nm5h3yccr16" path="res://scenes/World.tscn" id="2_voimb"]
@@ -6,6 +6,8 @@
[ext_resource type="Texture2D" uid="uid://b5ah0ej10awd5" path="res://levels/Platforms.png" id="4_0en0p"]
[ext_resource type="Script" path="res://scenes/GameUI.gd" id="4_2tdl1"]
[ext_resource type="Texture2D" uid="uid://dam8r48qo0qqh" path="res://levels/BasicLevel.png" id="4_l63m5"]
[ext_resource type="FontFile" uid="uid://dv01hh045k5n2" path="res://assets/fonts/Rubik_Mono_One/RubikMonoOne-Regular.ttf" id="4_pbhfl"]
[ext_resource type="Texture2D" uid="uid://b3bftdoqgqopj" path="res://levels/LotsaHoles.png" id="7_8su71"]
[sub_resource type="World3D" id="World3D_5g233"]
@@ -78,22 +80,6 @@ grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("2_eun58")
[node name="Label" type="Label" parent="GameUI/GameStartupWidgets"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -149.0
offset_top = -128.0
offset_right = 149.0
grow_horizontal = 2
grow_vertical = 0
theme_override_font_sizes/font_size = 120
text = "Ready?"
horizontal_alignment = 1
[node name="Logo" type="Control" parent="GameUI/GameStartupWidgets"]
layout_mode = 1
anchors_preset = 8
@@ -164,6 +150,190 @@ theme_override_constants/outline_size = 40
theme_override_font_sizes/font_size = 160
text = "CLASH"
[node name="Label2" type="Label" parent="GameUI/GameStartupWidgets"]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 17.0
offset_top = -50.0
offset_right = 705.0
offset_bottom = -17.0
grow_vertical = 0
text = "Music: Run Amok by Kevin MacLeod | https://incompetech.com/"
[node name="KeyboardControls" type="HBoxContainer" parent="GameUI/GameStartupWidgets"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -354.0
offset_top = -220.0
offset_right = 369.0
offset_bottom = -76.0
grow_horizontal = 2
grow_vertical = 0
[node name="GamepadControlsLabel" type="Label" parent="GameUI/GameStartupWidgets/KeyboardControls"]
layout_mode = 2
text = "Controls Gamepad:
Movement: Analog Stick
Dash: Button A / X
Bomb: Button B / O"
[node name="Player1KeyboardControlsLabel" type="Label" parent="GameUI/GameStartupWidgets/KeyboardControls"]
layout_mode = 2
text = "Player1:
Movement: W A S D
Dash: O
Bomb: P"
[node name="Player2KeyboardControlsLabel" type="Label" parent="GameUI/GameStartupWidgets/KeyboardControls"]
layout_mode = 2
text = "Player2:
Movement: ←↑→↓
Dash: Keypad 2
Bomb: Keypad 3"
[node name="GameLevelSelectWidgets" type="Panel" parent="GameUI"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Label" type="Label" parent="GameUI/GameLevelSelectWidgets"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -169.0
offset_top = 76.0
offset_right = 153.0
offset_bottom = 162.0
grow_horizontal = 2
theme_override_font_sizes/font_size = 80
text = "Level Select"
[node name="LevelListContainer" type="HBoxContainer" parent="GameUI/GameLevelSelectWidgets"]
layout_mode = 1
anchors_preset = 14
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_top = -151.0
offset_bottom = 148.0
grow_horizontal = 2
grow_vertical = 2
focus_next = NodePath("BasicLevelButton")
focus_mode = 2
theme_override_constants/separation = 32
alignment = 1
[node name="BasicLevelButton" type="Button" parent="GameUI/GameLevelSelectWidgets/LevelListContainer"]
layout_mode = 2
toggle_mode = true
button_group = ExtResource("4_0dlh8")
icon = ExtResource("4_l63m5")
[node name="PlatformLevelButton" type="Button" parent="GameUI/GameLevelSelectWidgets/LevelListContainer"]
layout_mode = 2
toggle_mode = true
button_group = ExtResource("4_0dlh8")
icon = ExtResource("4_0en0p")
[node name="PlatformLevelButton2" type="Button" parent="GameUI/GameLevelSelectWidgets/LevelListContainer"]
layout_mode = 2
toggle_mode = true
button_group = ExtResource("4_0dlh8")
icon = ExtResource("7_8su71")
[node name="GameRunningWidgets" type="Panel" parent="GameUI"]
visible = false
custom_minimum_size = Vector2(0, 80)
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 80.0
grow_horizontal = 2
[node name="Player1Widgets" type="VBoxContainer" parent="GameUI/GameRunningWidgets"]
layout_mode = 1
offset_left = 14.0
offset_top = 13.0
offset_right = 414.0
offset_bottom = 124.0
alignment = 1
[node name="NameLabel" type="Label" parent="GameUI/GameRunningWidgets/Player1Widgets"]
layout_mode = 2
theme_override_colors/font_color = Color(1, 0, 0, 1)
text = "Red"
[node name="ScoreLabel" type="Label" parent="GameUI/GameRunningWidgets/Player1Widgets"]
layout_mode = 2
theme_override_colors/font_color = Color(1, 0, 0, 1)
text = "0
"
[node name="EnergyProgressBar" type="ProgressBar" parent="GameUI/GameRunningWidgets/Player1Widgets"]
custom_minimum_size = Vector2(400, 0)
layout_mode = 2
theme_override_styles/fill = SubResource("StyleBoxFlat_y5ieh")
value = 33.0
[node name="Player2Widgets" type="VBoxContainer" parent="GameUI/GameRunningWidgets"]
layout_direction = 3
layout_mode = 1
offset_left = 21.0
offset_top = 14.0
offset_right = 421.0
offset_bottom = 125.0
size_flags_horizontal = 8
alignment = 1
[node name="NameLabel" type="Label" parent="GameUI/GameRunningWidgets/Player2Widgets"]
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 1, 1)
text = "Blue"
[node name="ScoreLabel" type="Label" parent="GameUI/GameRunningWidgets/Player2Widgets"]
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 1, 1)
text = "0
"
[node name="EnergyProgressBar" type="ProgressBar" parent="GameUI/GameRunningWidgets/Player2Widgets"]
custom_minimum_size = Vector2(400, 0)
layout_mode = 2
theme_override_styles/fill = SubResource("StyleBoxFlat_obhii")
value = 75.0
[node name="TimeWidgets" type="VBoxContainer" parent="GameUI/GameRunningWidgets"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -48.0
offset_right = 48.0
offset_bottom = 70.0
grow_horizontal = 2
[node name="Label" type="Label" parent="GameUI/GameRunningWidgets/TimeWidgets"]
layout_mode = 2
text = "Time Left"
horizontal_alignment = 1
[node name="TimeLeftLabel" type="Label" parent="GameUI/GameRunningWidgets/TimeWidgets"]
layout_mode = 2
theme_override_fonts/font = ExtResource("4_pbhfl")
theme_override_font_sizes/font_size = 40
text = "00:30:00"
horizontal_alignment = 1
[node name="GameFinishedWidgets" type="Panel" parent="GameUI"]
visible = false
layout_mode = 1
@@ -233,112 +403,17 @@ layout_mode = 2
text = "0"
horizontal_alignment = 1
[node name="GameRunningWidgets" type="Panel" parent="GameUI"]
visible = false
custom_minimum_size = Vector2(0, 80)
[node name="Label" type="Label" parent="GameUI/GameFinishedWidgets"]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 80.0
grow_horizontal = 2
[node name="Player1Widgets" type="VBoxContainer" parent="GameUI/GameRunningWidgets"]
layout_mode = 1
offset_right = 49.0
offset_bottom = 77.0
alignment = 1
[node name="NameLabel" type="Label" parent="GameUI/GameRunningWidgets/Player1Widgets"]
layout_mode = 2
theme_override_colors/font_color = Color(1, 0, 0, 1)
text = "Red"
[node name="ScoreLabel" type="Label" parent="GameUI/GameRunningWidgets/Player1Widgets"]
layout_mode = 2
theme_override_colors/font_color = Color(1, 0, 0, 1)
text = "0
"
[node name="EnergyProgressBar" type="ProgressBar" parent="GameUI/GameRunningWidgets/Player1Widgets"]
custom_minimum_size = Vector2(400, 0)
layout_mode = 2
theme_override_styles/fill = SubResource("StyleBoxFlat_y5ieh")
value = 33.0
[node name="Player2Widgets" type="VBoxContainer" parent="GameUI/GameRunningWidgets"]
layout_direction = 3
layout_mode = 1
offset_right = 49.0
offset_bottom = 77.0
size_flags_horizontal = 8
alignment = 1
[node name="NameLabel" type="Label" parent="GameUI/GameRunningWidgets/Player2Widgets"]
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 1, 1)
text = "Blue"
[node name="ScoreLabel" type="Label" parent="GameUI/GameRunningWidgets/Player2Widgets"]
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 1, 1)
text = "0
"
[node name="EnergyProgressBar" type="ProgressBar" parent="GameUI/GameRunningWidgets/Player2Widgets"]
custom_minimum_size = Vector2(400, 0)
layout_mode = 2
theme_override_styles/fill = SubResource("StyleBoxFlat_obhii")
value = 75.0
[node name="TimeWidgets" type="VBoxContainer" parent="GameUI/GameRunningWidgets"]
layout_mode = 1
anchors_preset = 5
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
offset_left = -48.0
offset_right = 48.0
offset_bottom = 70.0
grow_horizontal = 2
[node name="Label" type="Label" parent="GameUI/GameRunningWidgets/TimeWidgets"]
layout_mode = 2
text = "Time Left"
horizontal_alignment = 1
[node name="TimeLeftLabel" type="Label" parent="GameUI/GameRunningWidgets/TimeWidgets"]
layout_mode = 2
text = "00:30:00"
horizontal_alignment = 1
[node name="GameLevelSelectWidgets" type="Panel" parent="GameUI"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -217.0
offset_top = -54.0
offset_right = 228.0
offset_bottom = -21.0
grow_horizontal = 2
grow_vertical = 2
[node name="LevelListContainer" type="HBoxContainer" parent="GameUI/GameLevelSelectWidgets"]
layout_mode = 1
anchors_preset = 14
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
focus_next = NodePath("BasicLevelButton")
focus_mode = 2
theme_override_constants/separation = 32
alignment = 1
[node name="BasicLevelButton" type="Button" parent="GameUI/GameLevelSelectWidgets/LevelListContainer"]
layout_mode = 2
toggle_mode = true
button_group = ExtResource("4_0dlh8")
icon = ExtResource("4_l63m5")
[node name="PlatformLevelButton" type="Button" parent="GameUI/GameLevelSelectWidgets/LevelListContainer"]
layout_mode = 2
toggle_mode = true
button_group = ExtResource("4_0dlh8")
icon = ExtResource("4_0en0p")
grow_vertical = 0
text = "Press Escape/Options/Start to continue"
+4 -2
View File
@@ -53,9 +53,9 @@ func _process(_delta):
var minutes = floor(world.time_left / 60.)
var seconds = fmod(floor(world.time_left), 60)
var milliseconds = floor((world.time_left - floor(world.time_left)) * 10)
var milliseconds = floor((world.time_left - floor(world.time_left)) * 100)
time_left_label.text = str(minutes) + ":" + str(seconds) + ":" + str(milliseconds)
time_left_label.text = "%02d:%02d:%02d" % [minutes, seconds, milliseconds]
player1_score_label.add_theme_color_override("font-color", world.players[0].color)
if player2_widgets.visible:
@@ -92,6 +92,8 @@ func _input(event):
if event.is_action_pressed("ui_cancel"):
if world.game_state == World.GameState.LevelSelect:
world.game_state = World.GameState.Startup
elif world.game_state == World.GameState.Startup:
get_tree().quit()
func initialize_level_buttons():
var level_button : Button = level_list_container.get_child(0)
+18 -1
View File
@@ -11,11 +11,14 @@ var players: Array
@onready var music_stream_player: AudioStreamPlayer = $MusicAudioStreamPlayer
var player_scene = preload("res://entities/Player.tscn")
var player_override_material = preload("res://materials/PlayerMaterial.tres")
var level_scenes : Array = [
preload("res://levels/BasicLevel.tscn"),
preload("res://levels/Platforms.tscn")
preload("res://levels/Platforms.tscn"),
preload("res://levels/LotsaHoles.tscn")
]
var level_index = 0
var last_level_index = -1
@@ -130,6 +133,9 @@ func load_level():
level.add_child(level_instance)
spawn_points.clear()
for node in $Players.get_children():
node.queue_free()
find_spawn_points(level)
print("Found " + str(spawn_points.size()) + " spawn points.")
spawn_players()
@@ -185,6 +191,7 @@ func spawn_players():
player1.move_down_action += "_p1"
player1.dash_action += "_p1"
player1.bomb_action += "_p1"
var player2: Player = player_scene.instantiate()
player2.name = "Blue"
player2.color = Color(0, 0, 1, 1)
@@ -205,6 +212,16 @@ func spawn_players():
players.append(player1)
players.append(player2)
var player1_material : StandardMaterial3D = player_override_material.duplicate()
player1_material.albedo_color = player1.color
player1.geometry.set_surface_override_material(0, player1_material)
player1.name = "Red"
var player2_material : StandardMaterial3D = player_override_material.duplicate()
player2_material.albedo_color = player2.color
player2.geometry.set_surface_override_material(0, player2_material)
player2.name = "Blue"
if players.size() == 1:
world_coloring_material = load("res://materials/WorldColoringMaterialPass.tres")
world_coloring_material.set_shader_parameter("world_color_texture", world_coloring_viewport.get_texture())
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

+34
View File
@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://78p6eeqptp1e"
path="res://.godot/imported/Icon.png-4e0acb046e84f1b83d0c49e76b0ec5a4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui/Icon.png"
dest_files=["res://.godot/imported/Icon.png-4e0acb046e84f1b83d0c49e76b0ec5a4.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