Tipa, to templeofelementalevil
@Tipa@gamepad.club avatar

ADVENT: Twisty Passages, All Alike

A pirate stole our treasure! Time to steal it BACK. But first, we have to find our way through one of the most notorious mazes of all time...

https://chasingdings.com/2024/05/09/advent-twisty-passages-all-alike/

villares, to python
@villares@ciberlandia.pt avatar
minioctt, (edited ) to python Italian

Questa voce fa parte 1 di 4 nella serie Troppo Cloud Gaming

Sono sicuramente un po’ paxxerella per iniziare nuovi progettini mezzi complicati ancora prima di finire i precedenti, ma che ci voglio fare? Quantomeno, a ‘sto giro ho effettivamente portato , il programma iniziato ieri, ad uno stato di completezza, tant’è che da ora penso non avrò alcun intoppo ad usarlo… e quindi l’ho anche rilasciato già stasera pubblicamente con tanto di README quasi logorroico (il link di stamattina era privato): https://octt.itch.io/framenx 🪟

https://octospacc.altervista.org/wp-content/uploads/2024/05/screenshot_2024-05-05-02-14-47-843_io2733305805360369156-960x987.jpgLa UI è ancora grezza, ma ho migliorato i messaggi a schermo, aggiungendo avvisi a scomparsa quando si verifica un errore o viene fatta un’azione (qualcuno l’ho dimenticato però oooops, dovrò metterlo, ma poca roba). Funziona in ogni caso solo con la tastiera, perché il mouse è dannoso e le hitbox sarebbe uno sbattimento in più per nessun buon motivo, dato che comunque questa per ora è una solo PC. (Ormai si sta costruendo una lore dietro questa interfaccia, ops.) ☠️In realtà sotto la scocca quella UI è comunque più complicata di quanto sembra, anche se è relativamente semplice, perché in primis già solo per le notifiche ho dovuto implementare tutto un sistema di coda… poi ho dovuto mettere il rendering video su un thread separato, perché l’accesso alla camera rallentava tutto il loop e quindi avrebbe inficiato sulla lettura degli input… ma spostarmi su un thread di sfondo ha introdotto non pochi casi limite strani che ho dovuto sistemare con ancora più codice… Comunque relativamente poco , perché il è simpatico e non è stato creato da gente che vuole vedere gli altri programmatori impiccarsi. 🦍

Btw, ho continuato a trovare altri problemi in … Innanzitutto, un bug strano con lo stack dei joystick (cioè controller da gioco in generale, direi che il nome è scelto malino) che fa si che questi non mandino più eventi dopo essere stati inizializzati se non se ne tiene qualche reference nel codice (come una variabile assegnata che non muore), come se fossero levati dal garbage collector altrimenti… stranissimo. E poi, il fatto che per riprodurre il suono di dispositivi di input audio, tra metodi non wrappati e quindi richiamabili solo con la API grezza di SDL2, stack audio buggato in generale e comandi che letteralmente non sortiscono effetto, altri comandi che invece causano segfault alla chiusura del … mi pare di stare programmando con una tempesta di raggi cosmici addosso. Ciò non lo gradisco. 😾

https://octospacc.altervista.org/2024/05/05/framenx/

minioctt, (edited ) to gaming Italian

Questa voce fa parte 2 di 4 nella serie Troppo Cloud Gaming

Ieri ho effettivamente provato un po’ il Switch dal 3DS in portatilità, alla fine, e… che dire. 7/10. Certo, ogni tanto la connessione fa scherzetti e il gioco inizia a freezare per un po’, ma nel complesso si gioca con un lag accettabile e un video senza strani artefatti, veramente apprezzabile. Devo però capire perché in certi rari momenti il client crasha completamente invece di riuscire a ristabilire la connessione, e temo anche la batteria del 3DS si appiattisca troppo velocemente con questa … ma vabbè, a sistema consolidato potrei anche usare il telefono. 🐚

Visto che voglio provare meglio il setup, mi sono portata avanti e ho fatto un programmino per che legge direttamente gli input del gamepad virtuale e li invia alla ; quindi, eliminando quegli altri due programmi necessari, sostituendoli con uno solo. La finestra inoltre visualizza il video da dispositivi di cattura standard, e quando lo implementerò riprodurrà anche audio, quindi sostituirà anche il riproduttore multimediale… per ora non ho ancora la scheda di cattura HDMI, quindi devo ancora usare SysDVR, ma almeno mi mostra il video della webcam (che mi serve per navigare nei menu di sistema, il DVR non lo trasmette), quindi già scendo da 4 app e finestre a solo 2. ✨️

https://octospacc.altervista.org/wp-content/uploads/2024/05/image-1.pngImplementare la lettura degli input del controller, e l’invio al demone sys-botbase tramite socket TCP, è stato un po’ intricato, ma alla fine il codice è venuto pulito, i tasti rimappabili tramite file config, e sorprendentemente sembra tutto ben funzionante dal primo momento… Nel senso, i comandi sembrano rispondere bene senza particolari accorgimenti; anzi, anche meglio di NXController, perché io invio direttamente i valori degli stick analogici alla console, mentre lui deve leggere valori rimappati alla tastiera e quindi tutti digitali. In effetti non ci avevo pensato quando mi era venuta questa , ma effettivamente ho migliorato la mia anche in questo modo, ora ho input più precisi. 🤏️Volevo inizialmente usare Ren’Py, ma ho subito scoperto che non include funzioni per accedere ai dispositivi video, né tantomeno ha la classe camera nella sua implementazione di , quindi… ho usato semplicemente Pygame, e in poche righe di codice funziona già tanta roba, anche se la UI non è delle migliori. Dovrò investigare se davvero non ci sarebbe stato verso di usare l’altro engine oppure si, perché potrebbe tornare utile in futuro. Ancora versione molto WIP, diversi bug da sistemare, ma almeno l’ho già caricata … poi creerò anche dei pacchetti standalone (che includono già e le librerie) per Windows e Linux. L’ho chiamato comunque, meglio evitare qualunque pretesto di violazione del trademark di per il nome … 🚨️

Ma, ovviamente, non era un mio secondario se non saltava fuori un inaspettato mentre programmavo e testavo… il codice che controlla la versione dell’OS di pygame.camera è rotto su Windows Server, e quindi l’inizializzazione fallisce… evviva. L’ho identificato e sistemato subito, ho anche inviato la PR , quindi non è stato un vero problema, però… che cazzo, non è possibile che tutto quello che finisce in mano a me si rompe… trovare bug in librerie così utilizzate e famose senza fare nulla di particolare non è roba da tutti, eppure ormai siamo ad uno a settimana, e chissà cosa mi riserva il futuro. 💣️

https://octospacc.altervista.org/2024/05/04/framionx/

renedudfield, to rust
@renedudfield@fosstodon.org avatar

Lovely sunny day here today. Yesterday it felt like all the gnomes came out of their winter caves. Today pure joy.

Got back from park, and played around a bit with #direct3d and #rust. Got a window up! Found people who have done X11, Wayland and MacOS too. Glad to not be blazing any trails, but didn’t try any of that out.

Decided instead to hack on an old game called Zanthor. Giant castle powered by steam. Want to finish off a few issues with it running on #Python the Third.

renedudfield,
@renedudfield@fosstodon.org avatar

Uploaded a quick little video for #Zanthor.

https://youtu.be/vhgqkVwV3_o?si=hjaIg4Ll8F1zaUdk

It was made in a week with #python and #pygame for a game jam in 2006. Was pretty fun! Two of us in Melbourne, and two in Colorado.

villares, to python Portuguese
@villares@pynews.com.br avatar
villares,
@villares@ciberlandia.pt avatar

@villares is cool, but I don't think it is good to make interactive stuff with it, is cool but interaction with that inherits its setup/draw/events structure from , to me, feels even easier. Maybe it is because I'm so used to it... Anyway, check the code for this shapely exploration above and make your own conclusions!

Teckids, to python German
@Teckids@bildung.social avatar

Die Anmeldung zu unserer Sommerfreizeit Hack'n'Sun in ist eröffnet 🥳!

📆 15. bis 19. August 2024
🏕️ auf dem Jugendzeltplatz Bonn
🚸 und von 9 bis 15 Jahren

💡
🎮
🏐
🐸 Besuch auf der @FrOSCon

Noch mehr Hashtags und Emojis 😜 ? Oder hier alles über Hack'n'Sun nachlesen und anmelden:

https://hacknsun.camp/

:boost_ok:

Kinder beim Programmieren mit Laptops an einem Lagerfeuerplatz
Niklas mit Kochmütze verteilt Crêpes an Kinder

Teckids, to python German
@Teckids@bildung.social avatar

Der erste Tag der ist vorbei, gleich geht es zum Social Event.

Dort werden wir mal im Team resümieren, wie die Jugend-Workshops von @tuxilio, @robert, @lukasw, @pinguin und Florian über , , und so gelaufen sind, und was es am Stand für interessante Gespräche gab.

Falls ihr euch zu uns setzen wollt, haltet nach Py und Thon, den beiden Plüschschlangen, Ausschau ;)!

Close-Up von zwei Kinderhänden, die an einem ESP8266 auf einem Breadboard mit LEDs basteln
Foto über die Schulter eines Mädchens, das eine Tile-Map auf einem Laptop editiert. Man sieht den Editor Tiled mit einigen Plattformen zum Springen.

villares, (edited ) to random Portuguese
@villares@ciberlandia.pt avatar

Impressive as always, @gwidion can make run inside a window... https://stackoverflow.com/a/55763675/19771

villares, (edited ) to random Portuguese
@villares@ciberlandia.pt avatar
jeff, to python
@jeff@phpc.social avatar
claras_universe, to python
@claras_universe@ieji.de avatar

Making some decent progress with my lil text-based game inspired by Seedship. I found the urwid TUI lib today and it's pretty fun to mess around with :o In the game you will play an AI controlling a colony ship with frozen colonists. You jump from planet to planet, encountering events in between that will challenge you with tough decisions. You will have to choose which planet to settle on before you're too damaged or even destroyed c:

spencer,
@spencer@nrw.social avatar

I created a new public repository of my WIP, maybe you'll find use of it:
https://gitlab.com/hmoe/heytaxi-py

@claras_universe

eniko, to gamedev
@eniko@peoplemaking.games avatar

I've released the second episode of Coding History! This episode teaches the basics of 3D, and shows that anyone can build their own basic 3D engine armed only with simple concepts and a little bit of math: https://www.youtube.com/watch?v=KxMYroGay8c

Please enjoy and consider boosting if you'd like to support an educational video series about old school 80s and 90s 3D 🙏

jcgraybill,

@eniko What a great explanation! I've wanted to learn 3D graphics and perspective for a while. I followed along in , and look at that - it's practically DOOM.

Screen capture showing VSCode and a pygame window moving around in a simple wireframe 3D world.

pygame, to python

Python the Third porting tip for . When cutting up a number into little pieces, be aware. Your single sword / is not enough. You need double sword //. Because the Second kept your numbers as int with single sword. But its heir leaves numbers floating unless you // them.

TLDR; use double sword // with Python the Third.

pygame,

Another porting for old games.

Python has a cache of small numbers so the objects are actually the same. So the identity comparison works for small numbers.

a = 768
b = 768
a is b == False

a = 76
b = 76
a is b == True

You might encounter this when comparing “e.type is KEYDOWN”. This worked with pygame 1.9.6… because the numbers used were lower. pygame 2 uses larger numbers causing the comparison to fail.

Tip: avoid using “is” when “==“ will do (which is almost always).

pygame, to Games
donwatkins, to vscode
@donwatkins@fosstodon.org avatar

Learning how to use with | So much to learn!

villares, to python Portuguese
@villares@ciberlandia.pt avatar

Preciso trabalhar no doutorado, mas acabei de achar um lance massa que preciso estudar para mostrar 28/11 no Sesc na atividade de simulações biológicas https://github.com/Nikorasu/PyNBoids

pygame, to python

solarwolf 1.6.0 is out. It's one of the earliest games released. A spin on an old arcade game. If you like these arcade games where you can just play immediately, this one is for you.
https://www.pygame.org/project/5658/8224

How to play?

python3 -m pip install solarwolf -U --user
python3 -m solarwolf

kantel, to gamedev German
@kantel@mastodon.social avatar

Freie Tiles und Sprites (nicht nur) zu Halloween

Ich habe mir das anfängerfreundliche Tutorial »How to Make a Google Chrome T-Rex Style Sidescroller In Godot« von Coding With Russ mal angeschaut1, bevor mich Google wegen meines Adblockers aus YouTube rausschmeißt. https://kantel.github.io/posts/2023102502_free_game_assets/

Taffer, to steam
@Taffer@mastodon.gamedev.place avatar

Just got contacted by a scammer on Discord, using a hijacked account from the community. Apparently they'd reported me "by accident" to Steam for scamming them, and got their friends to report me too, and now felt bad about it.

They stopped talking to me after I told them to eat the rich instead of scamming people.

Follow me for more tips on spotting phishing? 🤷

Here's the fake-assed screen shot they sent me:

entikan, to random

Now I'll write a little in to relax.

pygame, to python

Overall usage of is up a lot over the last 4 months, but 3.11 is now the most popular finally. Now at 300% of python 3.10. Python 3.8 was the leader until only the last couple of months. What happened to poor 3.9? It never caught on for some reason.

kantel, to python German
@kantel@mastodon.social avatar

Zurück zum Hacken mit Code: microStudio, Python, Pygame und/oder Py5

Wie gestern schon angedeutet möchte ich für ein paar Tage eine Pause bei meinem Twine- und Ren’Py-Projekt einlegen. https://kantel.github.io/posts/2023092001_game_engines_und_mehr/

pygame, to random

2.5.2

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • GTA5RPClips
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • khanakhh
  • Youngstown
  • ngwrru68w68
  • slotface
  • everett
  • rosin
  • thenastyranch
  • kavyap
  • tacticalgear
  • megavids
  • cisconetworking
  • normalnudes
  • osvaldo12
  • ethstaker
  • mdbf
  • modclub
  • Durango
  • tester
  • provamag3
  • cubers
  • Leos
  • anitta
  • lostlight
  • All magazines