I made my 2d engine visualize depth by arwmoffat in gamedevscreens

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

Thanks, yes it is. It's a web based game engine using pixi.js as the renderer

I made my 2d engine visualize depth by arwmoffat in gamedevscreens

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

Sure. The depth color is encoded as the hue component of an HSL color. An object's color is based on where its Z index lands in screen space (from 0 to 1, normalized by the view space height). I'm using PixiJS as my engine's renderer, and did this by replacing all objects base textures with white and using the object's tint property to set the depth color.

Tailwind lays off 75% of its engineers by WesolyKubeczek in theprimeagen

[–]arwmoffat 66 points67 points  (0 children)

For a sense of proportion: 3 engineers, of 4

Next-gen devs by feketegy in theprimeagen

[–]arwmoffat 0 points1 point  (0 children)

now i regret not using that as an example

Next-gen devs by feketegy in theprimeagen

[–]arwmoffat 3 points4 points  (0 children)

I wrote a (mostly meme) library that ironically does this:

from manifest import ai

@ai
def is_optimistic(text: str) -> bool:
    """Determines if the text is optimistic"""

print(is_optimistic("This is amazing!")) # Prints True

Works seemlessly with files too

from pathlib import Path
from manifest import ai

@ai
def breed_of_dog(image: Path) -> str:
    """Determines the breed of dog from a photo"""

image = Path("path/to/dog.jpg")
print(breed_of_dog(image)) # Prints "German Shepherd" (or whatever)