Passer au contenu principal
Bluvy Tube
Appuyez sur Échap pour quitter le plein écran
Volume m
/
i
Mode Cinéma t
f
/
The first pass of the vision system for my cozy mining game. This is calculated on a grid of 8x8px blocks for a more blocky feel Character art is placeholder, in the future they will be a rat 🐀 #gameDev #indie #indieGame #indieDev #noAI #ScreenshotSaturday #devlog #rat #soloDev #pixelArt #Unity

Raccourcis clavier

Espace K
Lecture / pause
← →
Reculer / avancer de 5 s
J L
Reculer / avancer de 10 s
0–9
Aller à 0 %–90 % de la vidéo
Home End
Début / fin
, .
Image précédente / suivante (en pause)
< >
Ralentir / accélérer
↑ ↓
Volume
M
Couper / rétablir le son
C
Sous-titres
F
Plein écran
I
Image dans l’image
T
Mode cinéma
?
Afficher cette aide

The first pass of the vision system for my cozy mining game. This is calculated on a grid of 8x8px blocks for a more blocky feel Character art is placeholder, in the future they will be a rat 🐀 #gameDev #indie #indieGame #indieDev #noAI #ScreenshotSaturday #devlog #rat #soloDev #pixelArt #Unity

LordMlekk

LordMlekk

@lordmlekk.bsky.social

S'abonner
0 vue Publié le 21/11/2026 13:07 0:17
#indiedev #screenshotsaturday #gamedev #indiegame #indie #pixelart #solodev #unity #devlog #noai #rat
The first pass of the vision system for my cozy mining game. This is calculated on a grid of 8x8px blocks for a more blocky feel Character art is placeholder, in the future they will be a rat 🐀 #gameDev #indie #indieGame #indieDev #noAI #ScreenshotSaturday #devlog #rat #soloDev #pixelArt #Unity
2 commentaires
?
an 8x8 grid for vision is a good trade for a cozy game. will the rat see the same blocks the player does?
Yup!

This is only below ground. When above ground, vision is unrestricted
I get this by calculating three visibility values for every block, and using the maximum to control an overlay shader
1: Calculate Line of sight.

Get all blocks that are visible from the player's location using Bresenham's Line Algorithm, and give them a visibility based on how close they are.
As they fade with distance, I only need to sample the blocks within a radius of the player.
Voir le post d'origine sur Bluesky
Lien copié dans le presse-papier

Connexion

Il est temps de faire une pause

Ça fait 30 minutes que vous enchaînez les vidéos : accordez-vous 5 minutes loin de l'écran. Levez-vous, étirez-vous, buvez un verre d'eau… Les vidéos vous attendront ici.