Mozaik effekt
This commit is contained in:
@@ -19,6 +19,8 @@ class Game(arcade.Window):
|
||||
|
||||
self.screen_width = SCREEN_WIDTH
|
||||
self.screen_height = SCREEN_HEIGHT
|
||||
self.mosaic = 1
|
||||
self.mos_enabled = False
|
||||
|
||||
self.game_texture = self.ctx.texture(
|
||||
(SCREEN_WIDTH, SCREEN_HEIGHT),
|
||||
@@ -33,7 +35,7 @@ class Game(arcade.Window):
|
||||
self.renderer = renderers.TextureRenderer(self.ctx)
|
||||
|
||||
def on_update(self, dt):
|
||||
gamestate.update(dt)
|
||||
gamestate.update(game, dt)
|
||||
controls.update()
|
||||
|
||||
def on_key_press(self, symbol, modifiers):
|
||||
@@ -73,6 +75,8 @@ class Game(arcade.Window):
|
||||
y,
|
||||
scaled_width,
|
||||
scaled_height,
|
||||
self.mosaic,
|
||||
self.mos_enabled
|
||||
)
|
||||
|
||||
game = Game()
|
||||
|
||||
Reference in New Issue
Block a user