Skip to content

Commit

Permalink
Improve window manager
Browse files Browse the repository at this point in the history
Patch player animations

Patch workflow
  • Loading branch information
Killarexe committed Jun 9, 2024
1 parent 546111e commit 2bec644
Show file tree
Hide file tree
Showing 9 changed files with 597 additions and 34 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Remove Android export preset
run: grep -v -U -e "(?s)\[preset\.6\].*" export_presets.cfg > export_presets.cfg
- uses: actions/checkout@v3
- name: Godot Export
uses: firebelley/godot-export@v5.2.1
Expand Down
2 changes: 1 addition & 1 deletion README.md
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ You can find versions on the [release page](https://github.com/Killarexe/Little-

# Edit / Export

If you want to edit/export the game. **Download** the repo and [**Install the lastest Godot Version *(4.2.1)***](https://godotengine.org/)
If you want to edit/export the game. **Download** the repo and [**Install the lastest Godot Version *(4.2.2)***](https://godotengine.org/)
Binary file modified assets/animations/PlayerAnimations.res
Binary file not shown.
60 changes: 30 additions & 30 deletions assets/style/default_theme.tres

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scenes/bundles/player/Player.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,4 @@ libraries = {
"PlayerAnimations": ExtResource("22_pcsr0")
}
autoplay = "camera_enter"
blend_times = [&"PlayerAnimations/land", &"PlayerAnimations/RESET", 1.0, &"PlayerAnimations/jump", &"PlayerAnimations/land", 1.0, &"PlayerAnimations/jump", &"PlayerAnimations/jump", 1.0, &"PlayerAnimations/jump", &"PlayerAnimations/RESET", 1.0]
blend_times = [&"PlayerAnimations/jump", &"PlayerAnimations/RESET", 1.0, &"PlayerAnimations/jump", &"PlayerAnimations/jump", 1.0, &"PlayerAnimations/jump", &"PlayerAnimations/land", 1.0, &"PlayerAnimations/land", &"PlayerAnimations/RESET", 1.0]
1 change: 1 addition & 0 deletions scenes/uis/LevelEditor.tscn
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ anchors_preset = 9
anchor_bottom = 1.0
offset_right = 160.0
grow_vertical = 2
theme = ExtResource("13_nxxam")
icon_mode = 0
icon_scale = 4.0
fixed_icon_size = Vector2i(24, 24)
Expand Down
2 changes: 1 addition & 1 deletion scenes/uis/MainMenu.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ label_settings = SubResource("LabelSettings_vn81g")
horizontal_alignment = 1
vertical_alignment = 1
script = ExtResource("9_uac2h")
texts = Array[String](["On Godot 4.2 Now!", "NO Local Multiplayer!", "By Killar.exe", "Remmake!", "On Mobile!", "Back!", "A Cool Game!", "New Levels!", "Better than the unity version!", "Thanks to Niark", "Multiplayer in progress...", "WIP", "#TeamJAVA", "OOF", "RIP", "Press F for respects", "btw watch Doctor Who", "btw play Minecraft", "It's time to touch some grass kid...", "Hot Street", "My Bad", "Negative-N", "Dimensional Expansion", "@everyone", "@here", "PSR-48", "Deez Nuts", "Hello Mario", "SFW Memes", "Open Source!!!", "Bug free...", "Little Game", "Avaliable on itch.io", "Made in France", "Avaliable for Windows, Linux, Mac and Android!", "#TeamReglisse", "Technoblade never dies!", "WOWIEEE", "Wait this game was created since 2021!", "LMMS > FLStudio", "Try Rust btw", "Neovim is the best text editor", "don't forget \":!q\" to quit!", "fn main(){println!(\"Hello, world!\")}", "Pff assembly isn't that difficult...", "0.5.1b!", "Wow thats really cool!", "I should make a devlog series on this game...", "Thanks to the testers!", "Thanks to Rainer!", "Thanks to 10e", "Steve help me! I'm stuck!", "Thanks to Me!", "Thank you for playing!", "We need a logo!", "Try MSLang!", "Gzkki, Mieks!", "Hello, world!", "Foo bar = new Foo();", "Since 2021!", "I've suffered ", "Seamus Youre the best :)", "Brainstorming...", "[HYPERLINK BLOCKED]", "Corry - thePlaceHolder 11/09/2023 15:07", "Niark ur the best!", "1STI2D1", "We can do screenshots now!", "Try Windowkill btw", "WOW Follin bros killin", "Plok OST is one of the best SNES OST", "the 2A03 is well made", "Sir, he was listening Boss - Plok.", "*Makes a string with 3 saw waves*", "SCP-079 is the next one...", "I use Arch btw!", " I cooked my music with Furnace", "Discord RPC implementation break the game...", "Try SCP:SL btw.", "Try Linux btw.", "Bro, Little Rage is 3 years old!", "Heyo check my .dotfiles setup!", "Are you reading this?", "Do you know: There is many easter eggs here...", "*Plok's distortion guitar playing*", "Wait, the majority of the instruments are Mario 64 instruments !?", "Wait this isn't my flag!", "Godot is really a great engine!", "Dev tips: export your music in .ogg", "Youtube buzz = watch time + CTR", "C64's SID is crasy!", "I'm a bad Web Dev...", "I'm tried. I switch to the Y axis...", "Wow amazing you got the reference!", "pacman -Syu", "sudo", "Finally don't do \":q!\", do \":qa\" instead!", "Get on the floor", "Wait, we can automate exports with github actions?", "100th splash text!", "Tardis Refined is a great mod!", "Yay more cosmetics!!!"])
texts = Array[String](["On Godot 4.2 Now!", "NO Local Multiplayer!", "By Killar.exe", "Remmake!", "On Mobile!", "Back!", "A Cool Game!", "New Levels!", "Better than the unity version!", "Thanks to Niark", "Multiplayer in progress...", "WIP", "#TeamJAVA", "OOF", "RIP", "Press F for respects", "btw watch Doctor Who", "btw play Minecraft", "It's time to touch some grass kid...", "Hot Street", "My Bad", "Negative-N", "Dimensional Expansion", "@everyone", "@here", "PSR-48", "Deez Nuts", "Hello Mario", "SFW Memes", "Open Source!!!", "Bug free...", "Little Game", "Avaliable on itch.io", "Made in France", "Avaliable for Windows, Linux, Mac and Android!", "#TeamReglisse", "Technoblade never dies!", "WOWIEEE", "Wait this game was created since 2021!", "LMMS > FLStudio", "Try Rust btw", "Neovim is the best text editor", "don't forget \":!q\" to quit!", "fn main(){println!(\"Hello, world!\")}", "Pff assembly isn't that difficult...", "0.6.0b!", "Wow thats really cool!", "I should make a devlog series on this game...", "Thanks to the testers!", "Thanks to Rainer!", "Thanks to 10e", "Steve help me! I'm stuck!", "Thanks to Me!", "Thank you for playing!", "We need a logo!", "Try MSLang!", "Gzkki, Mieks!", "Hello, world!", "Foo bar = new Foo();", "Since 2021!", "I've suffered ", "Seamus Youre the best :)", "Brainstorming...", "[HYPERLINK BLOCKED]", "Corry - thePlaceHolder 11/09/2023 15:07", "Niark ur the best!", "1STI2D1", "We can do screenshots now!", "Try Windowkill btw", "WOW Follin bros killin", "Plok OST is one of the best SNES OST", "the 2A03 is well made", "Sir, he was listening Boss - Plok.", "*Makes a string with 3 saw waves*", "SCP-079 is the next one...", "I use Arch btw!", " I cooked my music with Furnace", "Discord RPC implementation break the game...", "Try SCP:SL btw.", "Try Linux btw.", "Bro, Little Rage is 3 years old!", "Heyo check my .dotfiles setup!", "Are you reading this?", "Do you know: There is many easter eggs here...", "*Plok's distortion guitar playing*", "Wait, the majority of the instruments are Mario 64 instruments !?", "Wait this isn't my flag!", "Godot is really a great engine!", "Dev tips: export your music in .ogg", "Youtube buzz = watch time + CTR", "C64's SID is crasy!", "I'm a bad Web Dev...", "I'm tried. I switch to the Y axis...", "Wow amazing you got the reference!", "pacman -Syu", "sudo", "Finally don't do \":q!\", do \":qa\" instead!", "Get on the floor", "Wait, we can automate exports with github actions?", "100th splash text!", "Tardis Refined is a great mod!", "Yay more cosmetics!!!", "RIP Geoff Follin ;(", "Dev tip: "])

[node name="Button" type="Button" parent="CanvasLayer/SplashText"]
modulate = Color(1, 1, 1, 0)
Expand Down
8 changes: 7 additions & 1 deletion scripts/WindowManager.gd
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ func _ready():

func update_window(size: int):
if size < WINDOW_SIZES.size():
var window_size: Vector2 = WINDOW_SIZES[size]
var current_screen: int = DisplayServer.window_get_current_screen()
var screen_size: Vector2 = DisplayServer.screen_get_size(current_screen)
var screen_position: Vector2 = DisplayServer.screen_get_position(current_screen)
var window_position: Vector2 = screen_size / 2 + screen_position - window_size / 2
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)
DisplayServer.window_set_size(WINDOW_SIZES[size])
DisplayServer.window_set_size(window_size)
DisplayServer.window_set_position(window_position)
else:
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)

Expand Down
Loading

0 comments on commit 2bec644

Please sign in to comment.