Skip to content

Commit 29862f1

Browse files
authored
Merge pull request #289 from xris99/master
Added my game ThumbCommander
2 parents 97756aa + 61e404c commit 29862f1

23 files changed

+2044
-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 grayscale import display, Sprite
4+
from machine import Timer
5+
from gc import collect
6+
loc = "/Games/ThumbCommander/"
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.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Are you one to remember the classic Wing Commander Games?
2+
Now is your time to jump into the cockpit on your thumby.
3+
Dash through classic astroid fields and engage in dogfights with nether ending enemy ships
4+
This would not have been possible without all the great graphic of the Wing Commander Encyclopedia Project.
5+
It is my first pass on the game. Watch out for more to come.
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.

0 commit comments

Comments
 (0)