source: skaapsteker/sprites/base.py @ 18:81974842b38e

Last change on this file since 18:81974842b38e was 18:81974842b38e, checked in by Simon Cross <hodgestar@…>, 10 years ago

Add skeleton for physics and sprites.

File size: 488 bytes
Line 
1"""Basic sprite classes."""
2
3import pygame.sprite
4
5
6class Sprite(pygame.sprite.Sprite):
7    mobile = True # whether the velocity may be non-zero
8    gravitates = True # whether gravity applies to the sprite
9
10
11class Monster(Sprite):
12    pass
13
14
15class NPC(Sprite):
16    pass
17
18
19class Player(Sprite):
20    pass
21
22
23class Projectile(Sprite):
24    gravitates = False
25
26
27class Item(Sprite):
28    mobile = False
29    gravitates = False
30
31
32class Geography(Sprite):
33    mobile = False
34    gravitates = False
Note: See TracBrowser for help on using the repository browser.