level.map.set_platform('sand', 24, 3) level.map.set_platform('sand', 26, 5) level.map.set_platform('sand', 27, 5) level.map.set_platform('sand', 30, 1) level.map.set_platform('sand', 31, 1) level.map.set_platform('sand', 32, 1) level.map.set_platform('sand', 34, 3) level.map.set_platform('sand', 35, 3) level.map.items.add_item(CollectableItem("star", 200, 200, 20, 20)) level.map.items.add_item(CollectableItem("star", 250, 150, 20, 20)) level.map.items.add_item(CollectableItem("star", 500, 300, 20, 20)) level.map.items.add_item(CollectableItem("star", 800, 300, 20, 20)) background = Sprite("tatooine1") background.x = (state.x - 0.5 * window.width) background2 = Sprite("tatooine2") background2.x = background.x + background.width enemies = EnemyCollection() han = Enemy("boba_fett_ghost_right", "boba_fett_ghost.png", 300, 32) han2 = Enemy("boba_fett_ghost_right", "boba_fett_ghost.png", 600, 100) enemies.add_enemy(han) enemies.add_enemy(han2) heart_image = pyglet.resource.image('heart.png') heart = pyglet.sprite.Sprite(heart_image) heart.x = window.width * 0.9 heart.y = window.height * 0.9 heart2 = pyglet.sprite.Sprite(heart_image) heart2.x = window.width * 0.9 - 25