File: trigger.py

package info (click to toggle)
whichwayisup 0.7.9-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 1,604 kB
  • ctags: 240
  • sloc: python: 2,368; makefile: 49; sh: 2
file content (12 lines) | stat: -rw-r--r-- 365 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
'''A class for storing triggers affecting gameplay.
Flip triggers and also level editing triggers in the future.'''

class Trigger:

    def __init__(self, trigger_type, x, y, tilex = None, tiley = None):
        self.trigger_type = trigger_type
        self.x = x
        self.y = y
        self.tilex = tilex
        self.tiley = tiley
        return