This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Camera2D | |
# Courtesy of KidsCanCode: http://kidscancode.org/godot_recipes/3.x/2d/screen_shake/ (this may change in the near future, so it may require a search) | |
# If you intend to use this, don't forget to turn on camera rotation! And keep in mind that smaller numbers are often the most useful - huge numbers make this thing *really* shake | |
# 3.5.x | |
export var decay = 0.8 # How quickly the shaking stops [0, 1]. | |
export var max_offset = Vector2(100, 75) # Maximum hor/ver shake in pixels. | |
export var max_roll = 0.1 # Maximum rotation in radians (use sparingly). | |
export (NodePath) var target # Assign the node this camera will follow. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
# Remaps the Donut Dodo Controller buttons to the values of Retropie's Joypad | |
# definition. cf. https://retropie.org.uk/forum/topic/34334/ | |
# Usage: | |
# | |
# 1. Run Donut Dodo and in the "Remap Controller" Menu select Factory Reset | |
# once. This will create a | |
# /opt/retropie/configs/ports/donutdodo/controller_mapping.dat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Control | |
# ensure that you attach this script to the parent node of your ui elements | |
# ensure that you link the signal "resize" of this control node to this script | |
# | |
@export_enum("Horizontal","Vertical") var scaleMode = "Vertical" | |
# cache for all labels and ther initial font size |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
set -e | |
function build_raylib_macos { | |
curr_dir="$(basename $(pwd))" | |
if [[ "$curr_dir" != "src" ]]; | |
then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {input, parameters} | |
tell application "System Events" | |
set appList to name of every application process where background only is false | |
end tell | |
repeat with appName in appList | |
try | |
do shell script "killall '" & appName & "'" | |
end try | |
end repeat |
OlderNewer