BF²ᵈ

From Esolang
Jump to navigation Jump to search
Logo for BF²ᵈ.

BF²ᵈ is a brainf*** derivative made by User:Masalt in Snap! to allow for video game creation.

Commands

Command Description
> Move the cell pointer to the right
< Move the cell pointer to the left
+ Increment the memory cell at the cell pointer
- Decrement the memory cell at the cell pointer
, Input a character and store it in the cell at the cell pointer
[ Jump past the matching ] if the cell pointer's cell value is 0
] Jump back to the matching [ if the cell pointer's cell value is nonzero
| Move screen pointer up
_ Move screen pointer down
\ Move screen pointer left
/ Move screen pointer right
. Write a pixel at the screen pointer's current location
~ Set the screen pointer's brightness to the cell pointer's current cell value

Examples

Infinite Loop

+[]

Hello World

\\\\\\\\\\\\\\\\\\\\
||._._._._.||/./||._._._._.||//||/.\._._/.\._._./.\///||||._._._._./.||//||._._._._./.
||//||/.\._._._._././||||._._._._.||////||._._._._././|||._._._.||._._././||||._._._._
.||//||/.\._._._._././||||._._._._.||//||._._._._.||/||.__.__||/||._._.__||/||__._._.|
|//||._._._._./.||//||/.\._._._._././|||._._.+[]

Interpreters

The official interpreter