113 days ago · Tech · hide · Fediverse post

Hello, loves! Found an Arcade example that seems like just the thing. Tout le monde déteste l’IA. Among the Arcade Examples, I found this example of the Section: """ Section Example 1: In this Section example we divide the screen in two sections and let the user pick a box depending on the selected Section Note: - How View know nothing of what's happening inside the sections. Each section knows what to do. - Each event mouse input is handled by each Section even if the class it's the same (ScreenPart). - How on_mouse_enter/leave triggers in each Section when the mouse enter or leaves the section boundaries If Python and Arcade are installed, this example can be run from the command line with: python -m arcade.examples.sections_demo_1 """ import arcade from arcade import SectionManager class Box(arcade.SpriteSolidColor): """This is a Solid Sprite that represents a GREEN Box on the screen""" def __init__(self, section): super().__init__(100, 100, color=arcade.color.APPLE_GREEN)…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town