LOLGraphics Version 2.4


What's new?

Added infinite loops (FOREVER RUN) and also the ability to read from the input field without actually waiting for the user to type it in and press the button. This is useful for WASD controls, and I also added a demo for this but since in currently only accepts numbers, it's an 8462 demo. You can open by picking this program in the example programs or by copying and pasting the code from below. Because it's important that this code will run as fast as possible, I set the delay in between two commands 1 millisecond as opposed to 100 milliseconds (0.1 sec) that is the default. You can change it to whatever you want by changing HAI 2.4 0 1 to HAI 2.4 <delay before the first command>,<delay in between every 2 commands>.  Unfortunately, you can't set the second one to 0.


8462 demo

HAI 2.4 0 1

IM IN UR CODE EXECUTIN UR KOMANDZ

I HAS A TWO BYTE DAT IZ CALLED X

I HAS A TWO BYTE DAT IZ CALLED Y

I HAS A ONE BYTE DAT IZ CALLED BUTTON

PLZ SET TWO BYTE X 150

PLZ SET TWO BYTE Y 100

PLZ DELIVR MAH CHEEZBURGERS 2 X Y

I CAN HAS A CHEEZBURGER?

FOREVER RUN CHECK

IM OUTTA UR CODE

IM IN UR SUBPROGRAM DAT IZ KALLED CHECK

PLZ SET ONE BYTE BUTTON -1

PLZ READ ONE BYTE BUTTON

PLZ ASK CEILIN KAT 2 CHEK IZ [BUTTON]==8

IF CEILIN KAT IZ NODDING PLZ RUN UP

PLZ ASK CEILIN KAT 2 CHEK IZ [BUTTON]==2

IF CEILIN KAT IZ NODDING PLZ RUN DOWN

PLZ ASK CEILIN KAT 2 CHEK IZ [BUTTON]==4

IF CEILIN KAT IZ NODDING PLZ RUN LEFT

PLZ ASK CEILIN KAT 2 CHEK IZ [BUTTON]==6

IF CEILIN KAT IZ NODDING PLZ RUN RIGHT

IM OUTTA UR SUBPROGRAM

IM IN UR SUBPROGRAM DAT IZ KALLED UP

PLZ CLEAR TEH SCREEN

PLZ SET TWO BYTE Y Y-10

PLZ DELIVR MAH CHEEZBURGERS 2 X Y

I CAN HAS A CHEEZBURGER?

IM OUTTA UR SUBPROGRAM

IM IN UR SUBPROGRAM DAT IZ KALLED DOWN

PLZ CLEAR TEH SCREEN

PLZ SET TWO BYTE Y Y+10

PLZ DELIVR MAH CHEEZBURGERS 2 X Y

I CAN HAS A CHEEZBURGER?

IM OUTTA UR SUBPROGRAM

IM IN UR SUBPROGRAM DAT IZ KALLED LEFT

PLZ CLEAR TEH SCREEN

PLZ SET TWO BYTE X X-10

PLZ DELIVR MAH CHEEZBURGERS 2 X Y

I CAN HAS A CHEEZBURGER?

IM OUTTA UR SUBPROGRAM

IM IN UR SUBPROGRAM DAT IZ KALLED RIGHT

PLZ CLEAR TEH SCREEN

PLZ SET TWO BYTE X X+10

PLZ DELIVR MAH CHEEZBURGERS 2 X Y

I CAN HAS A CHEEZBURGER?

IM OUTTA UR SUBPROGRAM

Files

LOLGraphics 2.4.jar 253 kB
Apr 05, 2021

Get LOLGraphics

Leave a comment

Log in with itch.io to leave a comment.