Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. memory description (for my own sanity):
  2.    loop_bool(1) | mouse_state | loop_counter | x
  3.  
  4. game init
  5.  
  6. game loop
  7. +[>
  8.    >++++[-<+++++>]<,   get mouse_1
  9.    [                   if mouse_1 pressed
  10.        >>.>....<+<<-   draw new black, and add to x
  11.    ]
  12.  
  13.    >++++[-<+++++>]<+,  get mouse_2
  14.    [                   if mouse_2 pressed
  15.        >>.>.-...+<-<<- erase black, and decrement x
  16.    ]
  17.  
  18. <]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement