Skip to content

Instantly share code, notes, and snippets.

View poisonHornGames's full-sized avatar

poisonHornGames

View GitHub Profile
@poisonHornGames
poisonHornGames / lookat.hx
Created February 26, 2024 21:00
Flixel LookAt Function
import flixel.FlxSprite;
import flixel.math.FlxPoint;
/**
* Simple LookAt function
*
* Takes a source sprite, which is the sprite that will rotate towards the target point
*/
class Utils
{