23 lines
468 B
Python
23 lines
468 B
Python
|
|
from game.blocks.block import Block
|
|
from game.gameState import GameState
|
|
|
|
class FinishBlock(Block):
|
|
@property
|
|
def character(self):
|
|
return 'E'
|
|
|
|
@property
|
|
def type(self):
|
|
return 'finish'
|
|
|
|
@property
|
|
def solid(self):
|
|
return False
|
|
|
|
def on_collision(self, gameState: GameState):
|
|
gameState.set_stop_game(True)
|
|
gameState.set_game_won(True)
|
|
|
|
def to_string(self):
|
|
return "🏁" |