Questions tagged [arcade]

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

Reference:

Documentation:

110 questions
0
votes
0 answers

Is there a way to run a simulation in python arcade while still updating the graphics and keeping the buttons active

I am creating a AI backgammon bot and have written some code using an arcade to show the board, pieces, etc. I have a function that will run a simulation game between two versions of the AI. When I use a button that advances the game by one turn,…
Wills
  • 40
  • 8
0
votes
1 answer

Python Arcade: Performance issue when trying to test collision between hundreds Sprites and thousands cell

I'm trying to build a simulation on python. I want a grid of 50x50 cells of different colors And balls that spawn on the grid and move until they collid a cell of another color. When a ball collide a cell of another color, the cell change her color…
0
votes
1 answer

Arcade Split Screen Implementation

I'm making a top-down racing game that has local multiplayer. I want each player to have their own view on the screen. The problem I'm having is that it seems you can't change a camera's position within the window. Ideally, I want to be able to have…
clodon2
  • 39
  • 4
0
votes
0 answers

How can I draw an isometric Tiled-Map with python Arcade?

I'm trying to draw a isometric Tiled-Map with the python arcade library. How can I project an isometric tiled-map grid onto the screen-space with arcade? The following naive top-down 2d approach is not working: import arcade class…
user14534957
  • 336
  • 3
  • 10
0
votes
1 answer

why my button in python arcade section seems inactive?

Hello this is My first post on stackoverflow, so I apologize in advance if my post is irrelant or problematic. I am using the python libraries Arcade and Arcade.gui. Currently I try to add GUI widgets in a Section instance (named popup in the code…
Duchemin74
  • 11
  • 2
0
votes
0 answers

ImportError: Library "GL" not found. while using pyglet in docker

I'm trying to run pyglet in headless mode in a docker container but even though I use pyglet.options["headless"] = True I still get this error: 2023-03-12T09:05:13.655921692Z ImportError: Library "GL" not found. This is the dockerfile: #…
yutytuty
  • 41
  • 3
0
votes
1 answer

.stop() function doesn't work with sprites

I was writing a simple ping pong game as an introduction to arcade and in the loop on line 51. It is supposed to stop the sprites moving but it just isn't happening. I tried to remove the self., but got an error, tried replacing self. with arcade.,…
Firy
  • 1
0
votes
1 answer

Matplolib and Arcade compute shaders: conflict for the default main context

I'm trying to adapt a big radiative transfert code written in python to use the GPU capacities, as I perform a lot of times the same computation which can be done in parallel. I'm a newbie when it comes to shaders, but found this, which seems to…
Azireo
  • 145
  • 1
  • 5
0
votes
1 answer

I am trying to make enemies spawn over time in my python arcade game, but i get a simple error that makes no sense

im working on a game in python arcade, where the player runs around, shoots zombies, etc. very basic game. just recently, i started implementing the spawn over time part, but i get an error that just makes no sense: AttributeError: 'MyGame' object…
riley
  • 53
  • 3
0
votes
0 answers

How do i make enemies spawn over time in python arade?

im trying to make the enemies in my python arcade game to spawn over time, and progressivley spawn faster, rather than all just spawning at once, cause i want it to be a "how long can you last" kind of game, rather than one with an end goal. i cant…
riley
  • 53
  • 3
0
votes
1 answer

How to make a gui screen with buttons before my game

I'm trying to add a gui with play game, settings, and quit buttons for my basic 2d zombie shooter game for a school assessment, but when i run the code, it has this error: line 195, in on_draw self.manager.draw() AttributeError: 'MyGame' object…
riley
  • 53
  • 3
0
votes
2 answers

Trying to get Python Arcade to work on Ubuntu

I have installed Python Arcade using pip install arcade which ran successfully. When trying to run the example code, or even just trying to import arcade from the Python command line, I receive an error >>> import arcade Traceback (most recent call…
Brian
  • 101
  • 1
0
votes
0 answers

Constantly getting this error in arcade when running my game

I am getting this error when trying to run my code, the error. Traceback (most recent call last): File "D:/Colin Lewis/pythonProject3/Lib/import_tileset.py", line 264, in main() File "D:/Colin…
0
votes
0 answers

Python Arcade caches textures when requested not to

I'm trying to change the background texture in an Arcade app, however, even though I requested Arcade not to cache textures, it seems as though it does. This is my code: class Application(arcade.Window): # ... def on_draw(self): if…
E. Epstein
  • 739
  • 2
  • 11
  • 26
0
votes
1 answer

How to use inheritance for this function

Hello I'm new in Python and this is my first post here! I am creating a small game using arcade library. One of the methods called draw is used to display the game images on the screen and it works fine. However, I'm reusing it in different files…
Aldi Sula
  • 11
  • 3