示例#1
0
# -*- coding: utf-8 -*-

# pip install -r requirements.txt

from astrobox.space_field import SpaceField

# from stage_03_harvesters.reaper import ReaperDrone
from stage_03_harvesters.driller import DrillerDrone
from zaboev import ZaboevDrone

NUMBER_OF_DRONES = 5

if __name__ == '__main__':
    scene = SpaceField(
        speed=5,
        asteroids_count=20,
    )
    team_1 = [ZaboevDrone() for _ in range(NUMBER_OF_DRONES)]
    team_2 = [DrillerDrone() for _ in range(NUMBER_OF_DRONES)]
    scene.go()

# Победы 10/10 - Чистая победа!
示例#2
0
from stage_03_harvesters.driller import DrillerDrone
from stage_03_harvesters.vader import VaderDrone
DRONE_COUNT = 5

if __name__ == '__main__':
    scene = SpaceField(
        field=(1000, 900),
        speed=3,
        asteroids_count=10,
        can_fight=False,
    )
    my_team = []
    enemy_team = []
    my_drones = [KhizhovDrone() for i in range(DRONE_COUNT)]
    for drone in my_drones:
        my_team.append(drone)
    enemy_drones = [DrillerDrone() for i in range(DRONE_COUNT)]
    # enemy_drones2 = [ReaperDrone() for i in range(DRONE_COUNT)]
    # enemy_drones3 = [VaderDrone() for i in range(DRONE_COUNT)]

    scene.go()
    my_drones[0].game_over()

#  на Windows 1.3.0 Теперь не вылетаетет,выдает GameOver при завешении игры, а мою статистику не выдает.
#  Процесс не завершается
#  А на убунту всё норм, выдает GameOver и при закрытии окна выдает мою статистику

# - тестирую на Ubuntu, поэтому могу не заметить, что есть косяки в Windows

# Второй этап: зачёт!
示例#3
0
# -*- coding: utf-8 -*-

from astrobox.space_field import SpaceField
from kim import KimDrone
from stage_03_harvesters.reaper import ReaperDrone
from stage_03_harvesters.driller import DrillerDrone
from stage_03_harvesters.vader import VaderDrone

if __name__ == '__main__':
    scene = SpaceField(speed=5, asteroids_count=15)
    swarm1 = [KimDrone() for _ in range(5)]
    swarm2 = [DrillerDrone() for _ in range(5)]
    # swarm3 = [VaderDrone() for _ in range(5)]
    # swarm4 = [ReaperDrone() for _ in range(5)]
    scene.go()

# Первый этап: зачёт!
# Второй этап: зачёт!
# Третий этап: зачёт!