23 lines
288 B
Python
23 lines
288 B
Python
import pgzrun
|
|
import random
|
|
|
|
WIDTH = 800
|
|
HEIGHT = 600
|
|
|
|
apple = Actor("apple")
|
|
apple_x = WIDTH / 2
|
|
apple_y = HEIGHT / 2
|
|
apple.pos = (WIDTH / 2 , HEIGHT / 2)
|
|
|
|
sword = Actor("sword")
|
|
|
|
dinosuars = []
|
|
corpses = []
|
|
|
|
def draw():
|
|
screen.fill((100,220,100))
|
|
apple.draw()
|
|
|
|
|
|
|
|
pgzrun.go() |