Skip to content

Instantly share code, notes, and snippets.

@bbb651
Created January 2, 2024 04:44
Show Gist options
  • Select an option

  • Save bbb651/a2a658c8362b2819aefe8b5c3af6d53d to your computer and use it in GitHub Desktop.

Select an option

Save bbb651/a2a658c8362b2819aefe8b5c3af6d53d to your computer and use it in GitHub Desktop.
Untitled PuzzleScript Script
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title 2024 Counter Demo
author bbb651
homepage github.com/bbb651
again_interval 0
========
OBJECTS
========
Background .
darkgray
Player
green
Once
transparent
Marker
transparent
Digit0 0
white
.000.
.0.0.
.0.0.
.0.0.
.000.
Digit1 1
white
..0..
.00..
..0..
..0..
.000.
Digit2 2
white
.000.
...0.
.000.
.0...
.000.
Digit3 3
white
.000.
...0.
.000.
...0.
.000.
Digit4 4
white
.0.0.
.0.0.
.000.
...0.
...0.
Digit5 5
white
.000.
.0...
.000.
...0.
.000.
Digit6 6
white
.000.
.0...
.000.
.0.0.
.000.
Digit7 7
white
.000.
...0.
..0..
..0..
..0..
Digit8 8
white
.000.
.0.0.
.000.
.0.0.
.000.
Digit9 9
white
.000.
.0.0.
.000.
...0.
...0.
=======
LEGEND
=======
Digit = Digit0 or Digit1 or Digit2 or Digit3 or Digit4 or Digit5 or Digit6 or Digit7 or Digit8 or Digit9
NoneZero = Digit1 or Digit2 or Digit3 or Digit4 or Digit5 or Digit6 or Digit7 or Digit8 or Digit9
=======
SOUNDS
=======
================
COLLISIONLAYERS
================
Background
Digit0, Digit1, Digit2, Digit3, Digit4, Digit5, Digit6, Digit7, Digit8, Digit9
Player
Once
Marker
======
RULES
======
random [] -> [ Once ]
[ Digit ] -> [ Digit Marker ]
right [ Digit1 Marker | no Marker ] [ Once ] -> [ Digit0 | ] [] again
+ right [ Digit2 Marker | no Marker ] [ Once ] -> [ Digit1 | ] [] again
+ right [ Digit3 Marker | no Marker ] [ Once ] -> [ Digit2 | ] [] again
+ right [ Digit4 Marker | no Marker ] [ Once ] -> [ Digit3 | ] [] again
+ right [ Digit5 Marker | no Marker ] [ Once ] -> [ Digit4 | ] [] again
+ right [ Digit6 Marker | no Marker ] [ Once ] -> [ Digit5 | ] [] again
+ right [ Digit7 Marker | no Marker ] [ Once ] -> [ Digit6 | ] [] again
+ right [ Digit8 Marker | no Marker ] [ Once ] -> [ Digit7 | ] [] again
+ right [ Digit9 Marker | no Marker ] [ Once ] -> [ Digit8 | ] [] again
+ right [ Digit0 Marker | no Marker ] [ Once ] -> [ Digit9 | ] [ Once ]
==============
WINCONDITIONS
==============
no NoneZero
=======
LEVELS
=======
........
........
..2024..
........
........
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment