view pytouhou/game/games.py @ 129:284ac8f97a96

Fix potential crash
author Thibaut Girka <thib@sitedethib.com>
date Sat, 10 Sep 2011 18:33:45 +0200
parents 174324a4da51
children 11ab06f4c4c6
line wrap: on
line source

# -*- encoding: utf-8 -*-
##
## Copyright (C) 2011 Thibaut Girka <thib@sitedethib.com>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published
## by the Free Software Foundation; version 3 only.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##

from pytouhou.game.game import Game
from pytouhou.game.bullettype import BulletType

class EoSDGame(Game):
    def __init__(self, resource_loader, players, stage, rank, difficulty):
        etama3 = resource_loader.get_anm_wrapper(('etama3.anm',))
        etama4 = resource_loader.get_anm_wrapper(('etama4.anm',))
        bullet_types = [BulletType(etama3, 0, 11, 14, 15, 16),
                        BulletType(etama3, 1, 12, 17, 18, 19),
                        BulletType(etama3, 2, 12, 17, 18, 19),
                        BulletType(etama3, 3, 12, 17, 18, 19),
                        BulletType(etama3, 4, 12, 17, 18, 19),
                        BulletType(etama3, 5, 12, 17, 18, 19),
                        BulletType(etama3, 6, 13, 20, 20, 20),
                        BulletType(etama3, 7, 13, 20, 20, 20),
                        BulletType(etama3, 8, 13, 20, 20, 20),
                        BulletType(etama4, 0, 1, 2, 2, 2)]

        Game.__init__(self, resource_loader, players, stage, rank, difficulty, bullet_types)