-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfactory.py
34 lines (27 loc) · 848 Bytes
/
factory.py
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
# Imports
from model.world import *
from model.blocks import *
from model.civilian import *
from model.player import *
from model.enemy import *
# Initialize World
world1 = World(800, 200, 800, 200)
# World Settings
world1.setTitle("World Test")
world1.setIcon("view/system/icon.png")
world1.loadBackground("view/level/factory-background.png", 0)
#world1.loadMusic("view/sound/background3.mp3")
# Add Sprite
boxUnit = Block(150, 0, "view/static/wood-box-damaged.png")
world1.loadSprite(boxUnit)
# Add Player Spite
playerUnit = Player(50, 0, "view/char/actor-player-gun.png")
world1.loadPlayer(playerUnit)
# Add Cursor
cursorUnit = Block(0, 0, "view/system/crosshair.png")
world1.loadCursor(cursorUnit)
# Add Enemy Sprite
enemyUnit = Enemy(300, 0, "view/char/actor-zombie.png", 1, 5, 1, 9)
world1.loadEnemy(enemyUnit)
# Run World
world1.run()