Skip to content

Instantly share code, notes, and snippets.

View xbelanch's full-sized avatar
🏠
Working from home

Xavier Belanche Alonso xbelanch

🏠
Working from home
  • Xavier Belanche
  • World Wide Trash
  • X @xbelanch
View GitHub Profile

Preface

I'm comparing Godot mostly to Unity due to my ~10 years of Unity experience. I'm also primarily working in 3D and C# and that is what I want to use Godot for.

Terms:

  • by "export" I mean a variable exposed in the inspector, that's how Godot calls them
  • I use the word "prefab" to mean a scene that is intended to be instantiated multiple times, unlike a "level"
  • Godot's Resources == Unity's ScriptableObjects
  • Godot's collision shapes == Unity's colliders

Pros

@dobrivoje
dobrivoje / servers-restart.sh
Created December 22, 2018 14:31
Linux Servers Restart Script
#!/bin/bash
SERVER_DESCRIPTION="Nis Test"
LOG_RESTART="/root/scripts/logs/restart.log"
clear
printf "\n\n\n"
printf "Please, choose server to restart.\n
Available servers : \n
[1] Tomcat\n[2] TomcatDM\n[3] PostgresSQL
@baztian
baztian / emacs-run.bat
Last active May 13, 2020 00:44 — forked from Shade30/emacs-run.bat
Cygwin emacs-w32 wrapper. Allows to run emacs with arguments directly from windows.
@echo off
Setlocal EnableDelayedExpansion
set CYGDIR=C:\cygwin64
set CYGBINDIR=%CYGDIR%\bin
set PATH=%PATH%;%CYGBINDIR%;%CYGDIR%\usr\local\bin;%CYGDIR%\usr\bin
cd /d %CYGDIR%\home\%USERNAME%
if [%1]==[] goto BLANK
@tomasinouk
tomasinouk / ffmpeg_examples.md
Created November 30, 2015 04:21
ffmpeg examples for streaming full screen

ffmpeg -f avfoundation -i "1" -vcodec libx264 -r 10 -tune zerolatency -b:v 500k -bufsize 300k -f rtp rtp://localhost:1234

ffmpeg -f avfoundation -i "1" -vcodec libx264 -r 10 -tune zerolatency -b:v 500k -bufsize 300k -f rtp udp://127.0.0.1:1234

ffmpeg -f avfoundation -i "1" -vcodec libx264 -r 10 -tune zerolatency -b:v 500k -bufsize 300k -f mpegts udp://127.0.0.1:1234

ffmpeg -f avfoundation -i "1" -vcodec libx264 -r 10 -pix_fmt uyvy422 -tune zerolatency -b:v 500k -bufsize 300k -f mpegts udp://192.168.88.38:1234

@smks
smks / Confetti.hx
Last active March 1, 2023 02:32
Haxeflixel Confetti Example
package com.particles;
import flixel.effects.particles.FlxEmitter;
import flixel.effects.particles.FlxParticle;
import flixel.FlxG;
import flixel.group.FlxTypedGroup;
import flixel.system.FlxCollisionType;
import flixel.util.FlxRandom;
/**
@ViperMaul
ViperMaul / pboPro.py
Created August 6, 2015 05:20
test pboProject
import subprocess, os
pboproject = "C:\\Program Files (x86)\\Mikero\\DePboTools\\bin\\pboProject.exe"
work_drive = "P:\\"
prefix = "z\\ace\\addons"
module = "advanced_ballistics"
module_root = r"P:\z\ace\addons"
release_dir = "P:\\z\\ace\\release"
project = "@ace"
print(pboproject)
@alxfv
alxfv / gist:0d8e7af175b7627fd526
Created June 15, 2015 20:22
avconv streaming to twitch
#! /bin/bash
# streaming on Ubuntu via ffmpeg.
# see http://ubuntuguide.org/wiki/Screencasts for full documentation
# see http://www.thegameengine.org/miscellaneous/streaming-twitch-tv-ubuntu/
# for instructions on how to use this gist
if [ ! -f ~/.twitch_key ]; then
echo "Error: Could not find file: ~/.twitch_key"
echo "Please create this file and copy past your stream key into it. Open this script for more details."
@mbasaglia
mbasaglia / rcon.sh
Created June 5, 2014 21:04
A shell script which executes rcon commands
#!/bin/bash
SERVER='localhost'
PORT='26000'
PASSWORD='foo'
SECURE=0
SECURE_PORT="1234"
RCON_HEADER=$(echo -e "\xff\xff\xff\xff")
ESCAPE_CHAR=$(echo -en "\x1b")
@jah2488
jah2488 / raycast.hx
Created April 29, 2014 18:56
A simple raycasting proof of concept I did a few months back in haxe/openfl. Think of the original doom. Its kinda like that.
package;
import flash.display.Graphics;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.KeyboardEvent;
import flash.Lib;
import flash.ui.Keyboard;
import flash.Vector;
@olasd
olasd / stream_to_youtube.sh
Created March 28, 2014 19:58
Stream video to youtube via ffmpeg
#! /bin/bash
#
# Diffusion youtube avec ffmpeg
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée.
VBR="2500k" # Bitrate de la vidéo en sortie
FPS="30" # FPS de la vidéo en sortie
QUAL="medium" # Preset de qualité FFMPEG
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube