Skip to content

Commit 71b154c

Browse files
authored
Add files via upload
Initial upload
1 parent 134df25 commit 71b154c

22 files changed

+2039
-0
lines changed

ThumbCommander/Intro.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#asynchronously plays a logo video while stuff loads
2+
from time import sleep
3+
from thumbyGrayscale import display, Sprite
4+
from machine import Timer
5+
from gc import collect
6+
loc = "/Games/Starsvoxel/"
7+
8+
framecount = 0
9+
frame = 0
10+
intro_sprite = 0
11+
12+
def __init__():
13+
global frame, framecount, intro_sprite
14+
display.fill(0)
15+
display.update()
16+
intro_sprite = Sprite(74,30,(loc+"intro_74.BIT.bin",loc+"intro_74.SHD.bin"),0,5)
17+
framecount = intro_sprite.frameCount
18+
19+
def drawframe(dummy):
20+
global frame, framecount, intro_sprite
21+
intro_sprite.setFrame(frame)
22+
display.drawSprite(intro_sprite)
23+
display.update()
24+
frame += 1
25+
if frame >= framecount:
26+
frametimer.deinit()
27+
sleep(1)
28+
collect()
29+
30+
frametimer = Timer()
31+
32+
def start():
33+
frametimer.init(freq=8, mode=Timer.PERIODIC, callback=drawframe)
34+
35+
def finish():
36+
while frame < framecount: pass

ThumbCommander/ThumbCommander.py

Lines changed: 893 additions & 0 deletions
Large diffs are not rendered by default.
7.11 MB
Binary file not shown.

ThumbCommander/astroid1_56.BIT.bin

4.27 KB
Binary file not shown.

ThumbCommander/astroid1_56.SHD.bin

4.27 KB
Binary file not shown.

ThumbCommander/astroid2_56.BIT.bin

4.27 KB
Binary file not shown.

ThumbCommander/astroid2_56.SHD.bin

4.27 KB
Binary file not shown.

ThumbCommander/enemy1_59.BIT.bin

26.8 KB
Binary file not shown.

ThumbCommander/enemy1_59.SHD.bin

26.8 KB
Binary file not shown.

ThumbCommander/explode_56.BIT.bin

2.68 KB
Binary file not shown.

0 commit comments

Comments
 (0)