Rename to Fractal Viewer, add Sierpinsky Carpet, use arcade 3.2.0

instead
of development
This commit is contained in:
csd4ni3l
2025-05-24 09:24:22 +02:00
parent c295fec105
commit 51c0c6ef05
13 changed files with 280 additions and 109 deletions

View File

@@ -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