Skip to content

Instantly share code, notes, and snippets.

View sbritorodr's full-sized avatar
⌨️
This is my Hobby, don't expect the cleanest code

sbritorodr

⌨️
This is my Hobby, don't expect the cleanest code
View GitHub Profile
@sbritorodr
sbritorodr / notifyme.sh
Created July 8, 2023 18:36
MacOS command script for creating notifications
# Simple script for making a system notification whenever a command process has ended.
# Working on MacOS Ventura 13.1 but should work with something with Apple Script support
# Example use: cowsay "Hello, World" && notifyme -m "Cowsay said something" -t "Cowsay" -s "Submarine"
# It is recommended to paste this inside a ~/.zshrc_personal file and link it inside ~/.zshrc with "source ~/.zshrc_personal"
# Made by sbritorodr
notifyme () {
DEFAULT_BODY="A terminal process has ended"
DEFAULT_TITLE="Process Completed!"
DEFAULT_SOUND="Hero"
@sbritorodr
sbritorodr / how_to_add_water.md
Last active November 24, 2022 18:33
How to add water to your level

How to add Water to any level

@sbritorodr

In SM63R, water is essentialy an animated polygon with a surface "shader" which calculates interactive waves. The last part can lead to some issues and problems, if the polygon is created incorrectly.

IMPORTANT: Water polygon mandatory properties

  1. At least 4 or more points
  2. The surface must be completely horizontal. If not, the water is completely static and touching the surface crashes the game.
  3. The angle of both vertices should be 90º. If not, it flickers