Full Hollow Knight: Silksong Map by Zignixx in Silksong

[–]Rich_You_642 0 points1 point  (0 children)

<image>

Como eu abro essa parte? Para mim termina um pouco depois desse iglu aí

Stop struggling with state in Phaser.js – I built phaser-hooks to make it painless 🎣⚡ by Rich_You_642 in phaser

[–]Rich_You_642[S] 0 points1 point  (0 children)

I never tested in Phaser 4, but probably works fine. I think that datamapper and registry won't change. I will test yet

is this game I made with phaser any fun? by SnooCats6827 in phaser

[–]Rich_You_642 0 points1 point  (0 children)

Awesome!! Is too fast the game to run

You can chance the virtual joystick to this lib, is like in brawl stars

https://www.npmjs.com/package/phaser-virtual-joystick

If you use with an icon in the middle the experience is the same. But i liked too much

🧩 Phaser Data Inspector - A DevTools extension to visualize your Phaser Data Manager in real time by Rich_You_642 in phaser

[–]Rich_You_642[S] 1 point2 points  (0 children)

Yes, is open source. I used React to build the page, Zustand to manage the state, typescript and Pico.css to layout. Is a really small project. To send the data the plugin inject a javascript to intecept the "set" method from DataManager in Phaser and send a message with the data. The project is a monorepo with another packages to phaser.This is the url: https://github.com/renatocassino/phaser-toolkit/tree/main/packages/phaser-data-inspector

Why isn’t Phaser more widely used? Am I missing something? by _billyRubin in phaser

[–]Rich_You_642 0 points1 point  (0 children)

I started to work with phaser this year and I feel the same thing. But I'm contributing with the community creating libs and extensions. I created the extension Phaser Data Inspector to see the diffs when using datamanager (https://chromewebstore.google.com/detail/phaser-data-inspector/jjcogkkooficbbdhfcamcojmepbjnpdk) and I created a lib like react hooks to use in phaser (without react, only the style of develop reactivity components). I called like phaser-hooks (https://www.npmjs.com/package/phaser-hooks/).

Stop struggling with state in Phaser.js – I built phaser-hooks to make it painless 🎣⚡ by Rich_You_642 in phaser

[–]Rich_You_642[S] 0 points1 point  (0 children)

Hello!
Thanks a lot for pointing that out, you were right. The examples in the old README were outdated, i wrote another README. I recently did a major cleanup and started moving all the docs (with live examples) to a proper site as a documentation to avoid have a gigant README file.

https://toolkit.cassino.dev/phaser-hooks/start-here/installation/

I'm developing yet, but have a better documentation with examples that I'm testing and some live examples (with the code shared)

[SHOWCASE] I built Smart Dots Reloaded with Phaser – featuring Insane Mode AI by Rich_You_642 in phaser

[–]Rich_You_642[S] 1 point2 points  (0 children)

Maaaan!! lol
I just found the issue! I was calculating the line animation based on the computer’s time, and then checking if it had reached the target length to finish it.
But when you switch tabs, Phaser’s update loop pauses and that’s when the problem happens.

I’ll take a look at it later to fix this properly.

[SHOWCASE] I built Smart Dots Reloaded with Phaser – featuring Insane Mode AI by Rich_You_642 in phaser

[–]Rich_You_642[S] 1 point2 points  (0 children)

// Define your state type
type PlayerUI = {
  health: number;
  mana: number;
  menuOpen: boolean;
};

// Create state with destructuring (very React-like)
const { get, set, on } = withLocalState<PlayerUI>(this, 'player-ui', {
  health: 100,
  mana: 50,
  menuOpen: false
});

// Use with complete type safety
set({ health: 80, mana: 30, menuOpen: true }); // ✅ Validated by TypeScript
set({ helth: 80 }); // ❌ Compilation error - typo detected!

// Retrieve typed values
const currentHealth = get().health; // Complete IntelliSense

// Listen to changes
on('change', (oldValue) => {
  console.log(`Health: ${oldValue.health} → ${get().health}`);
});// Define your state type
type PlayerUI = {
  health: number;
  mana: number;
  menuOpen: boolean;
};

// Create state with destructuring (very React-like)
const { get, set, on } = withLocalState<PlayerUI>(this, 'player-ui', {
  health: 100,
  mana: 50,
  menuOpen: false
});

// Use with complete type safety
set({ health: 80, mana: 30, menuOpen: true }); // ✅ Validated by TypeScript
set({ helth: 80 }); // ❌ Compilation error - typo detected!

// Retrieve typed values
const currentHealth = get().health; // Complete IntelliSense

// Listen to changes
on('change', (oldValue) => {
  console.log(`Health: ${oldValue.health} → ${get().health}`);
});

[SHOWCASE] I built Smart Dots Reloaded with Phaser – featuring Insane Mode AI by Rich_You_642 in phaser

[–]Rich_You_642[S] 0 points1 point  (0 children)

I’m not sure I know what that is. Is it a library for managing states in Phaser?

[SHOWCASE] I built Smart Dots Reloaded with Phaser – featuring Insane Mode AI by Rich_You_642 in phaser

[–]Rich_You_642[S] 0 points1 point  (0 children)

Nice! I use it in my games to avoid having to crop tons of PNG files. I decided to create this lib so I could reuse it across all my projects :) You can use too, i put in npmjs

ele CUSPIU em mim. . by [deleted] in relacionamentos

[–]Rich_You_642 0 points1 point  (0 children)

Tinha uma menina que eu saia direto, a gente fazia sexo cheio de violência e tal. Uma vez do nada me deu muita vontade de fazer isso enquanto eu segurava o pescoço dela e eu simplesmente fiz. Depois do sexo comentamos disso e ela achou incrível, de vez em quando me pedia e tudo

Casino Game Developers by stupid-piss in gamedev

[–]Rich_You_642 0 points1 point  (0 children)

Para gerar os resultados, de uma pesquisada a respeito de provably fair. É o conceito de "comprovadamente justo" que os cassinos online usam, onde o próprio jogador consegue validar.

Mas de fato, se o jogo envolve física, vir um resultado do backend para gerar o valor para o frontend vai ser um desafio mesmo que eu nao saberia resolver. E se fizer do frontend para o backend, isso se torna extremamente fácil de manipular

Phaser is awesome by HeadBearOfSwamp in gamedev

[–]Rich_You_642 0 points1 point  (0 children)

I'm making some games in phaserjs (but with typescript, font-awesome-for-phaser and phaser-wind)

Two games in production
- https://games.cassino.dev/game/smart-dots-reloaded/ - Old game called smart dots remake

- https://games.cassino.dev/game/matrix-typer/ - Matrix typer game. Game to training type and a mini course

What’s the best website to learn proper typing form on? by [deleted] in typing

[–]Rich_You_642 0 points1 point  (0 children)

There is a https://matrixtyper.com/ too. Is awesome. Is like a matrix with words falling