GLUG
Jump to navigation
Jump to search
GLUG is made by User: A(). It was inspired by C# and Atari Basic.
Commands
| Header text | Header text |
|---|---|
| SUB[]! | Subroutine |
| GOSUB! | Goto subroutine |
| ASK()! | Input |
| BUTTON()! | Key input |
| VAR | declare variable |
| IF (CONDITION) DO [] | if statement |
| CURSOR(X,Y) | Puts cursor at x, y (0, 0 is at the top left corner and 255, 255 is the bottom right) |
| DRAW(R, G, B)! | draw pixel at cursor |
| UPDATE [] | update loop |
| CLEAR! | Clear frame |
Programs
Pixel moving right
VAR X = 0! VAR Y = 0! UPDATE [ VAR.X++ CURSOR(X,Y) DRAW(255, 255, 255)! CLEAR! ]