Skip to content

Instantly share code, notes, and snippets.

@fguillen
fguillen / joicyness_checkbox.md
Last active May 3, 2024 20:52
The check box of the juiciness (A list of juicy elements to add to your videogame to make it feels good)

Visual embellishments (VEs) are design elements that support information already conveyed by other means. In games, this concept is known as juiciness, and refers to the provision of redundant feedback in situations where a single player action triggers multiple non-functional reactions.

Elements

Actors

  • Bounce animation (deformation)
  • Bounce effects (particles)
  • Scale based on velocity (lengthen in the direction)
@fguillen
fguillen / Utils.cs
Created December 16, 2021 21:09
Utils library for Unity projects
using UnityEngine;
public class Utils
{
public static float AddNoise(float value)
{
return AddNoise(value, value / 2.0f);
}
public static float AddNoise(float value, float delta)
@fguillen
fguillen / preload_materials.gd
Last active April 3, 2024 00:59
Godot preload and cache Shader Materials to avoid freeze in play mode
# Create a Scene with a Node
# Add this script to it
# Add the Scene to the Autoloads
# Fulfill the material Array with all the Materials that are causing freeze
# It also works with Materials from ParticlesSystems
# preload_materials.gd
extends Node
# Load the array through Inspector
@fguillen
fguillen / GodotVSUnity.md
Last active February 1, 2024 10:49
My Godot VS Unity compare list

Godot is worst (IMO)

  • No way to disable a node (godotengine/godot-proposals#370) neither in code :? (https://godotengine.org/qa/49696/how-to-disable-enable-a-node?show=49754#a49754)
  • Poorer script editor: No multi-cursor (possibility of integrate with VSCode)
  • No realtime Node/Component values on play mode (only explicit external variables)
  • Separate play window and When pause play mode the game screen is hidden
  • Less reactive editor interface. Drag and drop textures
  • Many tricks in KinematicBody like "is in floor" passing a special value to UP in move_and_slide
  • Using -1 to mean Default :?
  • External variables changes don't get activated until you blur the field

Privacy Policy for Arturito Productions

At Arturito Productions, accessible from https://arturitoproductions.itch.io/, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that is collected and recorded by Arturito Productions and how we use it.

If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us.

This Privacy Policy applies only to our online activities and is valid for visitors to our website with regards to the information that they shared and/or collect in Arturito Productions. This policy is not applicable to any information collected offline or via channels other than this website.

Consent

@fguillen
fguillen / code_style.gd
Last active June 6, 2023 10:30
Godot GD script template with the order of the code sections
# meta-name: Code style template
# meta-description: Empty script with the order of the code sections
# -- 01 @tool
# -- 02 class_name
# -- 03 extends
extends _BASE_
# -- 04 # docstring
#
@fguillen
fguillen / hash_with_indifferent_access_extension.rb
Created December 30, 2011 17:05
to_hash recursive for HashWithIndifferentAccess
class HashWithIndifferentAccess < Hash
def to_hash_recursive
result = self.to_hash
result.each do |key, value|
if(value.is_a? HashWithIndifferentAccess)
result[key] = value.to_hash_recursive
end
end
@fguillen
fguillen / letsencrypt_cert_creation.md
Last active August 3, 2022 22:10
Create SSL certificate using letsencrypt.org

How to create a ssl certificate using letsencrypt in your mac for your own domain

Install certbot

brew install certbot

Generate the certificate

@fguillen
fguillen / RandomPointInCollider.cs
Last active August 1, 2022 07:11
Unity, generate a random point into a Polygon
using System;
using UnityEngine;
public class RandomPointInCollider
{
Collider2D collider;
Vector3 minBound;
Vector3 maxBound;
int maxAttempts;
@fguillen
fguillen / git_tips.md
Created December 19, 2010 20:53
Git Tips

(Several of these git examples have been extracted from the book 'Pragmatic guide to GIT' of Travis Swicegood )

Git tips

Global git user

git config --global user.name "Fernando Guillen"
git config --global user.email "fguillen.mail+spam@gmail.com"

Repository git user

cd /develop/myrepo