| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- print("hi\n")
- initWindow(300, 400)
- function big(x, y)
- c = color(20, 0, 31)
- for ax = 0 to 2
- for ay = 0 to 2
- setPixel(x + ax, y + ay, c)
- end
- end
- end
- x = 0
- y = 0
- while !shouldClose()
- nextFrame()
- clearWindow(color(0, 18, 15))
- c = color(20, 0, 31)
- if isButtonDown(BT_LEFT)
- x = x - 1
- end
- if isButtonDown(BT_RIGHT)
- x = x + 1
- end
- if isButtonDown(BT_UP)
- y = y - 1
- end
- if isButtonDown(BT_DOWN)
- y = y + 1
- end
- if isButtonDown(BT_START)
- big(100, 80)
- end
- if isButtonDown(BT_SELECT)
- big(100, 90)
- end
- if isButtonDown(BT_A)
- big(100, 100)
- end
- if isButtonDown(BT_B)
- big(100, 110)
- end
- if isButtonDown(BT_X)
- big(100, 120)
- end
- if isButtonDown(BT_Y)
- big(100, 130)
- end
- if isButtonDown(BT_L)
- big(100, 140)
- end
- if isButtonDown(BT_R)
- big(100, 150)
- end
- if x < 0
- x = 0
- end
- if x > 237
- x = 237
- end
- if y < 0
- y = 0
- end
- if y > 157
- y = 157
- end
- big(x, y)
- render(0, 0, c, "ABCDEFGHIJKLMNOPQRSTUVWXYZ")
- render(0, 8, c, "abcdefghijklmnopqrstuvwxyz")
- render(0, 16, c, "0123456789()[]{}<>/\\?")
- render(0, 24, c, "\"$%^&*-_=+#~.,;:|")
- end
- printLine("stop")
|