Skip to content

Commit

Permalink
feat: first iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiPeterG committed Oct 24, 2023
1 parent 1dff2b4 commit 4c1acbe
Show file tree
Hide file tree
Showing 31 changed files with 599 additions and 77 deletions.
14 changes: 13 additions & 1 deletion BG.tscn
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[gd_scene load_steps=2 format=3 uid="uid://cb73e8igqgs2i"]
[gd_scene load_steps=3 format=3 uid="uid://defeo7pmswuu0"]

[ext_resource type="Texture2D" uid="uid://cxco7j8616lid" path="res://1 (1).webp" id="1_xisdx"]

[sub_resource type="CurveTexture" id="CurveTexture_d3tbc"]
texture_mode = 1

[node name="ParallaxBackground" type="ParallaxBackground"]

[node name="ParallaxLayer" type="ParallaxLayer" parent="."]
Expand All @@ -26,3 +29,12 @@ texture = ExtResource("1_xisdx")
position = Vector2(1924, 325)
scale = Vector2(1.14583, 2.56917)
texture = ExtResource("1_xisdx")

[node name="TextureRect" type="TextureRect" parent="ParallaxLayer"]
z_index = -1
offset_left = 1.0
offset_top = -5180.0
offset_right = 2201.0
offset_bottom = 6533.0
texture = SubResource("CurveTexture_d3tbc")
metadata/_edit_use_anchors_ = true
Binary file added Coins Shuffling.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions Coins Shuffling.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://dh5li7d8eqq0e"
path="res://.godot/imported/Coins Shuffling.mp3-7d4a7d3ad0bd93c3e7ec475dc1057393.mp3str"

[deps]

source_file="res://Coins Shuffling.mp3"
dest_files=["res://.godot/imported/Coins Shuffling.mp3-7d4a7d3ad0bd93c3e7ec475dc1057393.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added Devil's Organ - Jimena Contreras.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions Devil's Organ - Jimena Contreras.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://vkq36uncgqho"
path="res://.godot/imported/Devil's Organ - Jimena Contreras.mp3-af295e865bd733a550ac615b6a50c7fa.mp3str"

[deps]

source_file="res://Devil's Organ - Jimena Contreras.mp3"
dest_files=["res://.godot/imported/Devil's Organ - Jimena Contreras.mp3-af295e865bd733a550ac615b6a50c7fa.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added Footsteps solid wood.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions Footsteps solid wood.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://nyrajyhein65"
path="res://.godot/imported/Footsteps solid wood.mp3-fcff034c9c78c8019303ac732f8e0c60.mp3str"

[deps]

source_file="res://Footsteps solid wood.mp3"
dest_files=["res://.godot/imported/Footsteps solid wood.mp3-fcff034c9c78c8019303ac732f8e0c60.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added Frightmare - Jimena Contreras.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions Frightmare - Jimena Contreras.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://2b24rqwx73na"
path="res://.godot/imported/Frightmare - Jimena Contreras.mp3-1d1b9a830508ebd5c5887a092380f53f.mp3str"

[deps]

source_file="res://Frightmare - Jimena Contreras.mp3"
dest_files=["res://.godot/imported/Frightmare - Jimena Contreras.mp3-1d1b9a830508ebd5c5887a092380f53f.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added Gully Dreams - Hanu Dixit.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions Gully Dreams - Hanu Dixit.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://broilsjhpkw74"
path="res://.godot/imported/Gully Dreams - Hanu Dixit.mp3-7ac27205c6749329a95d412b18a25e2c.mp3str"

[deps]

source_file="res://Gully Dreams - Hanu Dixit.mp3"
dest_files=["res://.godot/imported/Gully Dreams - Hanu Dixit.mp3-7ac27205c6749329a95d412b18a25e2c.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added Horror Bass Choir - John Patitucci.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions Horror Bass Choir - John Patitucci.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://bl7tibd1ytrxl"
path="res://.godot/imported/Horror Bass Choir - John Patitucci.mp3-9dd4d699d8f9de6d523b945265d28b7f.mp3str"

[deps]

source_file="res://Horror Bass Choir - John Patitucci.mp3"
dest_files=["res://.godot/imported/Horror Bass Choir - John Patitucci.mp3-9dd4d699d8f9de6d523b945265d28b7f.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
Binary file added Light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions Light.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://coiaxftxa6ket"
path="res://.godot/imported/Light.png-434aab4fe64b7d35096e8d62977f183c.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://Light.png"
dest_files=["res://.godot/imported/Light.png-434aab4fe64b7d35096e8d62977f183c.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file added Sneaker Sidesteps Concrete.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions Sneaker Sidesteps Concrete.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
uid="uid://b36ny176qbeqe"
path="res://.godot/imported/Sneaker Sidesteps Concrete.mp3-6b57852a875455a864756f82aaba3573.mp3str"

[deps]

source_file="res://Sneaker Sidesteps Concrete.mp3"
dest_files=["res://.godot/imported/Sneaker Sidesteps Concrete.mp3-6b57852a875455a864756f82aaba3573.mp3str"]

[params]

loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
8 changes: 7 additions & 1 deletion addons/pronto/behaviors/AlwaysBehavior.gd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ signal physiscs_always(delta)
## If this is set to [code]true[/code] the AlwaysBehavior will stop emitting any
## signals. During runtime, do not set this directly. Instead use [method AlwaysBehavior.pause]
## and [method AlwaysBehavior.resume]
@export var paused = false
@export var paused = true

func _process(delta):
super._process(delta)
Expand All @@ -40,3 +40,9 @@ func pause():
## Use [method AlwaysBehavior.pause] to stop it again.
func resume():
paused = false

func switch():
if paused == true:
paused = false
if paused == false:
paused = true
21 changes: 21 additions & 0 deletions addons/pronto/behaviors/MoveBehavior.gd
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ signal touched_floor(velocity: float)
## Friction applied to velocity while on the ground
@export var friction = 20.0

@export var right_side = true

@export var side_switcher = 0.0
var rng = RandomNumberGenerator.new()
@export var switch_num = 100.0

@export_category("Air")
## Gravity applied to parent. Set to zero to disable falling.
@export var gravity = 0.0
Expand Down Expand Up @@ -106,6 +112,21 @@ func move_left():

func move_right():
move_direction(Vector2.RIGHT)

func move_side():
if side_switcher >= switch_num:
side_switcher = 0.0
switch_side()
if right_side == true:
side_switcher += 1.0
move_direction(Vector2.RIGHT)
else:
side_switcher += 1.0
move_direction(Vector2.LEFT)

func switch_side():
switch_num = rng.randf_range(10.0, 300.0)
right_side = !right_side

func move_down():
move_direction(Vector2.DOWN)
Expand Down
7 changes: 6 additions & 1 deletion addons/pronto/behaviors/PlaceholderBehavior.gd
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,19 @@ func _init_sprite():
sprite = Sprite2D.new()
sprite.texture = sprite_texture
var shader_mat = ShaderMaterial.new()
var mat_can = CanvasItemMaterial.new()
mat_can.light_mode = CanvasItemMaterial.LIGHT_MODE_LIGHT_ONLY
shader_mat.shader = load(OUTLINE_SHADER)
# to hide the shader we set its width to 0 if outline_visible is false
shader_mat.set_shader_parameter("width", outline_width if outline_visible else 0)
shader_mat.set_shader_parameter("color", outline_color)
shader_mat.set_shader_parameter("tint_color", color)
shader_mat.set_shader_parameter("pattern", outline_pattern)

sprite.material = shader_mat
sprite.scale = _shape_boundary() / sprite.texture.get_size()
sprite.material = mat_can
sprite.scale = _shape_boundary() / sprite.texture.get_size(
)

## Shows an outline around the Placeholder.
func show_outline():
Expand Down
11 changes: 11 additions & 0 deletions prototypes/game-test/AudioStreamPlayer2D.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
extends AudioStreamPlayer2D


# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
11 changes: 11 additions & 0 deletions prototypes/game-test/Button.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
extends Button


# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
11 changes: 11 additions & 0 deletions prototypes/game-test/Coin.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
extends Area2D


# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
Empty file.
Loading

0 comments on commit 4c1acbe

Please sign in to comment.