Questions tagged [arcade]

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

Reference:

Documentation:

110 questions
0
votes
2 answers

Reading text from user in Python Arcade library

Is there a way in Python Arcade library to read text from the user (with textbox rectangle, or popup, etc.)? Without the need to read each key, and interpereting it (and translate to some other char if the system language isn't English). If not, is…
Yaakov Shoham
  • 10,182
  • 7
  • 37
  • 45
0
votes
1 answer

opening and displaying 2 windows, arcade and cv2.imshow in Python at the same time

I wrote Dino game with Arcade in Python. To move the dinosaur, I use mediapipe hand detection with a webcam. The problem is that I can not open both the webcam and the game window together. To solve this problem I wanted to use the threading…
Maryam Boneh
  • 59
  • 1
  • 6
0
votes
1 answer

Why my Python window gets dark? Python Arcade Library

I'm trying to do this example. So, I copy and paste the entire code in my Pycharm: """ Example "Arcade" library code. This example shows the drawing primitives and how they are used. It does not assume the programmer knows how to define functions…
0
votes
1 answer

Is there a way to disable collisions?

I'm building a game in Python Arcade which will have a NEAT AI run through the level. I am trying to find a way for the multiple instances of the player to run at the same time but without colliding. Is there a way to do this? Collision types just…
0
votes
1 answer

How do I get arcade.draw_text to work in my python code for asteroids?

Here is that piece of code. 'def remove_DeadObjects(self):' 'for bullet in self.bullets:' 'if not bullet.alive:' 'self.bullets.remove(bullet)' 'for asteroid in…
0
votes
1 answer

Hi, I am a beginner coder and when using arcade I found this error with a simple program

import arcade class MyGamewindow(arcade.Window): def __init__(self, width,height,title): super().__init__(width,height,title) self.set_location(400,200) MyGamewindow(800, 400, 'xy') arcade.run() This is my…
Anonymous
  • 1
  • 1
0
votes
1 answer

How to change room in this game (arcade Python)

I am developing a simple platformer game using the arcade game library of Python. I am still new to this, but I have tried to use as much object oriented programming as I could. I have successfully setup two "rooms" or levels of the game. However, I…
0
votes
1 answer

How do I make my 2d game fit screen size in arcade library

actually I'm trying to code my first 2d game with python, using arcade library. I want to know if there's a way to make the game fit any screen size without manual adjustment of the width and height: import arcade SCREEN_WIDTH = 800 SCREEN_HEIGHT =…
Moez Ben Rebah
  • 170
  • 1
  • 12
0
votes
1 answer

I'm trying to display an image in arcade python, why is it not working?

width = 1400 height = 950 arcade_title = "r/pics" arcade.open_window(width, height, arcade_title) arcade.set_background_color(arcade.color.WHITE) img = arcade.load_texture('google.jpeg') arcade.draw_texture_rectangle (700, 475, 700, 700,…
joib
  • 3
  • 2
0
votes
2 answers

No module named 'arcade' in VS Code 2

Whenever I try to run my code in Microsoft Visual Code Studio 2, it keeps popping up saying that there is no module named arcade. However, when I run the code in pyCharm, it runs perfectly fine. Does anyone know why it does this?
Anonymous
  • 135
  • 9
0
votes
1 answer

Is there a compatibility issue between python arcade 2.4a5 and Spyder 4.0.1?

Howdy fellow overflowers, Ive had a hankering to build a simple platformer using python! The search led me to python arcade! While going through the tutorial here: https://opensource.com/article/18/4/easy-2d-game-creation-python-and-arcade my pop up…
0
votes
1 answer

Cannot draw a circle by python arcade?

I am trying to draw a simple circle by python arcade.But there are some error like this.. arcade.draw_circle_filled(x, y, radius, arcade.color.YELLOW) File "C:\Python38-32\lib\site-packages\arcade\draw_commands.py", line 240, in…
0
votes
0 answers

How to deal with texture set problem with Python,I can't create sprite

It show an error when I run my program which said I attempted to draw a sprite without a texture set,please help,great thanks
0
votes
1 answer

How to use arcade module on Raspberry-pi TFT /dev/fb1?

I want to create a simple watch with python arcade library that will be displayed on a TFT screen from raspberry pi. I don't know how to get the arcade image data and send it to the /dev/fb1 (framebuffer). In pygame it is possible with something…
Dragos Vasile
  • 453
  • 4
  • 12
0
votes
2 answers

PyArcade (Pyglet) python3 Help needed

Python 3.8.1 using python-arcade and linux manjaro os This project is a multiplayer game built with python arcade I get these errors while running : class Client(arcade.Window): def __init__( self, width: int, height:…
F4zi
  • 21
  • 1
  • 2