Compare commits
10
Commits
d096da71a4
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8e47c26ed4 | ||
|
|
fcfffe7825 | ||
|
|
0d9d9f856c | ||
|
|
b41a7ba2c3 | ||
|
|
57a9861b41 | ||
|
|
597c32f9e2 | ||
|
|
154d5888f8 | ||
|
|
c1993a50e9 | ||
|
|
8238fabaa8 | ||
|
|
c36edf7651 |
@@ -1,2 +1,5 @@
|
|||||||
# Godot 4+ specific ignores
|
# Godot 4+ specific ignores
|
||||||
.godot/
|
.godot/
|
||||||
|
|
||||||
|
assets/sounds/
|
||||||
|
export/
|
||||||
|
|||||||
@@ -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={}
|
||||||
Binary file not shown.
@@ -0,0 +1,19 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="mp3"
|
||||||
|
type="AudioStreamMP3"
|
||||||
|
uid="uid://5da1smwywxdk"
|
||||||
|
path="res://.godot/imported/Run-Amok(chosic.com).mp3-4acd487c1e868789780d861bef0741e2.mp3str"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/music/Run-Amok(chosic.com).mp3"
|
||||||
|
dest_files=["res://.godot/imported/Run-Amok(chosic.com).mp3-4acd487c1e868789780d861bef0741e2.mp3str"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
||||||
|
bpm=0
|
||||||
|
beat_count=0
|
||||||
|
bar_beats=4
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
Run-Amok(chosic.com).mp3
|
||||||
|
- license: CC BY 3.0
|
||||||
|
- source: https://www.chosic.com/download-audio/39324/
|
||||||
|
- artist: Run Amok by Kevin MacLeod | https://incompetech.com/
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
punch-1-166694.mp3
|
||||||
|
- license:
|
||||||
|
- source: https://pixabay.com/sound-effects/punch-1-166694/
|
||||||
|
- author: floraphonic (https://pixabay.com/users/floraphonic-38928062/)
|
||||||
|
|
||||||
|
whoosh-6316.mp3
|
||||||
|
- license:
|
||||||
|
- source: https://pixabay.com/sound-effects/whoosh-6316/
|
||||||
|
- author: Pixabay (https://pixabay.com/users/pixabay-1/)
|
||||||
Binary file not shown.
@@ -0,0 +1,19 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="mp3"
|
||||||
|
type="AudioStreamMP3"
|
||||||
|
uid="uid://bhbhh78j5rkfe"
|
||||||
|
path="res://.godot/imported/whoosh-6316.mp3-c09ddc29973a4f106e83f9f9f20b7c35.mp3str"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/sounds/pixabay/dash/whoosh-6316.mp3"
|
||||||
|
dest_files=["res://.godot/imported/whoosh-6316.mp3-c09ddc29973a4f106e83f9f9f20b7c35.mp3str"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
||||||
|
bpm=0
|
||||||
|
beat_count=0
|
||||||
|
bar_beats=4
|
||||||
Binary file not shown.
@@ -0,0 +1,19 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="mp3"
|
||||||
|
type="AudioStreamMP3"
|
||||||
|
uid="uid://qeg12ynvjvy0"
|
||||||
|
path="res://.godot/imported/081895_impact_wav-43951.mp3-b97c4fdee4abc0cae63af4d92e0a6e8a.mp3str"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/sounds/pixabay/explosion/081895_impact_wav-43951.mp3"
|
||||||
|
dest_files=["res://.godot/imported/081895_impact_wav-43951.mp3-b97c4fdee4abc0cae63af4d92e0a6e8a.mp3str"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
||||||
|
bpm=0
|
||||||
|
beat_count=0
|
||||||
|
bar_beats=4
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
081895_impact_wav-43951.mp3
|
||||||
|
license:
|
||||||
|
source: https://pixabay.com/sound-effects/081895-impact-wav-43951/
|
||||||
|
author: Pixabay (https://pixabay.com/users/pixabay-1/)
|
||||||
Binary file not shown.
@@ -0,0 +1,19 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="mp3"
|
||||||
|
type="AudioStreamMP3"
|
||||||
|
uid="uid://b33xjins3dqpp"
|
||||||
|
path="res://.godot/imported/game-teleport-90735.mp3-112905f9f7cb1de6d452cc344a4b2de8.mp3str"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/sounds/pixabay/sfx/game-teleport-90735.mp3"
|
||||||
|
dest_files=["res://.godot/imported/game-teleport-90735.mp3-112905f9f7cb1de6d452cc344a4b2de8.mp3str"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
loop=false
|
||||||
|
loop_offset=0
|
||||||
|
bpm=0
|
||||||
|
beat_count=0
|
||||||
|
bar_beats=4
|
||||||
@@ -13,7 +13,7 @@ func _ready():
|
|||||||
collision_area.connect("body_entered", on_body_enter)
|
collision_area.connect("body_entered", on_body_enter)
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
func _physics_process(delta):
|
func _physics_process(_delta):
|
||||||
if processed:
|
if processed:
|
||||||
queue_free()
|
queue_free()
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,15 @@
|
|||||||
[gd_scene load_steps=3 format=3 uid="uid://dx6fxak21icvs"]
|
[gd_scene load_steps=3 format=3 uid="uid://ck1gd38drird6"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://entities/BombEmitter.gd" id="1_110pt"]
|
[ext_resource type="Script" path="res://entities/BombEmitter.gd" id="1_nvjs2"]
|
||||||
|
|
||||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_7yhwp"]
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_yy20u"]
|
||||||
height = 0.5
|
height = 0.5
|
||||||
radius = 3.0
|
radius = 5.0
|
||||||
|
|
||||||
[node name="BombEmitter" type="Node3D"]
|
[node name="BombEmitter" type="Node3D"]
|
||||||
script = ExtResource("1_110pt")
|
script = ExtResource("1_nvjs2")
|
||||||
|
|
||||||
[node name="Area3D" type="Area3D" parent="."]
|
[node name="Area3D" type="Area3D" parent="."]
|
||||||
collision_layer = 0
|
|
||||||
collision_mask = 4
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
||||||
shape = SubResource("CylinderShape3D_7yhwp")
|
shape = SubResource("CylinderShape3D_yy20u")
|
||||||
|
|||||||
+15
-5
@@ -7,13 +7,16 @@ class_name Player extends CharacterBody3D
|
|||||||
@export var move_down_action := "move_down"
|
@export var move_down_action := "move_down"
|
||||||
@export var move_up_action := "move_up"
|
@export var move_up_action := "move_up"
|
||||||
@export var dash_action := "dash"
|
@export var dash_action := "dash"
|
||||||
@export var bomb_action := "bomp"
|
@export var bomb_action := "bomb"
|
||||||
|
|
||||||
@export var coloring_sprite_path : NodePath
|
@export var coloring_sprite_path : NodePath
|
||||||
@export var coloring_bomb_sprite_path : NodePath
|
@export var coloring_bomb_sprite_path : NodePath
|
||||||
|
|
||||||
@onready var geometry: MeshInstance3D = $Geometry
|
@onready var geometry: MeshInstance3D = $Geometry
|
||||||
@onready var collision: CollisionShape3D = $CollisionShape3D
|
@onready var collision: CollisionShape3D = $CollisionShape3D
|
||||||
|
@onready var dash_stream_player: AudioStreamPlayer = $DashAudioStreamPlayer
|
||||||
|
@onready var explosion_stream_player: AudioStreamPlayer = $ExplosionAudioStreamPlayer
|
||||||
|
@onready var spawn_stream_player: AudioStreamPlayer = $SpawnAudioStreamPlayer
|
||||||
|
|
||||||
var bomb_emitter_scene = preload("res://entities/BombEmitter.tscn")
|
var bomb_emitter_scene = preload("res://entities/BombEmitter.tscn")
|
||||||
|
|
||||||
@@ -142,24 +145,31 @@ func calc_coloring_position():
|
|||||||
return result;
|
return result;
|
||||||
|
|
||||||
func on_player_spawn():
|
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():
|
func on_player_falling():
|
||||||
print ("Player " + str(self) + ": falling")
|
print ("Player " + str(name) + ": falling")
|
||||||
|
|
||||||
func on_player_dead():
|
func on_player_dead():
|
||||||
print ("Player " + str(self) + ": death")
|
print ("Player " + str(name) + ": death")
|
||||||
|
|
||||||
func on_dash():
|
func on_dash():
|
||||||
is_dashing = true;
|
is_dashing = true;
|
||||||
dash_time = DASH_DURATION
|
dash_time = DASH_DURATION
|
||||||
energy = max (0, energy - DASH_ENERGY)
|
energy = max (0, energy - DASH_ENERGY)
|
||||||
|
dash_stream_player.pitch_scale = 0.9 + randf () * 0.2
|
||||||
|
dash_stream_player.play()
|
||||||
|
|
||||||
func on_drop_bomb():
|
func on_drop_bomb():
|
||||||
coloring_bomb_sprite.visible = true;
|
coloring_bomb_sprite.visible = true;
|
||||||
bomb_time = BOMB_DURATION
|
bomb_time = BOMB_DURATION
|
||||||
energy = max (0, energy - BOMB_ENERGY)
|
energy = max (0, energy - BOMB_ENERGY)
|
||||||
|
|
||||||
|
explosion_stream_player.pitch_scale = 0.6 + randf () * 0.2
|
||||||
|
explosion_stream_player.play()
|
||||||
|
|
||||||
var bomb_emitter : BombEmitter = bomb_emitter_scene.instantiate()
|
var bomb_emitter : BombEmitter = bomb_emitter_scene.instantiate()
|
||||||
bomb_emitter.global_position = global_position
|
|
||||||
get_parent_node_3d().add_child(bomb_emitter)
|
get_parent_node_3d().add_child(bomb_emitter)
|
||||||
|
bomb_emitter.global_position = global_position
|
||||||
|
|||||||
+17
-8
@@ -1,6 +1,10 @@
|
|||||||
[gd_scene load_steps=4 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="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"]
|
||||||
|
|
||||||
[sub_resource type="BoxMesh" id="BoxMesh_yle83"]
|
[sub_resource type="BoxMesh" id="BoxMesh_yle83"]
|
||||||
size = Vector3(0.24, 0.75, 0.24)
|
size = Vector3(0.24, 0.75, 0.24)
|
||||||
@@ -10,22 +14,27 @@ height = 0.75
|
|||||||
radius = 0.15
|
radius = 0.15
|
||||||
|
|
||||||
[node name="Player1" type="CharacterBody3D"]
|
[node name="Player1" type="CharacterBody3D"]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -7329.1, 0)
|
|
||||||
collision_layer = 5
|
collision_layer = 5
|
||||||
collision_mask = 7
|
collision_mask = 7
|
||||||
velocity = Vector3(0, -378.927, 0)
|
velocity = Vector3(0, -378.927, 0)
|
||||||
script = ExtResource("1_w5gy0")
|
script = ExtResource("1_w5gy0")
|
||||||
move_right_action = "move_right_p1"
|
|
||||||
move_left_action = "move_left_p1"
|
|
||||||
move_down_action = "move_down_p1"
|
|
||||||
move_up_action = "move_up_p1"
|
|
||||||
dash_action = "dash_p1"
|
|
||||||
bomb_action = "bomb_p1"
|
|
||||||
|
|
||||||
[node name="Geometry" type="MeshInstance3D" parent="."]
|
[node name="Geometry" type="MeshInstance3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.472656, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.472656, 0)
|
||||||
mesh = SubResource("BoxMesh_yle83")
|
mesh = SubResource("BoxMesh_yle83")
|
||||||
|
surface_material_override/0 = ExtResource("2_jg6ir")
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.496337, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.496337, 0)
|
||||||
shape = SubResource("CylinderShape3D_rwgp3")
|
shape = SubResource("CylinderShape3D_rwgp3")
|
||||||
|
|
||||||
|
[node name="DashAudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||||
|
stream = ExtResource("2_ykhbt")
|
||||||
|
|
||||||
|
[node name="ExplosionAudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||||
|
stream = ExtResource("3_mjsr0")
|
||||||
|
volume_db = -15.707
|
||||||
|
pitch_scale = 0.84
|
||||||
|
|
||||||
|
[node name="SpawnAudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||||
|
stream = ExtResource("4_y7abk")
|
||||||
|
|||||||
@@ -11,6 +11,11 @@ func _ready():
|
|||||||
area3d.connect("body_entered", on_player_enter)
|
area3d.connect("body_entered", on_player_enter)
|
||||||
area3d.connect("body_exited", on_player_exited)
|
area3d.connect("body_exited", on_player_exited)
|
||||||
|
|
||||||
|
func _process(_delta):
|
||||||
|
for player: Player in near_players:
|
||||||
|
if player.state == Player.PlayerState.Dead:
|
||||||
|
near_players.erase(player)
|
||||||
|
|
||||||
func on_player_enter(node: Node3D):
|
func on_player_enter(node: Node3D):
|
||||||
var player: Player = node as Player
|
var player: Player = node as Player
|
||||||
if node == null:
|
if node == null:
|
||||||
|
|||||||
@@ -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.
|
After Width: | Height: | Size: 134 KiB |
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://dam8r48qo0qqh"
|
||||||
|
path="res://.godot/imported/BasicLevel.png-b10569d186ecf038de4843414924eabd.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://levels/BasicLevel.png"
|
||||||
|
dest_files=["res://.godot/imported/BasicLevel.png-b10569d186ecf038de4843414924eabd.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
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
[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="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="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.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(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.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("2_alvfs")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.319829, 0, 0.317585)
|
||||||
|
|
||||||
|
[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="SpawnPoint4" parent="." instance=ExtResource("3_5ocaq")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -15.1344, 0, 0.296233)
|
||||||
|
|
||||||
|
[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="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="HeptagonPlatform2" parent="." instance=ExtResource("4_w36x1")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.23604, 0, 1.73223)
|
||||||
|
|
||||||
|
[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 |
@@ -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
|
||||||
@@ -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)
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 98 KiB |
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://b5ah0ej10awd5"
|
||||||
|
path="res://.godot/imported/Platforms.png-6509e9f078e654ad679ba5a9350838f2.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://levels/Platforms.png"
|
||||||
|
dest_files=["res://.godot/imported/Platforms.png-6509e9f078e654ad679ba5a9350838f2.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
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
[gd_scene load_steps=6 format=3 uid="uid://87rik2jwk38y"]
|
||||||
|
|
||||||
|
[ext_resource type="PackedScene" uid="uid://7a2ma10hq0qa" path="res://scenes/PlatformA.tscn" id="1_t5xh4"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bnmtyc1kkt6ku" path="res://scenes/PlatformB.tscn" id="2_20hf0"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cc521i07ajufm" path="res://entities/SpawnPoint.tscn" id="3_63ckc"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://0fxjod84sli" path="res://scenes/PlatformParts/heptagon_platform_medium.tscn" id="4_yewb1"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://deod1xpjlgljl" path="res://scenes/PlatformParts/heptagon_platform_small.tscn" id="5_deyyw"]
|
||||||
|
|
||||||
|
[node name="Platforms" 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_t5xh4")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.14317, 0, -7.62714)
|
||||||
|
|
||||||
|
[node name="Platforms2" parent="." instance=ExtResource("1_t5xh4")]
|
||||||
|
transform = Transform3D(0.960162, 0, 0.279444, 0, 1, 0, -0.279444, 0, 0.960162, 8.23778, 0, -2.69178)
|
||||||
|
|
||||||
|
[node name="Platforms3" parent="." instance=ExtResource("2_20hf0")]
|
||||||
|
transform = Transform3D(0.998982, 0, -0.0451189, 0, 1, 0, 0.0451189, 0, 0.998982, 7.95994, 0, -17.2561)
|
||||||
|
|
||||||
|
[node name="Platforms4" parent="." instance=ExtResource("2_20hf0")]
|
||||||
|
transform = Transform3D(0.922066, 0, 0.387033, 0, 1, 0, -0.387033, 0, 0.922066, -5.98415, 0, -9.7244)
|
||||||
|
|
||||||
|
[node name="Platforms5" parent="." instance=ExtResource("1_t5xh4")]
|
||||||
|
transform = Transform3D(0.923846, 0, -0.382764, 0, 1, 0, 0.382764, 0, 0.923846, 2.31558, 0, -23.054)
|
||||||
|
|
||||||
|
[node name="SpawnPoint" parent="." instance=ExtResource("3_63ckc")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.01383, 0, -1.93276)
|
||||||
|
|
||||||
|
[node name="SpawnPoint2" parent="." instance=ExtResource("3_63ckc")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.21992, 0, -7.43863)
|
||||||
|
|
||||||
|
[node name="SpawnPoint3" parent="." instance=ExtResource("3_63ckc")]
|
||||||
|
transform = Transform3D(0.998982, 0, -0.0451189, 0, 1, 0, 0.0451189, 0, 0.998982, 3.70248, 0, -22.6231)
|
||||||
|
|
||||||
|
[node name="Platforms6" parent="." instance=ExtResource("2_20hf0")]
|
||||||
|
transform = Transform3D(0.886317, 0, -0.463079, 0, 1, 0, 0.463079, 0, 0.886317, 16.7673, 0, -9.85118)
|
||||||
|
|
||||||
|
[node name="SpawnPoint4" parent="." instance=ExtResource("3_63ckc")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.6107, 0, -8.04518)
|
||||||
|
|
||||||
|
[node name="HeptagonPlatform" parent="." instance=ExtResource("4_yewb1")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.28917, 0, -10.1963)
|
||||||
|
|
||||||
|
[node name="HeptagonPlatform2" parent="." instance=ExtResource("4_yewb1")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.15056, 0, -9.08093)
|
||||||
|
|
||||||
|
[node name="HeptagonPlatform3" parent="." instance=ExtResource("5_deyyw")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.78291, 0, -10.8037)
|
||||||
|
|
||||||
|
[node name="HeptagonPlatform4" parent="." instance=ExtResource("4_yewb1")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.07311, 0, -10.3168)
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[gd_resource type="StandardMaterial3D" format=3 uid="uid://bxbikke5t70ff"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
+46
-9
@@ -11,9 +11,15 @@ config_version=5
|
|||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="DashBoomColorClash"
|
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"
|
run/main_scene="res://scenes/Game.tscn"
|
||||||
config/features=PackedStringArray("4.2", "GL Compatibility")
|
config/features=PackedStringArray("4.2", "GL Compatibility")
|
||||||
config/icon="res://icon.svg"
|
config/icon="res://ui/Icon.png"
|
||||||
|
|
||||||
|
[display]
|
||||||
|
|
||||||
|
window/size/mode=3
|
||||||
|
|
||||||
[dotnet]
|
[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)
|
, 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={
|
ui_cancel={
|
||||||
"deadzone": 0.5,
|
"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)
|
"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)
|
, 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={
|
ui_menu={
|
||||||
"deadzone": 0.5,
|
"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)
|
"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(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={
|
move_up_p1={
|
||||||
@@ -94,7 +135,7 @@ move_down_p2={
|
|||||||
}
|
}
|
||||||
move_left_p2={
|
move_left_p2={
|
||||||
"deadzone": 0.5,
|
"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)
|
, 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={
|
dash_p2={
|
||||||
"deadzone": 0.5,
|
"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)
|
"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":1,"button_index":0,"pressure":0.0,"pressed":true,"script":null)
|
||||||
, 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={
|
bomb_p2={
|
||||||
@@ -116,17 +157,13 @@ bomb_p2={
|
|||||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":1,"button_index":1,"pressure":0.0,"pressed":true,"script":null)
|
, 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]
|
[layer_names]
|
||||||
|
|
||||||
3d_physics/layer_1="World"
|
3d_physics/layer_1="World"
|
||||||
3d_physics/layer_2="Obstacles"
|
3d_physics/layer_2="Obstacles"
|
||||||
3d_physics/layer_3="Player"
|
3d_physics/layer_3="Player"
|
||||||
3d_physics/layer_4="Collectibles"
|
3d_physics/layer_4="Clutter"
|
||||||
|
|
||||||
[rendering]
|
[rendering]
|
||||||
|
|
||||||
|
|||||||
+207
-83
@@ -1,14 +1,25 @@
|
|||||||
[gd_scene load_steps=6 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="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"]
|
[ext_resource type="PackedScene" uid="uid://b1nm5h3yccr16" path="res://scenes/World.tscn" id="2_voimb"]
|
||||||
|
[ext_resource type="ButtonGroup" uid="uid://ctqarf04xdj1" path="res://ui/LevelSelectButtonGroup.tres" id="4_0dlh8"]
|
||||||
|
[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="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"]
|
[sub_resource type="World3D" id="World3D_5g233"]
|
||||||
|
|
||||||
[sub_resource type="ViewportTexture" id="ViewportTexture_2lmj8"]
|
[sub_resource type="ViewportTexture" id="ViewportTexture_2lmj8"]
|
||||||
viewport_path = NodePath("Viewport")
|
viewport_path = NodePath("Viewport")
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_y5ieh"]
|
||||||
|
bg_color = Color(1, 0, 0, 1)
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_obhii"]
|
||||||
|
bg_color = Color(0, 0, 1, 1)
|
||||||
|
|
||||||
[node name="Game" type="Node"]
|
[node name="Game" type="Node"]
|
||||||
|
|
||||||
[node name="Viewport" type="SubViewport" parent="."]
|
[node name="Viewport" type="SubViewport" parent="."]
|
||||||
@@ -69,22 +80,6 @@ grow_horizontal = 2
|
|||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
theme = ExtResource("2_eun58")
|
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"]
|
[node name="Logo" type="Control" parent="GameUI/GameStartupWidgets"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 8
|
anchors_preset = 8
|
||||||
@@ -155,7 +150,192 @@ theme_override_constants/outline_size = 40
|
|||||||
theme_override_font_sizes/font_size = 160
|
theme_override_font_sizes/font_size = 160
|
||||||
text = "CLASH"
|
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"]
|
[node name="GameFinishedWidgets" type="Panel" parent="GameUI"]
|
||||||
|
visible = false
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
@@ -223,73 +403,17 @@ layout_mode = 2
|
|||||||
text = "0"
|
text = "0"
|
||||||
horizontal_alignment = 1
|
horizontal_alignment = 1
|
||||||
|
|
||||||
[node name="GameRunningWidgets" type="Panel" parent="GameUI"]
|
[node name="Label" type="Label" parent="GameUI/GameFinishedWidgets"]
|
||||||
visible = false
|
|
||||||
custom_minimum_size = Vector2(0, 80)
|
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 10
|
anchors_preset = 7
|
||||||
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
|
|
||||||
text = "Red"
|
|
||||||
|
|
||||||
[node name="ScoreLabel" type="Label" parent="GameUI/GameRunningWidgets/Player1Widgets"]
|
|
||||||
layout_mode = 2
|
|
||||||
text = "0
|
|
||||||
"
|
|
||||||
|
|
||||||
[node name="EnergyProgressBar" type="ProgressBar" parent="GameUI/GameRunningWidgets/Player1Widgets"]
|
|
||||||
custom_minimum_size = Vector2(400, 0)
|
|
||||||
layout_mode = 2
|
|
||||||
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
|
|
||||||
text = "Blue"
|
|
||||||
|
|
||||||
[node name="ScoreLabel" type="Label" parent="GameUI/GameRunningWidgets/Player2Widgets"]
|
|
||||||
layout_mode = 2
|
|
||||||
text = "0
|
|
||||||
"
|
|
||||||
|
|
||||||
[node name="EnergyProgressBar" type="ProgressBar" parent="GameUI/GameRunningWidgets/Player2Widgets"]
|
|
||||||
custom_minimum_size = Vector2(400, 0)
|
|
||||||
layout_mode = 2
|
|
||||||
value = 75.0
|
|
||||||
|
|
||||||
[node name="TimeWidgets" type="VBoxContainer" parent="GameUI/GameRunningWidgets"]
|
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 5
|
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
|
anchor_top = 1.0
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
offset_left = -48.0
|
anchor_bottom = 1.0
|
||||||
offset_right = 48.0
|
offset_left = -217.0
|
||||||
offset_bottom = 70.0
|
offset_top = -54.0
|
||||||
|
offset_right = 228.0
|
||||||
|
offset_bottom = -21.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 0
|
||||||
[node name="Label" type="Label" parent="GameUI/GameRunningWidgets/TimeWidgets"]
|
text = "Press Escape/Options/Start to continue"
|
||||||
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
|
|
||||||
|
|||||||
+62
-3
@@ -5,6 +5,9 @@ extends Control
|
|||||||
@onready var game_running_widgets : Control = $'GameRunningWidgets'
|
@onready var game_running_widgets : Control = $'GameRunningWidgets'
|
||||||
@onready var game_startup_widgets : Control = $'GameStartupWidgets'
|
@onready var game_startup_widgets : Control = $'GameStartupWidgets'
|
||||||
@onready var game_finished_widgets : Control = $'GameFinishedWidgets'
|
@onready var game_finished_widgets : Control = $'GameFinishedWidgets'
|
||||||
|
@onready var game_level_select_widgets : Control = $'GameLevelSelectWidgets'
|
||||||
|
|
||||||
|
@onready var level_list_container: HBoxContainer = $'GameLevelSelectWidgets/LevelListContainer'
|
||||||
|
|
||||||
@onready var player1_score_label : Label = $'GameRunningWidgets/Player1Widgets/ScoreLabel'
|
@onready var player1_score_label : Label = $'GameRunningWidgets/Player1Widgets/ScoreLabel'
|
||||||
@onready var player1_energy_progressbar : ProgressBar = $'GameRunningWidgets/Player1Widgets/EnergyProgressBar'
|
@onready var player1_energy_progressbar : ProgressBar = $'GameRunningWidgets/Player1Widgets/EnergyProgressBar'
|
||||||
@@ -24,6 +27,10 @@ var world : World = null
|
|||||||
func _ready():
|
func _ready():
|
||||||
world = get_node(world_path)
|
world = get_node(world_path)
|
||||||
|
|
||||||
|
initialize_level_buttons()
|
||||||
|
|
||||||
|
game_level_select_widgets.connect("visibility_changed", on_game_level_select_visibility_changed)
|
||||||
|
|
||||||
if world.players.size() == 1:
|
if world.players.size() == 1:
|
||||||
player2_widgets.visible = false
|
player2_widgets.visible = false
|
||||||
|
|
||||||
@@ -32,20 +39,32 @@ func _process(_delta):
|
|||||||
game_startup_widgets.visible = true
|
game_startup_widgets.visible = true
|
||||||
game_running_widgets.visible = false
|
game_running_widgets.visible = false
|
||||||
game_finished_widgets.visible = false
|
game_finished_widgets.visible = false
|
||||||
|
game_level_select_widgets.visible = false
|
||||||
|
elif world.game_state == World.GameState.LevelSelect:
|
||||||
|
game_startup_widgets.visible = false
|
||||||
|
game_running_widgets.visible = false
|
||||||
|
game_finished_widgets.visible = false
|
||||||
|
game_level_select_widgets.visible = true
|
||||||
elif world.game_state == World.GameState.Running:
|
elif world.game_state == World.GameState.Running:
|
||||||
game_startup_widgets.visible = false
|
game_startup_widgets.visible = false
|
||||||
game_running_widgets.visible = true
|
game_running_widgets.visible = true
|
||||||
game_finished_widgets.visible = false
|
game_finished_widgets.visible = false
|
||||||
|
game_level_select_widgets.visible = false
|
||||||
|
|
||||||
var minutes = floor(world.time_left / 60.)
|
var minutes = floor(world.time_left / 60.)
|
||||||
var seconds = fmod(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:
|
||||||
|
player2_score_label.add_theme_color_override("font-color", world.players[1].color)
|
||||||
elif world.game_state == World.GameState.Finished:
|
elif world.game_state == World.GameState.Finished:
|
||||||
game_startup_widgets.visible = false
|
game_startup_widgets.visible = false
|
||||||
game_running_widgets.visible = false
|
game_running_widgets.visible = false
|
||||||
game_finished_widgets.visible = true
|
game_finished_widgets.visible = true
|
||||||
|
game_level_select_widgets.visible = false
|
||||||
|
|
||||||
player1_score_label.text = str(world.players[0].score)
|
player1_score_label.text = str(world.players[0].score)
|
||||||
player1_energy_progressbar.value = world.players[0].energy
|
player1_energy_progressbar.value = world.players[0].energy
|
||||||
@@ -66,8 +85,48 @@ func _process(_delta):
|
|||||||
func _input(event):
|
func _input(event):
|
||||||
if event.is_action_pressed("ui_accept"):
|
if event.is_action_pressed("ui_accept"):
|
||||||
if world.game_state == World.GameState.Startup:
|
if world.game_state == World.GameState.Startup:
|
||||||
world.game_state = World.GameState.Running
|
world.game_state = World.GameState.LevelSelect
|
||||||
if event.is_action_pressed("ui_menu"):
|
if event.is_action_pressed("ui_menu"):
|
||||||
if world.game_state == World.GameState.Finished:
|
if world.game_state == World.GameState.Finished:
|
||||||
world.game_state = World.GameState.Startup
|
world.game_state = World.GameState.Startup
|
||||||
|
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)
|
||||||
|
if level_button == null:
|
||||||
|
push_error("Cannot initialize level selection: no level button found!")
|
||||||
|
return
|
||||||
|
|
||||||
|
var level_select_button_group : ButtonGroup = level_button.button_group
|
||||||
|
level_select_button_group.connect("pressed", on_level_button_pressed)
|
||||||
|
|
||||||
|
func update_selected_level():
|
||||||
|
var level_button: Button = level_list_container.get_child(0)
|
||||||
|
if level_button == null:
|
||||||
|
push_error("Cannot update selected level: no level found")
|
||||||
|
|
||||||
|
var button_index: int = -1
|
||||||
|
for button: Button in level_button.button_group.get_buttons():
|
||||||
|
button_index += 1
|
||||||
|
if button_index == world.level_index:
|
||||||
|
button.grab_focus()
|
||||||
|
return
|
||||||
|
|
||||||
|
func on_level_button_pressed(button: Button):
|
||||||
|
print("level button " + str(button) + " pressed")
|
||||||
|
var button_index: int = -1
|
||||||
|
for level_button : Button in level_list_container.get_children():
|
||||||
|
button_index += 1
|
||||||
|
print(str(level_button) + " toggled: " + str(level_button.is_hovered()))
|
||||||
|
if level_button == button:
|
||||||
|
world.level_index = button_index
|
||||||
|
|
||||||
|
print("level index: " + str(world.level_index))
|
||||||
|
world.game_state = World.GameState.Running
|
||||||
|
|
||||||
|
func on_game_level_select_visibility_changed():
|
||||||
|
update_selected_level()
|
||||||
|
|||||||
+126
-23
@@ -1,6 +1,6 @@
|
|||||||
class_name World extends Node3D
|
class_name World extends Node3D
|
||||||
|
|
||||||
@export var players: Array
|
var players: Array
|
||||||
|
|
||||||
@onready var score_update_timer: Timer = $ScoreUpdateTimer
|
@onready var score_update_timer: Timer = $ScoreUpdateTimer
|
||||||
@onready var pixel_count_compute_shader: PixelCountComputeShader = $PixelCountComputeShader
|
@onready var pixel_count_compute_shader: PixelCountComputeShader = $PixelCountComputeShader
|
||||||
@@ -8,6 +8,19 @@ class_name World extends Node3D
|
|||||||
@onready var camera: Camera3D = $Camera3D
|
@onready var camera: Camera3D = $Camera3D
|
||||||
@onready var level: Node3D = $Level
|
@onready var level: Node3D = $Level
|
||||||
@onready var world_coloring_viewport: SubViewport = $WorldColoringViewport
|
@onready var world_coloring_viewport: SubViewport = $WorldColoringViewport
|
||||||
|
@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/LotsaHoles.tscn")
|
||||||
|
]
|
||||||
|
|
||||||
|
var level_index = 0
|
||||||
|
var last_level_index = -1
|
||||||
|
|
||||||
const GAME_DURATION_SECONDS = 20
|
const GAME_DURATION_SECONDS = 20
|
||||||
|
|
||||||
@@ -18,6 +31,7 @@ var spawn_points: Array = Array()
|
|||||||
|
|
||||||
enum GameState {
|
enum GameState {
|
||||||
Startup,
|
Startup,
|
||||||
|
LevelSelect,
|
||||||
Running,
|
Running,
|
||||||
Finished
|
Finished
|
||||||
}
|
}
|
||||||
@@ -28,35 +42,19 @@ var game_state_last : GameState = GameState.Finished
|
|||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready():
|
func _ready():
|
||||||
var player1: CharacterBody3D = $Player1
|
|
||||||
var player2: CharacterBody3D = $Player2
|
|
||||||
|
|
||||||
players.append(player1)
|
|
||||||
players.append(player2)
|
|
||||||
|
|
||||||
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())
|
|
||||||
else:
|
|
||||||
world_coloring_material = load("res://materials/WorldColoringMaterialPassVersus.tres")
|
|
||||||
world_coloring_material.set_shader_parameter("world_color_texture", world_coloring_viewport.get_texture())
|
|
||||||
|
|
||||||
camera_position = camera.global_position
|
camera_position = camera.global_position
|
||||||
|
|
||||||
score_update_timer.connect("timeout", update_score)
|
score_update_timer.connect("timeout", update_score)
|
||||||
|
|
||||||
find_spawn_points(level)
|
load_level()
|
||||||
|
|
||||||
for player: Player in players:
|
|
||||||
player.state = player.PlayerState.Dead
|
|
||||||
|
|
||||||
apply_world_coloring_recursive(level)
|
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
func _process(_delta):
|
func _process(_delta):
|
||||||
if game_state_last != game_state:
|
if game_state_last != game_state:
|
||||||
if game_state == GameState.Startup:
|
if game_state == GameState.Startup:
|
||||||
on_game_startup()
|
on_game_startup()
|
||||||
|
elif game_state == GameState.LevelSelect:
|
||||||
|
on_game_level_select()
|
||||||
elif game_state == GameState.Running:
|
elif game_state == GameState.Running:
|
||||||
on_game_running()
|
on_game_running()
|
||||||
elif game_state == GameState.Finished:
|
elif game_state == GameState.Finished:
|
||||||
@@ -97,6 +95,9 @@ func _process(_delta):
|
|||||||
camera.global_position = camera_position
|
camera.global_position = camera_position
|
||||||
|
|
||||||
func _physics_process(_delta):
|
func _physics_process(_delta):
|
||||||
|
if level_index != last_level_index:
|
||||||
|
load_level()
|
||||||
|
|
||||||
world_coloring_material.set_shader_parameter("world_color_texture", world_coloring_viewport.get_texture())
|
world_coloring_material.set_shader_parameter("world_color_texture", world_coloring_viewport.get_texture())
|
||||||
|
|
||||||
if game_state != GameState.Running:
|
if game_state != GameState.Running:
|
||||||
@@ -112,7 +113,7 @@ func _physics_process(_delta):
|
|||||||
if not spawn_point.is_occupied():
|
if not spawn_point.is_occupied():
|
||||||
occupied = false
|
occupied = false
|
||||||
|
|
||||||
player.global_position = spawn_point.global_position
|
player.global_position = spawn_point.global_position + Vector3.UP * 2
|
||||||
player.state = Player.PlayerState.Alive
|
player.state = Player.PlayerState.Alive
|
||||||
spawn_point.near_players.append(player)
|
spawn_point.near_players.append(player)
|
||||||
|
|
||||||
@@ -121,12 +122,38 @@ func _unhandled_input(event):
|
|||||||
if event.is_action_pressed("ui_accept"):
|
if event.is_action_pressed("ui_accept"):
|
||||||
game_state = GameState.Running
|
game_state = GameState.Running
|
||||||
|
|
||||||
func find_spawn_points (node):
|
func load_level():
|
||||||
|
print("Loading level " + str(level_scenes[level_index]))
|
||||||
|
|
||||||
|
for node in level.get_children():
|
||||||
|
node.queue_free()
|
||||||
|
|
||||||
|
var level_instance = level_scenes[level_index].instantiate()
|
||||||
|
print("Loaded level " + level_instance.name)
|
||||||
|
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()
|
||||||
|
apply_world_coloring_recursive(level)
|
||||||
|
|
||||||
|
last_level_index = level_index
|
||||||
|
|
||||||
|
func find_spawn_points (node: Node3D):
|
||||||
for child in node.get_children():
|
for child in node.get_children():
|
||||||
|
if child.is_queued_for_deletion():
|
||||||
|
continue
|
||||||
|
|
||||||
var spawn_point = child as SpawnPoint
|
var spawn_point = child as SpawnPoint
|
||||||
if spawn_point:
|
if spawn_point:
|
||||||
spawn_points.append(spawn_point)
|
spawn_points.append(spawn_point)
|
||||||
|
|
||||||
|
find_spawn_points(child)
|
||||||
|
|
||||||
func apply_world_coloring_recursive (node):
|
func apply_world_coloring_recursive (node):
|
||||||
for child in node.get_children():
|
for child in node.get_children():
|
||||||
var mesh_instance := child as MeshInstance3D
|
var mesh_instance := child as MeshInstance3D
|
||||||
@@ -150,10 +177,84 @@ func update_score():
|
|||||||
if players.size() > 1:
|
if players.size() > 1:
|
||||||
players[1].score = pixel_count_compute_shader.blue_score
|
players[1].score = pixel_count_compute_shader.blue_score
|
||||||
|
|
||||||
|
func spawn_players():
|
||||||
|
var players_node = $Players
|
||||||
|
|
||||||
|
var player1: Player = player_scene.instantiate()
|
||||||
|
player1.name = "Red"
|
||||||
|
player1.color = Color(1, 0, 0, 1)
|
||||||
|
player1.coloring_sprite_path = world_coloring_viewport.get_node("Player1Sprite").get_path()
|
||||||
|
player1.coloring_bomb_sprite_path = world_coloring_viewport.get_node("Player1BombSprite").get_path()
|
||||||
|
player1.move_right_action += "_p1"
|
||||||
|
player1.move_left_action += "_p1"
|
||||||
|
player1.move_up_action += "_p1"
|
||||||
|
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)
|
||||||
|
player2.coloring_sprite_path = world_coloring_viewport.get_node("Player2Sprite").get_path()
|
||||||
|
player2.coloring_bomb_sprite_path = world_coloring_viewport.get_node("Player2BombSprite").get_path()
|
||||||
|
player2.move_right_action += "_p2"
|
||||||
|
player2.move_left_action += "_p2"
|
||||||
|
player2.move_up_action += "_p2"
|
||||||
|
player2.move_down_action += "_p2"
|
||||||
|
player2.dash_action += "_p2"
|
||||||
|
player2.bomb_action += "_p2"
|
||||||
|
|
||||||
|
players_node.add_child(player1)
|
||||||
|
players_node.add_child(player2)
|
||||||
|
|
||||||
|
players.clear()
|
||||||
|
|
||||||
|
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())
|
||||||
|
else:
|
||||||
|
world_coloring_material = load("res://materials/WorldColoringMaterialPassVersus.tres")
|
||||||
|
world_coloring_material.set_shader_parameter("world_color_texture", world_coloring_viewport.get_texture())
|
||||||
|
|
||||||
|
for player: Player in players:
|
||||||
|
player.state = player.PlayerState.Dead
|
||||||
|
|
||||||
|
func remove_players():
|
||||||
|
var players_node = $Players
|
||||||
|
|
||||||
|
for player: Player in players_node.get_children():
|
||||||
|
player.queue_free()
|
||||||
|
|
||||||
|
players.clear()
|
||||||
|
|
||||||
func on_game_startup():
|
func on_game_startup():
|
||||||
print("Switching to startup")
|
print("Switching to startup")
|
||||||
stop_gameplay()
|
stop_gameplay()
|
||||||
|
|
||||||
|
music_stream_player.stop()
|
||||||
|
|
||||||
|
world_coloring_viewport.render_target_clear_mode = SubViewport.CLEAR_MODE_ONCE
|
||||||
|
world_coloring_viewport.render_target_update_mode = SubViewport.UPDATE_ONCE
|
||||||
|
|
||||||
|
func on_game_level_select():
|
||||||
|
print("Switching to level select")
|
||||||
|
stop_gameplay()
|
||||||
|
|
||||||
|
music_stream_player.stop()
|
||||||
|
|
||||||
world_coloring_viewport.render_target_clear_mode = SubViewport.CLEAR_MODE_ONCE
|
world_coloring_viewport.render_target_clear_mode = SubViewport.CLEAR_MODE_ONCE
|
||||||
world_coloring_viewport.render_target_update_mode = SubViewport.UPDATE_ONCE
|
world_coloring_viewport.render_target_update_mode = SubViewport.UPDATE_ONCE
|
||||||
|
|
||||||
@@ -161,6 +262,8 @@ func on_game_running():
|
|||||||
print("Switching to gameplay")
|
print("Switching to gameplay")
|
||||||
start_gameplay()
|
start_gameplay()
|
||||||
|
|
||||||
|
music_stream_player.play()
|
||||||
|
|
||||||
world_coloring_viewport.render_target_clear_mode = SubViewport.CLEAR_MODE_NEVER
|
world_coloring_viewport.render_target_clear_mode = SubViewport.CLEAR_MODE_NEVER
|
||||||
world_coloring_viewport.render_target_update_mode = SubViewport.UPDATE_ALWAYS
|
world_coloring_viewport.render_target_update_mode = SubViewport.UPDATE_ALWAYS
|
||||||
|
|
||||||
@@ -181,7 +284,7 @@ func stop_gameplay():
|
|||||||
player.set_physics_process(false)
|
player.set_physics_process(false)
|
||||||
|
|
||||||
func start_gameplay():
|
func start_gameplay():
|
||||||
print("Starting ggameplay")
|
print("Starting gameplay")
|
||||||
time_left = GAME_DURATION_SECONDS
|
time_left = GAME_DURATION_SECONDS
|
||||||
|
|
||||||
for player: Player in players:
|
for player: Player in players:
|
||||||
|
|||||||
+9
-60
@@ -1,13 +1,11 @@
|
|||||||
[gd_scene load_steps=13 format=3 uid="uid://b1nm5h3yccr16"]
|
[gd_scene load_steps=11 format=3 uid="uid://b1nm5h3yccr16"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scenes/World.gd" id="1_gtcjp"]
|
[ext_resource type="Script" path="res://scenes/World.gd" id="1_gtcjp"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bfyjtfdko3l7o" path="res://entities/Player.tscn" id="2_a343a"]
|
[ext_resource type="AudioStream" uid="uid://5da1smwywxdk" path="res://assets/music/Run-Amok(chosic.com).mp3" id="3_owwdt"]
|
||||||
[ext_resource type="Texture2D" uid="uid://bnsrnuuq28p4d" path="res://assets/textures/player_draw_mask.png" id="4_dipd5"]
|
[ext_resource type="Texture2D" uid="uid://bnsrnuuq28p4d" path="res://assets/textures/player_draw_mask.png" id="4_dipd5"]
|
||||||
[ext_resource type="Texture2D" uid="uid://vcebfpqo2ko7" path="res://assets/textures/player_bomb_mask.png" id="5_17c1g"]
|
[ext_resource type="Texture2D" uid="uid://vcebfpqo2ko7" path="res://assets/textures/player_bomb_mask.png" id="5_17c1g"]
|
||||||
[ext_resource type="PackedScene" path="res://scenes/PixelCountComputeShader.tscn" id="6_75vqy"]
|
[ext_resource type="PackedScene" path="res://scenes/PixelCountComputeShader.tscn" id="6_75vqy"]
|
||||||
[ext_resource type="PackedScene" uid="uid://7a2ma10hq0qa" path="res://scenes/PlatformA.tscn" id="6_83plb"]
|
[ext_resource type="PackedScene" uid="uid://87rik2jwk38y" path="res://levels/Platforms.tscn" id="6_n6e0v"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bnmtyc1kkt6ku" path="res://scenes/PlatformB.tscn" id="7_cld3m"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://cc521i07ajufm" path="res://entities/SpawnPoint.tscn" id="8_ykvyf"]
|
|
||||||
|
|
||||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_5gauv"]
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_5gauv"]
|
||||||
sky_energy_multiplier = 5.0
|
sky_energy_multiplier = 5.0
|
||||||
@@ -33,23 +31,8 @@ autostart = true
|
|||||||
[node name="PixelCountComputeShader" parent="." instance=ExtResource("6_75vqy")]
|
[node name="PixelCountComputeShader" parent="." instance=ExtResource("6_75vqy")]
|
||||||
paint_viewport_path = NodePath("../WorldColoringViewport")
|
paint_viewport_path = NodePath("../WorldColoringViewport")
|
||||||
|
|
||||||
[node name="Player1" parent="." instance=ExtResource("2_a343a")]
|
[node name="MusicAudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.121184, 0)
|
stream = ExtResource("3_owwdt")
|
||||||
color = Color(1, 0, 0, 1)
|
|
||||||
coloring_sprite_path = NodePath("../WorldColoringViewport/Player1Sprite")
|
|
||||||
coloring_bomb_sprite_path = NodePath("../WorldColoringViewport/Player1BombSprite")
|
|
||||||
|
|
||||||
[node name="Player2" parent="." instance=ExtResource("2_a343a")]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, -0.121184, 0)
|
|
||||||
color = Color(0, 0, 1, 1)
|
|
||||||
move_right_action = "move_right_p2"
|
|
||||||
move_left_action = "move_left_p2"
|
|
||||||
move_down_action = "move_down_p2"
|
|
||||||
move_up_action = "move_up_p2"
|
|
||||||
dash_action = "dash_p2"
|
|
||||||
bomb_action = "bomb_p2"
|
|
||||||
coloring_sprite_path = NodePath("../WorldColoringViewport/Player2Sprite")
|
|
||||||
coloring_bomb_sprite_path = NodePath("../WorldColoringViewport/Player2BombSprite")
|
|
||||||
|
|
||||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||||
environment = SubResource("Environment_f3jci")
|
environment = SubResource("Environment_f3jci")
|
||||||
@@ -96,43 +79,9 @@ modulate = Color(0.878431, 0, 0.980392, 1)
|
|||||||
position = Vector2(530, 500)
|
position = Vector2(530, 500)
|
||||||
texture = ExtResource("5_17c1g")
|
texture = ExtResource("5_17c1g")
|
||||||
|
|
||||||
|
[node name="Players" type="Node3D" parent="."]
|
||||||
|
|
||||||
[node name="Level" type="Node3D" parent="."]
|
[node name="Level" type="Node3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.76534, 0, 5.93242)
|
|
||||||
|
|
||||||
[node name="Platforms" parent="Level" instance=ExtResource("6_83plb")]
|
[node name="Platforms" parent="Level" instance=ExtResource("6_n6e0v")]
|
||||||
|
transform = Transform3D(1, 3.19189e-15, 0, -2.16493e-15, 1, -9.99201e-16, 0, -1.33227e-15, 1, -6.76534, 0, 5.93242)
|
||||||
[node name="Platforms2" parent="Level" instance=ExtResource("6_83plb")]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.68666, 0, 5.21494)
|
|
||||||
|
|
||||||
[node name="Platforms3" parent="Level" instance=ExtResource("6_83plb")]
|
|
||||||
transform = Transform3D(0.768741, 0, -0.63956, 0, 1, 0, 0.63956, 0, 0.768741, 8.83345, 0, 2.90911)
|
|
||||||
|
|
||||||
[node name="Platforms4" parent="Level" instance=ExtResource("6_83plb")]
|
|
||||||
transform = Transform3D(-0.99988, 0, -0.0155154, 0, 1, 0, 0.0155154, 0, -0.99988, 13.9505, -4.76837e-07, -0.629952)
|
|
||||||
|
|
||||||
[node name="Platforms5" parent="Level" instance=ExtResource("6_83plb")]
|
|
||||||
transform = Transform3D(-0.99988, 0, -0.0155154, 0, 1, 0, 0.0155154, 0, -0.99988, 6.40327, 0, -5.73714)
|
|
||||||
|
|
||||||
[node name="Platforms6" parent="Level" instance=ExtResource("6_83plb")]
|
|
||||||
transform = Transform3D(-0.91991, 0, -0.392128, 0, 1, 0, 0.392128, 0, -0.91991, 17.1955, -4.76837e-07, -5.8158)
|
|
||||||
|
|
||||||
[node name="Platforms7" parent="Level" instance=ExtResource("6_83plb")]
|
|
||||||
transform = Transform3D(-0.91991, 0, -0.392128, 0, 1, 0, 0.392128, 0, -0.91991, 8.27811, 0, -7.69307)
|
|
||||||
|
|
||||||
[node name="Platforms8" parent="Level" instance=ExtResource("7_cld3m")]
|
|
||||||
transform = Transform3D(0.769634, 0, 0.638486, 0, 1, 0, -0.638486, 0, 0.769634, -1.18219, 0, -6.89363)
|
|
||||||
|
|
||||||
[node name="Platforms9" parent="Level" instance=ExtResource("7_cld3m")]
|
|
||||||
transform = Transform3D(0.330663, 0, -0.943749, 0, 1, 0, 0.943749, 0, 0.330663, 3.64812, -9.53674e-07, -15.7327)
|
|
||||||
|
|
||||||
[node name="Platforms10" parent="Level" instance=ExtResource("6_83plb")]
|
|
||||||
transform = Transform3D(-0.851736, 0, 0.523971, 0, 1, 0, -0.523971, 0, -0.851736, 15.3333, 0, -12.1468)
|
|
||||||
|
|
||||||
[node name="SpawnPointPlayer1" parent="Level" instance=ExtResource("8_ykvyf")]
|
|
||||||
|
|
||||||
[node name="SpawnPointPlayer2" parent="Level" instance=ExtResource("8_ykvyf")]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.48618, 0, -11.2001)
|
|
||||||
player_index = 1
|
|
||||||
|
|
||||||
[node name="SpawnPointPlayer3" parent="Level" instance=ExtResource("8_ykvyf")]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.55561, 0, 3.26255)
|
|
||||||
|
|||||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 121 KiB |
@@ -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
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[gd_resource type="ButtonGroup" format=3 uid="uid://ctqarf04xdj1"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
Reference in New Issue
Block a user