Skip to content

Instantly share code, notes, and snippets.

View bwkam's full-sized avatar
🐺
i love wolf

Beshoy Kamel bwkam

🐺
i love wolf
View GitHub Profile
@bwkam
bwkam / MergeSort.hs
Last active October 24, 2024 20:35
haskell merge sort
mergesort :: (Ord a) => [a] -> [a]
mergesort xs =
let sort :: (Ord a) => [[a]] -> [[a]]
sort ys = case list of
[a] -> [a]
a -> sort a
where
list = concatAdjacentWith merge ys
in concat $ sort (splitEvery 1 xs)
@bwkam
bwkam / expl.md
Created April 10, 2024 23:05
editor

Scene Browser

"Add" button

  • Unlike Godot and others, Flixel has no concept of "nodes", just FlxSprites and stuff, so this will open up a window with all available flixel things that one can insert to the scene. If I pick a FlxSprite, what the engine could do is instantiate a FlxSprite in the current scene class (is tracked), and finally appear in the scene viewer.
  • And what happens behind the scenes when an object is added? Well, macros could come powerful here, but I don't think it's neccessary. If you add