Current API:
function getIconUrl(name: string, family: string, variant: string) {}
// base "resolver"
{| def calc_car dt = 1 | |
| target_speed = if state.engine == :high | |
| state.high_speed | |
| else | |
| state.low_speed | |
| end | |
| state.speed *= (0.98 * dt) if steering_at_limit? | |
| if auto_break? |
| class Game | |
| attr_gtk # attr_gtk class macro | |
| SPRITES = { | |
| conveyor_belt: { | |
| source_x: 0, | |
| source_w: 16, | |
| source_h: 16, | |
| source_y: 0, | |
| animations: { |
| function boolify (str) { | |
| const truthy = [ | |
| "y", | |
| "yes", | |
| "1", | |
| "true", | |
| "on" | |
| ] | |
| if (str && truthy.includes(str.toLowerCase())) { |
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <!-- | |
| Dark mode default style for Notepad++. | |
| This file is based on Zenburn them (zenburn.xml) | |
| License: GPL2 | |
| --> | |
| <NotepadPlus modelDate="20251214" modelFileLastModifiedDate="20251227"> | |
| <LexerStyles> | |
| <LexerType name="actionscript" desc="ActionScript" ext=""> | |
| <WordsStyle name="DEFAULT" styleID="11" fgColor="DCDCCC" bgColor="3F3F3F" fontName="" fontStyle="0" fontSize="" /> |
| def tick args | |
| args.state.background ||= { | |
| x: 0, | |
| y: Grid.h / 2, | |
| h: 224 * 2, | |
| w: 1504 * 2, | |
| path: "sprites/background.png" | |
| } | |
| background_sprite = args.state.background |
| const nb = [ | |
| 'ArrowDown', | |
| 'ArrowUp' | |
| ] | |
| class Xs { | |
| static windowKeyUpHandler(e) { | |
| nb.includes(e.key) && e.preventDefault() | |
| } | |
| } |
| // config/assets.js | |
| import * as path from "node:path" | |
| import * as url from 'node:url'; | |
| import * as assets from "hanami-assets"; | |
| import chokidar from 'chokidar'; | |
| // ESM polyfill for __dirname | |
| const __dirname = url.fileURLToPath(new URL('.', import.meta.url)); |