comparison pytouhou/game/games.py @ 122:174324a4da51

Add support for launch animations! (Warning: slow :()
author Thibaut Girka <thib@sitedethib.com>
date Sat, 10 Sep 2011 01:26:30 +0200
parents
children 11ab06f4c4c6
comparison
equal deleted inserted replaced
121:1bc0ad774ed4 122:174324a4da51
1 # -*- encoding: utf-8 -*-
2 ##
3 ## Copyright (C) 2011 Thibaut Girka <thib@sitedethib.com>
4 ##
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published
7 ## by the Free Software Foundation; version 3 only.
8 ##
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ## GNU General Public License for more details.
13 ##
14
15 from pytouhou.game.game import Game
16 from pytouhou.game.bullettype import BulletType
17
18 class EoSDGame(Game):
19 def __init__(self, resource_loader, players, stage, rank, difficulty):
20 etama3 = resource_loader.get_anm_wrapper(('etama3.anm',))
21 etama4 = resource_loader.get_anm_wrapper(('etama4.anm',))
22 bullet_types = [BulletType(etama3, 0, 11, 14, 15, 16),
23 BulletType(etama3, 1, 12, 17, 18, 19),
24 BulletType(etama3, 2, 12, 17, 18, 19),
25 BulletType(etama3, 3, 12, 17, 18, 19),
26 BulletType(etama3, 4, 12, 17, 18, 19),
27 BulletType(etama3, 5, 12, 17, 18, 19),
28 BulletType(etama3, 6, 13, 20, 20, 20),
29 BulletType(etama3, 7, 13, 20, 20, 20),
30 BulletType(etama3, 8, 13, 20, 20, 20),
31 BulletType(etama4, 0, 1, 2, 2, 2)]
32
33 Game.__init__(self, resource_loader, players, stage, rank, difficulty, bullet_types)