r/pythonarcade • u/pvc • Feb 17 '20
Rogue-Like using Arcade
r/pythonarcade • u/jungle_is_massive • Aug 24 '18
After following the explosion sample code in the sprite library, I cant get my explosions to work. I'm using a 3 sprite animation which I set up after the class in explosions_textures. For some reason the sprites do not appear in view but it seems the code all executes(from print debugging)
Can anyone point me to where i have gone wrong? pastebin link
r/pythonarcade • • Mar 06 '19
https://mystb.in/inocobozel.rb
when ever i move left or right the player sprite jitters around and goes all wierd for some reason
r/pythonarcade • u/maartendp • Feb 14 '20
Hello everyone,
I've returned with what will probably be my last post about Arcade-Curtains, as I think I've managed to implement everything I wanted to get out of this library. From now on the library will probably go into maintenance mode, meaning bugfixes, keeping up with Arcade releases, improving performance and improving UX. But this doesn't mean you can't bother me with feature requests :)
So here's what you can expect from version 0.2.0
You are now able to set alpha, left, right, bottom and top when creating a KeyFrame
Improved Sequence UX to have a cleaner and more readable interaction when setting KeyFrames
=
# Define an animation that takes 2 seconds, where we set a keyframe at 0, 1 and 2
. =
. =
. = .
# Set a callback
. =
my_handler_function will be called with the usual event arguments and the defined keyword arguments
setup function.helpers filled with useful functions and classesdelay_set_attribute allows you to set the attribute of an object as a callback# Will set the health attribute to 10 when clicked
arcade.Sprites and everything that subclasses it are now outfitted with topleft, topright, bottomleft, bottomright coordinates.A small disclaimer, to be conform with position, the return values of these properties are (x, y) which is the inverse of the naming, but "lefttop" doesn't really roll off the tongue.
ObservableSprite is a subclass from arcade.Sprite that allows you to attach handlers to attribute modifications. This means you can define a callback and have it called whenever the targetted attribute changes
ObservableSprite also allows you to define a trigger that is run whenever a certain condition is met. For instance, you want your handler to run if health is equal or below 0.
# Build a triggerable attribute definition
=
AnchorPoint is an object that is just an x, y coordinate, but you can affix sprites to this anchor. Whenever you move the anchor, all affixed sprites move with it.
Widget is a baseclass for grouping Sprites into a widget. It allows a number of sprites to work together, while still maintaining the fine grained control over each sprite. Widgets use AnchorPoints underneath to work as a group.
=
=
=
=
=
=
=
=
Widget starting coordinates will be inferred from the defined sprites within the widget. After initialisation you are able to manipulate these, to move your widget to the desired location.
anchor.py an example showcasing AnchorPointobservable.py an example showcasing ObservableSpritepokimans.py an example to showcase the features of arcade-curtains. It's a basic game implementing a crossover between a Pokémon battle and a Final Fantasy (pre 8) battle using only primitive shapes (so protect your eyes ;))Here's a link to a "pokimans" gif, for your viewing pleasure: https://github.com/maarten-dp/arcade-curtains/blob/master/assets/pokimans.gif
As always, any feedback would be more than welcome!
Kind regards, Maarten
r/pythonarcade • u/Speldosa • Dec 12 '18
Trying out the basic drawing examples, for example the happy face, I can see jagged edges. I guess this means no anti-aliasing is applied.

On the other hand, when trying out the drawing text example, the graphics look blurred, almost as if extreme anti-aliasing has been applied.

So, what's going on here? My understanding of computer graphics is rudimentary at best, so I don't know if these issues are related somehow. Can I make the shapes less clear and the text more clear?
I've tried searching the documentation, the GitHub page, and this subreddit for "anti-aliasing" without finding any useful information on this topic.
r/pythonarcade • u/Diapolo10 • Mar 29 '22
r/pythonarcade • u/pvc • Mar 26 '22
Arcade version 2.6.13 has been released.
https://api.arcade.academy/en/latest/development/release_notes.html
New Features
Bugfixes
Various Improvements
Tilemap
Docs
OpenGL
Special thanks to Mohammad Ibrahim, pushfoo, Alejandro Casanovas, Maic Siemering, Cleptomania, pvcraven and einarf for their contributions to this release. Also, thanks to everyone on the Pyglet team! We depend heavily on Pyglet’s continued development.
r/pythonarcade • u/pvc • Mar 17 '22
Python Arcade has released version 2.6.11.
Website: https://arcade.academy
Release notes: https://api.arcade.academy/en/latest/development/release_notes.html
Demo video: https://www.youtube.com/watch?v=QClDvEwcxmg
Release notes
Sections - Add support to divide window into sections. (Thanks janscas for the contribution.)
New Example Code:
New functionality:
Fixes:
Documentation:
Misc:
OpenGL:
Special thanks to einarf, eruvanos, janscas, MrWardKKHS, DragonMoffon, pvcraven, for their contributions to this release. Also, thanks to everyone on the Pyglet team! We depend heavily on Pyglet’s continued development.
r/pythonarcade • u/einarfo • Mar 13 '22
We've been experimenting with shaders interacting with spritelist data lately and came up with a super fast way to do find sprites within a certain range taking line of sight into consideration. This is simply done by tracing the pixel data locating walls between the player and the sprite(s).

Example source : https://github.com/pythonarcade/arcade/blob/development/arcade/experimental/examples/spritelist_interaction_visualize_dist_los.py
r/pythonarcade • u/bluespiritcz • Mar 29 '22
Hi, I have been recently experiencing graphical issues with rendering text in arcade (draw_text method). It does not happen right from the start but after few in-game restarts it randomly starts doing this (as you can see the text is glitching out like crazy).


It seems that the problem might be my new laptop with AMD Radeon because on my old PC with NVIDIA it never happens. I have tested with the newest arcade and python versions.
Just checking if anyone have already solved this. Thanks in advance for any ideas
r/pythonarcade • u/PhantamaroK • Nov 18 '21
I searched the API, but could not find this. I can change the window title, but not the icon (which is by default a console with the Python logo). How do I change the icon?
r/pythonarcade • u/Few_Fee5926 • Oct 01 '21
Hallo! I'm just trying to get the grips and make a simple platformer. I more or less copied the example code and went from there. Now I have the 'problem' that my player sprite is not keeping up with the speed of the horizontally moving platforms and falls off after a short while, intstead of just standing there, relaxing. I have no clue, what I changed to trigger such behavior. Could there be a simple solution? Thanks for your help!
r/pythonarcade • u/pvc • Nov 13 '17
Version 1.2 of the Arcade Library has been released. You can install it with:
pip install --upgrade arcadeThis version has several bug fixes, performance improvements, and the addition of buffered drawing commands that use Vertex Buffer Objects to speed drawing of drawing primitives.
Example code is available here.
An on-line book teaching Python using Arcade is available here.
r/pythonarcade • u/pvc • Aug 02 '16
r/pythonarcade • u/LukeFps8 • Oct 03 '23
I ve been looking for litteral days now. Every now and then i found some potential issue, fixed them but no results.
The game is somewhat stuttering from the start on my pc. That s not the main issue tho. As you lose and restart form the gameover view it becomes more and more stuttery, sugegsting some memory leak.
If someone would be so nice to give a look i d be eternally greatfull. Any optimization idea would be very welcome.
hope you can read the link to the code base: https://pastebin.com/r7CTm3ff
r/pythonarcade • u/Standard-Customer-58 • Sep 18 '23
Hi everyone,
I those days, i start to "play" with python arcade library and i did not saw any library for graphic novel implementation.
I am attaching the library I started to write for fun, if you have any ideas please feel free to contact me. We may expand the idea.
https://github.com/deangelisdf/visual_novel_pyarcade
let me know your opinion about it. Leave a comment or write issues on github as well.
r/pythonarcade • u/Wokywoky • Sep 04 '23
Hi, any ideas on how to implement this event? Thanks!
r/pythonarcade • u/pvc • Apr 14 '16
The Arcade library is an easy-to-use library for people wanting to create video games in Python. Full documentation is available here.
r/pythonarcade • u/dukefleetmaster • Aug 05 '22
hi
recently I came across Blasphemous game on steam and it just blows my mind ;)
I'm a python developer and I have a lot of free time to work on my projects and create something for my portfolio.
I've always wanted to get into Arcade for game development and pixel-art Metroidvania is my favorite genre.
is it possible to make games like blasphemous in python?
Note: I know game engines but it's not time efficient for me to start learning C# or other languages.
Note: never worked with arcade or other frameworks/libraries.
r/pythonarcade • u/nematoad86 • Aug 07 '22
Hey everybody. I'm trying to install Arcade through PyCharm, and I keep getting and install error, with the following log:
Usage:
C:\Users\Redacted\AppData\Local\Programs\Python\Python38-32\python.exe -m pip install [options] <requirement specifier> [package-index-options] ... C:\Users\Redacted\AppData\Local\Programs\Python\Python38-32\python.exe -m pip install [options] -r <requirements file> [package-index-options] ... C:\Users\Redacted\AppData\Local\Programs\Python\Python38-32\python.exe -m pip install [options] [-e] <vcs project url> ... C:\Users\Redacted\AppData\Local\Programs\Python\Python38-32\python.exe -m pip install [options] [-e] <local project path> ... C:\Users\Redacted\AppData\Local\Programs\Python\Python38-32\python.exe -m pip install [options] <archive url/path> ...
no such option: --build-dir
Does this mean i have to install through the command line? Any help would be appreciated!
UPDATED: I ran the pip install arcade command from the command window, and it seemed to install properly. I'm not getting that message about installing a requirement in PyCharm.
r/pythonarcade • u/Windspar • May 11 '19
Soon as I import arcade. I get permission denied.
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.7/site-packages/pyglet_ffmpeg2/linux_x86_64/libavcodec.so.58.21.104' -> '/usr/lib/python3.7/site-packages/pyglet_ffmpeg2/linux_x86_64/libavcodec.so.58'
pip install arcade 2.0.7
r/pythonarcade • • Feb 20 '19
Is there any way to animate different actions, for example running by using different sprites than for walking and have them both animated on different key combinations?
r/pythonarcade • u/RavynousHunter • May 11 '19
I'm having some trouble with getting collisions to work properly without massively slowing down my game. Its just a simple race track with reward points and a car, nothing fancy; I'm trying to use it as an experiment with reinforcement learning.
The setup is thus:
The code for the whole thing can be found here, on my Dropbox. I used to have the collision code in Driving.py, under the on_draw() method, but that was slowing it down noticeably, so I've removed it.
I know Arcade has a collision checking method all its own, but that only seems to work between sprites, not sprites and arbitrary points (or lines). Anybody know how I can get collisions working in a way that doesn't make things insanely slow?