Skip to content

Instantly share code, notes, and snippets.

View jakebesworth's full-sized avatar
🍊
Currently interested in Vue.js, and Godot Game Engine!

Jake Besworth jakebesworth

🍊
Currently interested in Vue.js, and Godot Game Engine!
View GitHub Profile
@jakebesworth
jakebesworth / Makefile
Last active August 2, 2017 04:06
Simple Dynamic C Makefile
# Simple Makefile
# Author: Jake Besworth (you can remove this line)
# Binary File
OBJ := myprogram.exe
# Source Files
SRC_DIR := src/
SOURCE_FILES := $(wildcard $(SRC_DIR)*.c)
@jakebesworth
jakebesworth / main.lua
Last active November 1, 2023 19:50 — forked from Leandros/main.lua
Love2D 11.X Fix Your Timestep! "Free the physics" 4th approach
--[[
Original Author: https://github.com/Leandros
Updated Author: https://github.com/jakebesworth
MIT License
Copyright (c) 2018 Jake Besworth
Original Gist: https://gist.github.com/Leandros/98624b9b9d9d26df18c4
Love.run 11.X: https://love2d.org/wiki/love.run
Original Article, 4th algorithm: https://gafferongames.com/post/fix_your_timestep/
Forum Discussion: https://love2d.org/forums/viewtopic.php?f=3&t=85166&start=10
@jakebesworth
jakebesworth / aang.txt
Last active October 14, 2021 14:36
Nickelodeon All-Star Brawl - Aang guide / combos / tech / documentation
----------
Aang Guide
----------
> Note: Lists are ordered in terms of usefulness, so 1 is god tier, 2 is good, 4-5 are terrible
> Note 2: Percentages and concepts are guidelines, more labbing needs to be done, especially with DI
Notable RPS:
- Up > down
@jakebesworth
jakebesworth / godot-clickable-overlap.md
Last active July 25, 2024 01:24
Overlap clickable Area2D's in Godot. Only click the top most node. Also allows clicking outside of clickable nodes (such as to deselect)

Godot Clickable Overlap Objects and Deselect

Summary of Problem

If you want to have objects in your game be clickable, one of the most obvious methods is using a Area2D > Texture + CollisionShape2D. When your mouse interacts with the CollisionShape2D it has mouse motion, mouse exited, and input events.

Note: Control nodes have restrictions, eat up all mouse events, and don't work well with deselecting by clicking outside of any objects

  1. The biggest issue is when you click on overlapping objects it will signal both events asynchronously, so there is not an easy way to differentiate the top object being clicked.