Skip to content

u/Both_Introduction_28

In this archive from Dec 2024 to Dec 2026

0
posts
283
comments
0
media
362
score
51 saved before deletion
Both_Introduction_28Deleted · saved before deletion

It’s not a good idea to change something without player noticing.

Try to add clear for players behavior.

For example, the boss add clouds to hide digits or create new closed islands with bombs on already cleared space.

But actually these examples also could be very annoying for players, so better to find more rewarding mechanics.

1 points
Both_Introduction_28Removed · saved before deletion

Every day I see tons of posts how ai devs somehow were oppressed by other devs.

Some aspiring devs are just acting like drama queens, because no one understands the value of their flabby bird clones.

If you want to make game faster, you can use already exists game templates for price comparable to ai subscription. For example:

https://assetstore.unity.com/listing#cf-ec_category=templates

0 points
Both_Introduction_28Deleted · saved before deletion

The transition from manual sprite authoring to a generative AI pipeline—where the final output is dictated by the rigid mathematics of the engine—is an outstanding example of how technical constraints prevent neural network chaos. You didn't just automate art creation; you built a deterministic compiler where every pixel carries a strict responsibility for its behavior during rendering.
**Architecture of Constraints and Indexed Colors**
The decision to retain a 64-color palette and the (ramp row, step) system as a foundation is what made the pipeline viable. AI generators think in continuous space, where a pixel is just a color. In your engine, a pixel is an *address* in a data structure. Abandoning force_colors in favor of the more powerful PixelLab V3 model, followed by aggressive quantization, proved to be the only correct path: it is always better to extract good geometry from a strong model and force it into your color space algorithmically than to force a weak model to generate bad geometry in the right palette.
**Morphological Processing and the "Powder Pass"**
The observation that boundaries between details *must* merge (like a hat flowing into its band) demonstrates a profound understanding of pixel-art aesthetics.
* Neural networks inherently leave behind speckle noise and excessive detailing typical of compressed photos or 3D renders.
* The reflected 2×2 morphological open/close pass elegantly solves this purely mathematically, avoiding unpredictable ML filters. The art here lies in forcing the code to ignore semantic object boundaries to achieve the visual monolith of a sprite.
**Normal Generation**
Automatically assigning height maps (domes, folds, flats) based on connected regions of quantized materials is a neat algorithmic trick. You are recovering 3D information from a 2D silhouette using a role-based heuristic. The fact that the result "looks strange as an image, but correct in a lit room" validates the cardinal rule of tech art: shader data does not need to look pretty; it needs to be functional.
**The Identity Problem**
This is the conceptual climax of the entire pipeline. Attempts to use k-means, GMM, or spatial graphs to separate materials sharing the same color (shirt and shorts) were doomed because clustering algorithms look for differences where mathematically none exist.
* **Paradigm Shift:** You stopped trying to extract semantic meaning from pixels and offloaded the responsibility to the pre-authored structure of the palette itself. Shared grays darken synchronously simply because they physically represent the same illumination level, even if they are semantically different pieces of clothing. Identity is defined by the static contract of the palette, not AI hallucinations.
**Takeaways and Composite Characters**
Your thesis that "prompts are requests, not constraints" is a fundamental rule for integrating generative AI into any production pipeline. AI supplies the raw material, but the code dictates the contract.
Regarding the open challenge with layered/swappable parts:
* Generating layers separately will inevitably break your Powder Pass. If a jacket and a torso are rendered and quantized in isolation, their edges will not merge naturally through morphology, bringing back the disjointed "paper cutout" effect.
* A potential solution could be generating the character as a single mesh to preserve lighting and boundary merging, followed by automatic zone masking to create clipping alpha channels *before* final quantization. This allows the normals system to perceive the parts as a unified whole during baking while retaining runtime layer swapping.

**Strict Determinism as the Foundation of Stability**
The byte-for-byte verification approach in automated tests introduces a level of engineering discipline rarely seen in 2D indie development. Protecting assets at the continuous integration level eliminates "floating" lighting bugs. If even a single pixel shifts after running the pipeline under reference neutral light, the build fails. This elevates visual style to a provable mathematical theorem. Quality control is no longer reliant on subjective observation; it rests entirely on 25 hardcoded scenarios where any unplanned mutation is immediately rejected.
**Shader Mathematics and Addressing**
Applying tangent-space normals to 64px sprites completely shifts the 2D rendering paradigm. Instead of relying on standard lighting materials, a custom shader built for Universal Render Pipeline (URP) acts as an index navigator through pre-defined arrays.
* **Decoupling from Color:** The shader does not multiply the light source color with the pixel color. It takes the light intensity (via the dot product of the light vector and the normal) and uses it as a discrete step within a specific ramp.
* **Shadow Control:** The strict rule of falling back to the outline entry when illumination drops below a threshold guarantees the character won't look "muddy" in the shadows. The sprite collapses into a clean black silhouette, preserving the classic pixel-art aesthetic without dirty midtone artifacts.
**Runtime Architecture for Composite Characters**
Solving the layered parts problem requires shifting a portion of the pipeline from offline generation to the engine's runtime. If a jacket and pants are rendered as separate, independent sprites, they lose coherence during the Powder Pass, and normal boundaries will no longer align.
An elegant solution within a C# architecture involves a two-step assembly process:
* **Unified Base Silhouette:** The AI generates the character as a single cohesive mesh to preserve boundary merging and normal map continuity.
* **Layers as Index Masks:** Individual equipment pieces are not stored as finished images, but as ScriptableObjects containing zone bitmasks and new ramp row indices.
* **Asynchronous Compositing:** When equipment changes, reactively catching state updates via R3, a background texture rebuild is triggered using UniTask. A specialized render pass applies the new jacket's mask over the base silhouette. The shader overwrites only the material index (ramp row), perfectly preserving the original (step) illumination and the normal data of the base body.
By doing this, the lighting math continues to operate on a single monolithic data array, while the game logic gains the necessary customization flexibility without breaking the rigid contract between the pixels and the palette.

2 points
Both_Introduction_28Deleted · saved before deletion

Might be better to remove pillars. Electric spears charge cells with electricity. If spears touch a pool, it becomes electrified, but boss also takes damage and scatters orbs.

To defeat the boss players collect orbs and transfer them to matching signs on the floor around pedestal. These signs light up.

The boss evolves and starts throwing dark magic orbs at the player. Orbs reflect from walls and can return to the boss. The player can collect them and transfer to pedestal.

The boss evolves and starts flying after the player, hitting him with a staff. After two strikes the boss stops and begins casting a spell, the big red aim grows beneath the player and large rocks fall from the sky. Players can gather rock shards and transfer them to the pedestal.

After pedestal has collected all the energy, the player can lure the boss to the charged pedestal to defeat the boss. And defeated boss falls at the player’s feet.

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.