arcade icon indicating copy to clipboard operation
arcade copied to clipboard

Broken examples (collection for 3.0)

Open MiCurry opened this issue 8 months ago • 10 comments

Some examples are broken due to the 3.0 camera updates. So far there are:

  • [x] arcade/examples/procedural_caves_bsp.py - Camera 'Jitters'
  • [x] arcade/examples/procedural_caves_cellular.py - AttributeError: module 'arcade.camera' has no attribute 'controllers'
  • [x] arcade/examples/full_screen_example.py - When swapping from fullscreen.
  • [x] arcade/examples/gl/custom_sprite.py
  • [ ] arcade/examples/camera_platform.py (resize doesn't work right)
  • [ ] arcade/examples/easing_example_2.py (due to other 3.0 changes)
  • [ ] arcade/examples/turn_and_move.py due to rotation direction changes
  • [ ] arcade/examples/minimap_camera.py
  • [ ] arcade/examples/light_demo.py

A few broken examples are listed in this comment. Others are listed in the comments below.

procedural_caves_bsp.py

Running python -m arcade.examples.procedural_caves_bsp the camera 'Jitters':

https://github.com/pythonarcade/arcade/assets/2590700/ed9a40db-a610-4155-9c8d-a8b1131f820c

procedural_caves_cellular.py

Running python -m arcade.examples.procedural_caves_cellular ends up in an attribute error:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/miles/programs/arcade/arcade/examples/procedural_caves_cellular.py", line 350, in <module>
    main()
  File "/Users/miles/programs/arcade/arcade/examples/procedural_caves_cellular.py", line 346, in main
    arcade.run()
  File "/Users/miles/programs/arcade/arcade/window_commands.py", line 146, in run
    pyglet.app.run(window._draw_rate)
  File "/usr/local/lib/python3.11/site-packages/pyglet/app/__init__.py", line 80, in run
    event_loop.run(interval)
  File "/usr/local/lib/python3.11/site-packages/pyglet/app/base.py", line 165, in run
    timeout = self.idle()
              ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pyglet/app/base.py", line 226, in idle
    self.clock.call_scheduled_functions(dt)
  File "/usr/local/lib/python3.11/site-packages/pyglet/clock.py", line 217, in call_scheduled_functions
    item.func(now - item.last_ts, *item.args, **item.kwargs)
  File "/Users/miles/programs/arcade/arcade/application.py", line 386, in _dispatch_updates
    self.dispatch_event('on_update', delta_time)
  File "/usr/local/lib/python3.11/site-packages/pyglet/window/__init__.py", line 676, in dispatch_event
    super().dispatch_event(*args)
  File "/usr/local/lib/python3.11/site-packages/pyglet/event.py", line 380, in dispatch_event
    if handler(*args):
       ^^^^^^^^^^^^^^
  File "/Users/miles/programs/arcade/arcade/examples/procedural_caves_cellular.py", line 129, in on_update
    game_view.setup()
  File "/Users/miles/programs/arcade/arcade/examples/procedural_caves_cellular.py", line 209, in setup
    self.scroll_to_player(1.0)
  File "/Users/miles/programs/arcade/arcade/examples/procedural_caves_cellular.py", line 314, in scroll_to_player
    arcade.camera.controllers.simple_follow_2D(speed, position, self.camera_sprites.view_data)
    ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'arcade.camera' has no attribute 'controllers'

MiCurry avatar Jun 19 '24 13:06 MiCurry