-
Notifications
You must be signed in to change notification settings - Fork 0
/
sprite.js
61 lines (46 loc) · 930 Bytes
/
sprite.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Output of sprite | PanCake / IchigoLatte
// Copyright (c) 2019 Keiichi Shiga (BALLOON | FU-SEN)
// The MIT License (MIT) - https://mit.balloon.net.eu.org/#2019
//PanCake Output Sprite
var k=48,i,l=0;
uart("\n");
uart("PANCAKE RESET\n");
video(0);
uart("PANCAKE VIDEO 01\n");
uart("PANCAKE SPRITE START ");
uart("1F\n");
while(l<2){
i=0;
while(i<10){
uart("PANCAKE SPRITE ");
uart("CREATE 0");
uart(i+48,32,k,i+48,10);
uart("PANCAKE SPRITE ");
uart("MOVE 0");
uart(i+48,32,i/2+48);
uart((i%2)*8+48);
uart(" 0E\n");
i=i+1;
}
while(i<16){
uart("PANCAKE SPRITE ");
uart("CREATE 0");
uart(i+55,32,k,i+55,10);
uart("PANCAKE SPRITE MOVE 0");
uart(i+55,32,i/2+43);
uart((i%2)*8+48);
uart(" 17\n");
i=i+1;
}
l=0;
while(l==0){
k=inkey();
if((k>47)*(k<58)){l=1;}
if(k==65){l=1;}
if(k==97){k=k-32;l=1;}
if((k==32)+(k==10)){l=2;}
}
}
uart("PANCAKE VIDEO 00\n");
video(1);