| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- 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)
- end
- printLine("stop")
|