-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpongfu.js
42 lines (37 loc) · 863 Bytes
/
pongfu.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// draw of PONG screen | PanCake / IchigoLatte
// Copyright (c) 2019 Keiichi Shiga (BALLOON | FU-SEN)
// The MIT License (MIT) - https://mit.balloon.net.eu.org/#2019
//PanCake PONG Screen
uart("\n");
video(0);
uart("PC VIDEO 01\n");
uart("PC SPRITE CREATE ");
uart("00 9B\n");
uart("PC SPRITE ROTATE ");
uart("00 01\n");
uart(128,6,8,0,0,rnd(37));
uart("\n");
uart("PC SPRITE CREATE ");
uart("01 9B\n");
uart("PC SPRITE ROTATE ");
uart("01 01\n");
uart(128,6,8,1,72,rnd(37));
uart("\n");
uart("PC SPRITE CREATE ");
uart("02 9D\n");
uart(128,6,8,2);
uart(rnd(80),rnd(45));
uart(128,5,7,3,0xa6+rnd(9));
uart("\n");
uart("PC SPRITE MOVE ");
uart("03 18 00\n");
uart(128,5,7,4,0xA6+rnd(9));
uart("\n");
uart("PC SPRITE MOVE ");
uart("04 34 00\n");
uart("PC SPRITE START 10\n");
while(inkey()==0){}
uart("PC SPRITE START FF\n");
uart("PC VIDEO 00\n");
video(1);