Skip to content

Commit

Permalink
Little Rage 0.2a
Browse files Browse the repository at this point in the history
  • Loading branch information
Killarexe committed Mar 8, 2023
1 parent b68653e commit 908af17
Show file tree
Hide file tree
Showing 18 changed files with 129 additions and 21 deletions.
2 changes: 1 addition & 1 deletion default.tres
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ corner_radius_bottom_right = 12
corner_radius_bottom_left = 12
shadow_color = Color( 0, 0, 0, 0.67451 )
shadow_size = 1
shadow_offset = Vector2( 15, 15 )
shadow_offset = Vector2( 5, 5 )

[resource]
resource_name = "Default"
Expand Down
Binary file modified icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icon_app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,16 @@ ui_left={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":-1.0,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":65,"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)
]
}
ui_right={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":1.0,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":68,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":15,"pressure":0.0,"pressed":false,"script":null)
]
}
ui_up={
Expand Down
1 change: 1 addition & 0 deletions scenes/prefabs/Player.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ script = ExtResource( 1 )
[node name="Shadow" type="Sprite" parent="."]
modulate = Color( 0, 0, 0, 0.25098 )
position = Vector2( 2, 2 )
z_index = -1
texture = ExtResource( 2 )

[node name="Sprite" type="Sprite" parent="."]
Expand Down
5 changes: 3 additions & 2 deletions scenes/prefabs/WinMenu.tscn
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=4 format=2]

[ext_resource path="res://fonts/default.tres" type="DynamicFont" id=1]
[ext_resource path="res://scripts/ui/WinMenu.gd" type="Script" id=2]
[ext_resource path="res://default.tres" type="Theme" id=3]

[node name="WinMenu" type="Control"]
pause_mode = 2
Expand Down Expand Up @@ -49,7 +50,7 @@ anchor_bottom = 1.0
margin_left = -275.0
margin_top = -100.0
margin_right = 275.0
custom_fonts/font = ExtResource( 1 )
theme = ExtResource( 3 )
text = "Continue"

[connection signal="pressed" from="ContinueButton" to="." method="_on_ContinueButton_pressed"]
31 changes: 19 additions & 12 deletions scenes/ui/MainMenu.tscn

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions scripts/Global.gd
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var musics = {
1: load("res://sounds/musics/nofall.wav"),
2: load("res://sounds/musics/level_one.mp3"),
3: load("res://sounds/musics/shop.mp3"),
4: load("res://sounds/musics/easter.mp3"),
}

var hats = {
Expand All @@ -36,6 +37,7 @@ var unlocked_hats: Array = [0]
var unlockedSkins: Array = [0]
var unlockedLevels: Array = [0]
var editor_playing: bool = false
var settings_clicked: int = 0

const saveFilePath = "user://player_save.save"

Expand Down
18 changes: 13 additions & 5 deletions scripts/ui/MainMenu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,22 @@ onready var splash = $CanvasLayer/Splash

func _ready():
Global.play_music(1)
var random = RandomNumberGenerator.new()
random.randomize()
splash.text = splashes[random.randi_range(0, splashes.size()-1)]
if(random.randi_range(0, 100) >= 95):
$CanvasLayer/Title.text = "Little Game"
$CanvasLayer/Splash/AnimationPlayer.play("splash_animation")

func _on_SinglePlayerButton_pressed():
Global.settings_clicked = 0
SceneTransition.change_scene("res://scenes/ui/LevelSelector.tscn")

func _on_MultiPlayerButton_pressed():
Global.settings_clicked = 0
SceneTransition.change_scene("res://scenes/ui/MultiplayerTypeSelection.tscn")

func _on_OptionsButton_pressed():
Global.settings_clicked = 0
SceneTransition.change_scene("res://scenes/ui/LevelEditor.tscn")

func _on_QuitButton_pressed():
Global.settings_clicked = 0
if(Input.action_press("ui_left")):
SceneTransition.change_scene("res://scenes/instances/Server.tscn")
pass
Expand Down Expand Up @@ -65,6 +64,15 @@ func updateSprite():
$Buttons/BuyButton.disabled = false

func _on_OptionButton_pressed():
Global.settings_clicked += 1
if Global.settings_clicked >= 5:
$CanvasLayer/Easter.visible = true
Global.play_music(4)
yield(get_tree().create_timer(13.5), "timeout")
Global.play_music(1)
$CanvasLayer/Easter.visible = false
Global.settings_clicked = 0
return
SceneTransition.change_scene("res://scenes/ui/Settings.tscn")

func _on_QuitShopButton_pressed():
Expand Down
Binary file added sounds/musics/easter.mp3
Binary file not shown.
15 changes: 15 additions & 0 deletions sounds/musics/easter.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
path="res://.import/easter.mp3-53985744893c82f3fcd4440e04250267.mp3str"

[deps]

source_file="res://sounds/musics/easter.mp3"
dest_files=[ "res://.import/easter.mp3-53985744893c82f3fcd4440e04250267.mp3str" ]

[params]

loop=true
loop_offset=0
2 changes: 1 addition & 1 deletion sounds/musics/nofall.wav.import
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_mode=2
edit/loop_begin=0
edit/loop_end=-1
compress/mode=0
Binary file added textures/uis/easter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions textures/uis/easter.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/easter.png-a8150845db1dc64674559d1d9f8ccbf0.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://textures/uis/easter.png"
dest_files=[ "res://.import/easter.png-a8150845db1dc64674559d1d9f8ccbf0.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0
Binary file modified textures/uis/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added textures/uis/little_rage_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions textures/uis/little_rage_logo.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/little_rage_logo.png-05ee8121bf0310802bcae2c63875d711.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://textures/uis/little_rage_logo.png"
dest_files=[ "res://.import/little_rage_logo.png-05ee8121bf0310802bcae2c63875d711.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Binary file modified textures/uis/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 908af17

Please sign in to comment.