Skip to content

Instantly share code, notes, and snippets.

View variousauthors's full-sized avatar
🐢
Doubling Down

Various Authors variousauthors

🐢
Doubling Down
View GitHub Profile
@variousauthors
variousauthors / readme.txt
Created April 29, 2022 06:22
Simple Block Pushing Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@variousauthors
variousauthors / readme.txt
Created April 29, 2022 06:22
Simple Block Pushing Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@variousauthors
variousauthors / readme.txt
Created April 19, 2022 02:42
My Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@variousauthors
variousauthors / readme.txt
Created March 7, 2022 17:38
Microcosmos (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@variousauthors
variousauthors / readme.txt
Created March 2, 2022 23:35
Simple Block Pushing Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@variousauthors
variousauthors / typeguard.md
Created November 13, 2021 20:17
Type Guard Troubles

I have this helper I use to make type guards.

const typeGuard = buildTypeGuard<{ name: string, friends: IFriend[] }>({
  name: isString,
  friends: [isFriend],
})

It takes a type and an argument. The argument is a "type guide" which is instructions on how to build the typeguard. The type determines the shape of the type guide. So if you pass in a type with { friends: IFriend[] } you must pass in a type guide that includes { friends: [isFriend] }.

@variousauthors
variousauthors / readme.txt
Created July 25, 2020 06:48
Prototype (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@variousauthors
variousauthors / readme.txt
Created July 19, 2020 22:48
Prototype (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@variousauthors
variousauthors / readme.txt
Created July 19, 2020 07:12
Prototype (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@variousauthors
variousauthors / readme.txt
Created July 19, 2020 07:11
Simple Block Pushing Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html