File: trigger.py

package info (click to toggle)
whichwayisup 0.7.9-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,808 kB
  • sloc: python: 2,372; sh: 3; makefile: 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