mirror of
https://github.com/csd4ni3l/fractal-viewer.git
synced 2026-01-01 04:13:41 +01:00
Rename to Fractal Viewer, add Sierpinsky Carpet, use arcade 3.2.0
instead of development
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import arcade, arcade.gui, asyncio, pypresence, time, copy, json
|
||||
from game.play import FractalChooser
|
||||
from utils.preload import button_texture, button_hovered_texture
|
||||
from utils.constants import big_button_style, discord_presence_id
|
||||
from utils.utils import FakePyPresence
|
||||
@@ -50,7 +51,7 @@ class Main(arcade.gui.UIView):
|
||||
def on_show_view(self):
|
||||
super().on_show_view()
|
||||
|
||||
self.title_label = self.box.add(arcade.gui.UILabel(text="Mandelbrot Viewer", font_name="Protest Strike", font_size=48))
|
||||
self.title_label = self.box.add(arcade.gui.UILabel(text="Fractal Viewer", font_name="Protest Strike", font_size=48))
|
||||
|
||||
self.play_button = self.box.add(arcade.gui.UITextureButton(text="Play", texture=button_texture, texture_hovered=button_hovered_texture, width=self.window.width / 2, height=150, style=big_button_style))
|
||||
self.play_button.on_click = lambda event: self.play()
|
||||
@@ -59,8 +60,8 @@ class Main(arcade.gui.UIView):
|
||||
self.settings_button.on_click = lambda event: self.settings()
|
||||
|
||||
def play(self):
|
||||
from game.play import Game
|
||||
self.window.show_view(Game(self.pypresence_client))
|
||||
from game.play import FractalChooser
|
||||
self.window.show_view(FractalChooser(self.pypresence_client))
|
||||
|
||||
def settings(self):
|
||||
from menus.settings import Settings
|
||||
|
||||
Reference in New Issue
Block a user