Questions tagged [arcade]

Arcade is a Python library for creating 2D video games.

Reference:

Documentation:

110 questions
2
votes
2 answers

Trying to use the arcade library on Python3 with Debian 10 errors with pyglet_ffmpeg

I've been trying to use the arcade library this morning with python3 but keep getting nothing but errors. My environment is Debian 10 (buster) I checked first to ensure I have python 3 installed, this confirmed as Python 3.7.3 I double checked…
user9309230
2
votes
1 answer

Python 3.6.4 Arcade Module Window Errors? {pyglet.gl.lib.GLException: b'invalid enumerant'}

UPDATE: I checked the graphics cards installed on the computers. The one where it "works" has Nvidia Graphics and the other has Intel HD R graphics under display adapter in Device Manager. I'm assuming the Intel HD R graphics driver is not…
shecodesthings
  • 1,218
  • 2
  • 15
  • 33
2
votes
2 answers

The Arcade Library requires Python 3.6 or higher

Trying to run an example of a python arcade library game. Paste the code to Pycharm: the line 'import arcade' fails because 'The Arcade Library requires Python 3.6 or higher.' . Try again with python3.7 interpreter, now it says 'No module named…
Domiinic
  • 67
  • 1
  • 9
2
votes
2 answers

Loading .png file for use as a sprite in Python Arcade

I am trying to create a Player class in Python Arcade wherein I use a .png image of a rectangle to create a sprite which the user moves in order to hit a ball. However, whenever I run the program, I receive a "FileNotFoundError". The file name is…
2
votes
0 answers

Pyglet - Could not create UTF8 text property

I am trying to follow a guide about game developing using python and the 'acrade' package. I have installed arcade using: (I'm using linux) pip3 install arcade Then I have tried to compile the following code to test the freshly installed…
guygrinberger
  • 327
  • 2
  • 14
2
votes
1 answer

Centering a window in Arcade with Python 3

I am coding a game using the arcade module and don't know how to centre the window so it appears directly in the middle of my screen rather than in the top left. My current code for creating the window is as follows: class MyGame(arcade.Window): …
Danyal Durrani
  • 115
  • 1
  • 2
  • 6
1
vote
1 answer

Class angle value is reset after running move function

I am working on a little project to have autonomous cells move around and eventually be a little game of life simulation. Currently I'm having an issue with randomizing the cells movement. I have the cell as a class and set the starting angle in the…
1
vote
1 answer

How do I get glsl shader to work with pymunk physics engine and camera?

Here are my observations of the problem: The asteroids game uses a drawn texture sprite for the glow ball weapons. This is done in the GlowBall class. Weapon 7 uses a drawn image The drawn sprite is with bullet_list.draw() but the shader: for…
1
vote
1 answer

i am working on a game in python arcade for a school asessment, and i have a timer to spawn enemies over time, it tries to spawn them in menu screen

im working on a python arcade game, where you run around a top-down world, shooting zombies that spawn over time. i am using a timer to spawn enemies every few seconds, where each spawn, one more enemy spawns, and the time between spawns gets…
riley
  • 53
  • 3
1
vote
2 answers

Trouble detecting joysticks in Python Arcade (and Pyglet)

I can't seem to get my controllers to detect correctly in using Python Arcade. I've created a controller object that tests the basic functionality like this: # tq_menu class CursorControl(): joystick_count = len(arcade.get_joysticks()) def…
Pogmog
  • 23
  • 4
1
vote
1 answer

Show a death screen after the player dies

I'm trying to show a death screen when the player dies, so I have set up a new view in the GameOverView class. Whenever I try to run the game it crashes and says: line 288, in on_update self.window.show_view(GameOverView) AttributeError: 'MyGame'…
riley
  • 53
  • 3
1
vote
1 answer

"ModuleNotFoundError: No module named 'arcade'" after using pyinstaller

The script runs fine but compiled with pyinstaller throws an error in runtime: Traceback (most recent call last): File "poples.py", line 3, in ModuleNotFoundError: No module named 'arcade' [5316] Failed to execute script 'poples' due to…
Ozzy
  • 21
  • 1
1
vote
1 answer

how to run arcade with twisted?

I wish to use the arcade library with the twisted library. but they both have a blocking main loop run() function. what should I do? I tried using threads so the main loops would run simultaneously. but arcade crushes when I try to run it.
ajr120
  • 11
  • 2
1
vote
2 answers

How do I stop the background music in the arcade library?

I need the music to play until the game is over, at which point I'd like it to stop, but nothing I try seems to work. Below is the shortened version of the code I'm working with. If anything, the sound should stop playing immediately because…
Naerwen
  • 23
  • 4
1
vote
1 answer

Circle appears as a Triangle in Arcade python library

I have been trying to draw a simple circle using the arcade python library, but all I can see is a perfectly positioned triangle instead. Here's the sample code I used: import arcade # Set constants for the screen size SCREEN_WIDTH =…
Chironito
  • 13
  • 2