first demo for displaying chopper sprites.

This commit is contained in:
Olli Graf
2026-02-14 12:16:57 +01:00
parent 8c493def5c
commit c97a5ff09c
12 changed files with 70 additions and 6 deletions

16
chopper.py Normal file
View File

@@ -0,0 +1,16 @@
class Chopper:
def __init__(self,xpos,ypos,state):
self.xpos = xpos
self.ypos = ypos
self.state = state
self.STATE_FRONT=0
self.STATE_RIGHT=1
self.STATE_LEFT = 2
self.images = {}
def add_sprite(self,state,sprite):
self.images[state] = sprite