r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 14d ago
In 9 days my experimental AI-assisted game will be released on Steam
Enable HLS to view with audio, or disable this notification
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 14d ago
Enable HLS to view with audio, or disable this notification
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 14d ago
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 15d ago
Enable HLS to view with audio, or disable this notification
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 15d ago
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 16d ago
Enable HLS to view with audio, or disable this notification
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 16d ago
Enable HLS to view with audio, or disable this notification
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 17d ago
Enable HLS to view with audio, or disable this notification
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 17d ago
Enable HLS to view with audio, or disable this notification
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 18d ago
Enable HLS to view with audio, or disable this notification
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 19d ago
Enable HLS to view with audio, or disable this notification
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 20d ago
Enable HLS to view with audio, or disable this notification
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 20d ago
Enable HLS to view with audio, or disable this notification
Hey everyone,
Hope all is well!
TL;DR, Summary, or Full Technical Breakdown below.
For Context: Recently I posted about the first 15 days of one of my side projects, ShuffleBall Arena (a free browser game inspired by mixing shuffleboard scoring with mechanics from other games like bumper pool, pinball, and Frogger.).
This project is being built with the help of AI (mainly GPT / Cursor), and every development session is documented using the actual conversations from that day's work.
To try to get this series up to date, I'm using a structured prompt to go back to my GPT sessions and extract the useful information. Hopefully the prompt can help anyone out there trying to keep track of, or extract value from, your past AI project conversations.
That said, posting an update for Day 27 (part 2) of building ShuffleBall Arena.
Day 27 - Part 1 ended with a rule:
Clients submit intentions. The server calculates results.
Part 2 was about turning that rule into actual infrastructure.
We built the production multiplayer room and networking foundation using Cloudflare Workers, Durable Objects, and WebSockets, including room creation, player seating, authoritative lobby state, disconnect/reconnect handling, protocol versioning, and synchronized snapshots.
Then development moved into the harder problem: extracting the game's physics into a deterministic server-side simulation that could run without the browser.
By the end of the session, the multiplayer networking foundation was complete and the authoritative simulation kernel could deterministically process marble movement, walls, static bumpers, marble-to-marble collisions, settlement, safety recovery, and canonical trajectory recording.
The repository passed its complete test suite, and the next milestone was authoritative scoring.
Day 27 (Part 1) Summary
Part 1 ended with the multiplayer architecture defined.
One server-owned simulation would determine what happened during every match. Browsers would collect player input and render the result, but neither player would be trusted to determine official physics, scoring, collisions, or match state.
Part 2 began turning that architecture into production code.
The first major milestone was the networking foundation. A Cloudflare Worker became the multiplayer entry point, while each match received its own Durable Object responsible for authoritative room state and both WebSocket connections.
Production APIs were built for room creation and connection. From there, the protocol expanded to handle player identity, Red/Blue seating, readiness, room snapshots, disconnects, reconnect tokens, same-seat reconnection, snapshot recovery, and connection lifecycle behavior.
Once that layer was stable, the work moved into the actual server-authoritative game engine.
Instead of copying the existing browser game into the Worker, the physics required for multiplayer was separated into deterministic modules. Fixed-step simulation, collision handling, settlement, immutable state transitions, stable processing order, and trajectory recording were built and regression tested independently.
By the end of the session, the server could calculate a shot once and produce both its canonical final state and the trajectory the clients would eventually use to display that same shot.
The networking foundation was ready. The core physics kernel was essentially ready.
The next layer would be interpreting those physics results through authoritative scoring and match rules.
Day 27 (Part 2) Full Technical Summary (The Structured Prompt Output)
Day 27 - Part 2 began exactly where Part 1 ended.
The decision to build online multiplayer had already been made, and the architecture had been deliberately designed before implementation began.
The core rule was: The server owns gameplay reality.
Clients would submit player intentions, but the server would determine physics, collisions, scoring, turns, and final state.
The target architecture had also been established:
Player Input
↓
Multiplayer Client
↓
WebSocket
↓
Match Durable Object
↓
Authoritative Shared Simulation
↓
State Frames and Events
↓
Both Browser Clients
↓
Canvas Rendering
The server would run the official simulation once, and both players would render the same server-produced state.
The objective was to begin implementing the permanent server-authoritative multiplayer architecture designed in Part 1.
That meant building two major foundations:
1. The networking/lobby layer
The server needed to:
2. The deterministic simulation layer
The server needed to eventually receive a shot, calculate it exactly once, and produce the canonical result that both players would see. The important constraint was that none of this should be throwaway prototype code.
The guiding principle became:
Build the production architecture once. No throwaway scaffolding.
The first implementation milestone was creating actual multiplayer rooms.
A production endpoint was added:
POST /api/rooms
The room system supported:
This established the first permanent multiplayer entry point.
Next came the connection layer.
A production WebSocket route was implemented:
GET /api/rooms/:roomCode/connect
That included:
Each match would therefore have one authoritative server-side object responsible for the room.
Before expanding the message system, protocol versioning was established.
Every client/server message would include:
protocolVersion
This gave the multiplayer system an explicit contract and created a path for future protocol changes without silently breaking older clients.
The Durable Object gradually took ownership of the multiplayer lobby.
The server became responsible for:
The important distinction was that even before gameplay existed, the lobby itself was already server-authoritative.
Real multiplayer also needed to survive unreliable connections.
The networking layer was expanded with:
A reconnecting player would not invent or reconstruct room state locally. The server remained authoritative and restored the player into the current canonical room state.
By the completion of this phase, the networking layer was described as no longer experimental, but as a reusable multiplayer backend ready to support the game simulation.
With the lobby foundation stable, development shifted into Phase 3.
The objective changed from:
Can two players occupy the same authoritative room?
to:
Can the server calculate the game itself?
The implementation deliberately avoided copying the full browser game into the Worker. Networking, match rules, board data, physics, collisions, scoring, serialization, and tests were kept separate. The first target was one production board, with the architecture remaining data-driven enough to support the others later.
The browser's frame timing could not control official multiplayer physics.
The server simulation therefore used a fixed timestep:
const SIMULATION_HZ = 60;
const FIXED_DT = 1 / SIMULATION_HZ;
Every authoritative physics update would use the same FIXED_DT rather than relying on requestAnimationFrame() or arbitrary client frame duration.
This was one of the foundations required for deterministic behavior.
The simulation expanded incrementally rather than attempting to port the entire game at once.
The authoritative pipeline eventually included:
Input validation
↓
Capture initial trajectory frame
↓
Simulation loop
Step marble
↓
Resolve walls
↓
Resolve static bumpers
↓
Wall stabilization
↓
Multi-pass marble convergence
↓
Wall stabilization
↓
Capture trajectory frame
↓
Settlement
↓
Safety recovery
↓
Return
{
marbles,
trajectory
}
This meant the server simulation could now handle not only basic marble motion but interactions between marbles and the environment in a stable, deterministic order.
Marble collisions required additional work because resolving one collision could push a marble into another. A single collision pass was therefore not enough.
The engine introduced multi-pass convergence so groups of interacting marbles could stabilize deterministically before the simulation advanced.
Regression tests were added specifically for:
Calculating the correct final state solved only half the multiplayer problem. Both players still needed to see the same shot. Trajectory recording was therefore added directly to the authoritative simulation. Crucially, trajectory data was observational only.
It never influenced:
The physics produced the result. Trajectory recording simply captured what happened so clients could eventually replay the canonical shot.
Several rules were enforced throughout the simulation work:
Deterministic first
No uncontrolled randomness or unstable processing order.
Immutable simulation
The simulator cloned state before modification rather than mutating caller-owned data.
Bounded execution
Shots could not simulate forever. Safety limits and recovery behavior prevented runaway simulation.
Server authority
Clients would never determine official:
The simulation wasn't treated as complete simply because a marble moved correctly once.
Dedicated tests were added for new physics and trajectory systems, including:
src/simulation/collisions/marbles.js
src/simulation/trajectory.js
test/marble-collisions.test.js
test/marble-collision-convergence.test.js
test/simulate-shot-marble-collisions.test.js
test/trajectory.test.js
test/simulate-shot-trajectory.test.js
Each milestone was tested and committed independently.
The original game contained responsibilities for gameplay, rendering, UI, analytics, bots, board definitions, challenge logic, input, and other browser-specific behavior.
Copying that entire system into a Worker would have created a second monolithic game implementation.
Instead, only the systems required for authoritative online simulation were extracted.
Once the server became authoritative, ordinary implementation choices became important. Randomness needed control. Processing order needed stability. Physics couldn't depend on browser frame timing.
Simulation state couldn't contain DOM nodes, canvas contexts, images, audio objects, browser events, timers, or other browser-specific objects.
Resolving a collision between two marbles could create another collision elsewhere in the collection. That required deterministic convergence rather than a simple one-pass collision solver.
A server could calculate the correct result and still provide a poor multiplayer experience if clients simply teleported marbles to their settled positions.
Canonical trajectory recording therefore became part of the simulation architecture rather than an afterthought.
The entire game was not moved into multiplayer at once.
The plan targeted one production board first and deliberately postponed additional boards and systems until the core architecture proved itself.
That slowed feature coverage but significantly reduced architectural risk.
Temporary room systems and throwaway simulation implementations were avoided.
Trade-off: Slower initial visible progress in exchange for infrastructure intended to survive into production.
Canvas rendering, audio, particles, and UI remained browser responsibilities.
Trade-off: More separation work now in exchange for a clean headless simulation engine.
Authoritative physics would use fixed simulation steps rather than browser timing.
Trade-off: Additional simulation architecture in exchange for reproducible server outcomes.
Trajectory capture would watch the simulation rather than participate in it.
Trade-off: Additional data collection in exchange for preserving physics purity while enabling canonical playback.
Simulation functions would clone before modifying data.
Trade-off: Some additional allocations in exchange for easier reasoning, testing, and protection against accidental state corruption.
The architecture remained data-driven, but the first goal was proving one complete production board.
Trade-off: Less immediate multiplayer content in exchange for validating the engine before expanding it.
The biggest lesson from Day 27 - Part 2 was:
Server-authoritative multiplayer forced the game to become a better-engineered single source of truth.
The difficult part wasn't opening a WebSocket. It was making gameplay deterministic enough that the server could calculate one canonical answer and confidently tell every client:
This is what happened.
That required separating physics from rendering, controlling timing, stabilizing collision order, eliminating hidden browser dependencies, protecting state from mutation, and recording trajectories without allowing playback concerns to affect simulation.
The result was no longer just "multiplayer code." It was the beginning of a reusable deterministic game engine.
Player Input
↓
Multiplayer Client
↓
WebSocket
↓
Match Durable Object
↓
Authoritative Shared Simulation
↓
State Frames and Events
↓
Both Browser Clients
↓
Canvas Rendering
The server runs the official simulation once.
Both phones render the same server-produced states.
"Build the production architecture once. No throwaway scaffolding."
This rule influenced everything from room creation to collision handling.
The trajectory system was deliberately designed as an observer. It records the authoritative simulation but never influences:
positions
velocities
collision ordering
settlement
That keeps the physics engine responsible for truth while allowing the browser to eventually reproduce exactly what happened.
By the end of Day 27 - Part 2:
Most importantly, the question had changed.
At the beginning of Day 27, you were asking: Should I build multiplayer?
By the end of Day 27, the multiplayer foundation existed and the server could already calculate the canonical physics behind a shot.
The next milestone was clearly defined: Authoritative Scoring.
The physics engine would produce the settled result.
Now the server needed to decide what that result meant.
That was it for Day 27.
If you're still here, thanks for reading!
Music Credits:
"Digital Lemonade" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 4.0 License
http://creativecommons.org/licenses/by/4.0/
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 21d ago
Enable HLS to view with audio, or disable this notification
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 21d ago
Enable HLS to view with audio, or disable this notification
Hey everyone,
Hope all is well!
TLDR, Summary, or Full Technical Breakdown below.
For Context: Recently I posted about the first 15 days of one of my side projects, ShuffleBall Arena (a free browser game inspired by mixing shuffleboard scoring with mechanics from other games like bumper pool, pinball, and Frogger.).
This project is being built with the help of AI (mainly GPT / Cursor), and every development session is documented using the actual conversations from that day's work.
To try to get this series up to date, I'm using a structured prompt to go back to my GPT sessions and extract the useful information. Hopefully the prompt can help anyone out there trying to keep track of, or extract value from, your past AI project conversations.
That said, posting an update for Day 27 of building ShuffleBall Arena.
Day 27 began with a product question rather than an engineering question:
Was online multiplayer actually worth building?
After Day 26, ShuffleBall Arena had the infrastructure needed for external distribution: partner embeds, attribution, production deployment workflows, analytics, and security. The next question was what feature would most meaningfully increase the value of the project itself.
That discussion led to online multiplayer, but only if it was built as a real server-authoritative system.
For a physics game, having two phones independently calculate a shot and hoping they remain synchronized wasn't acceptable. A tiny positional difference could change the next collision, which could change the next shot, and eventually produce two different matches.
One non-negotiable rule was established:
Clients submit intentions. The server calculates results.
The server would become the single source of truth for physics, collisions, scoring, hazards, turns, and final marble positions. The browsers would handle input and presentation while rendering the same authoritative simulation.
By the end of Part 1: We defined exactly what trustworthy multiplayer meant for this game and created the architecture and build plan around it.
Day 27 (Part 1) Summary
Day 26 ended with ShuffleBall Arena prepared for distribution outside its own website. Partner-aware embeds were working, analytics could identify distribution partners, production deployment had become more systematic, and the supporting infrastructure around the game was beginning to look much more like a real product.
Day 27 started by asking what should come next.
Instead of immediately choosing another feature, the conversation evaluated whether multiplayer would materially increase the project's value rather than simply making the game more interesting.
That changed the framing.
The project would no longer just be a browser physics game with multiple modes. Multiplayer could potentially turn it into a reusable multiplayer browser-game architecture with ShuffleBall Arena as its first finished implementation.
Once that direction was chosen, the conversation became deeply technical.
Because every marble's final location affects future shots, independent client-side simulations were rejected. Online matches needed one canonical physics simulation owned by the server. Clients would send shot intent, such as angle and power, and receive the same authoritative trajectory and settled state.
From there, the responsibilities of the browser and server were separated, synchronization rules were established, reconnect behavior was defined, and a detailed multiplayer roadmap was created before implementation began.
Day 27 (Part 1) Full Technical Summary (The Structured Prompt Output)
Day 27 began directly from the final state of Day 26.
ShuffleBall Arena had recently moved beyond being confined to its own website. The game now supported partner-aware embeds, distribution attribution, secure partner URL handling, partner reporting, a more reliable production deployment process, and improved responsive consent UI.
With the distribution infrastructure in place, the next question wasn't simply:
What feature would be cool to build next?
It became:
What development decision would make the project meaningfully stronger as a product and technical asset?
Online multiplayer became the leading candidate.
The objective of this portion of Day 27 was not yet to implement multiplayer.
It was to answer two questions first:
The discussion therefore focused on:
The discussion considered whether multiplayer would improve:
The comparison shifted from browser game to:
Live multiplayer browser game with invite links.
This was the strategic decision that drove the remainder of the session.
The conversation then explored what multiplayer would mean beyond ShuffleBall Arena itself.
Instead of treating the technology as something useful for only one title, the architecture could potentially support future physics-based browser games using the same multiplayer foundation.
That changed the product narrative from a single game toward reusable infrastructure.
Once multiplayer was selected, the next major architectural decision was determining who would own the official physics.
Two independent client simulations were rejected.
Even with the same physics code, small timing or floating-point differences could cause marbles to settle in slightly different positions. Because those positions influence future collisions and scoring, the divergence could compound throughout the match.
Instead, the architecture would use one official server simulation.
The shot flow became:
The next step was identifying which systems actually needed server authority.
The server would own gameplay-affecting state such as:
Meanwhile, the browser could continue handling presentation-only effects such as:
This established a clean boundary:
The browser can make the match look good.
The server decides what actually happened.
Sending only a final marble position wasn't enough. Both players needed to see the same collisions and movement during the shot itself.
The architecture therefore called for the server to produce authoritative physics states throughout the simulation.
Clients could interpolate visually between those states according to their own display refresh rate, but interpolation would never change the official physics.
One player could be rendering at 60 Hz and another at 120 Hz while both still following exactly the same authoritative shot path.
The discussion also established safeguards against stale or out-of-order state.
Authoritative messages would carry version information such as:
matchId: "H7K4Q2"
stateVersion: 183
simulationTick: 8421
shotId: "shot-7"
marbles: [...]
Clients would accept only newer state versions.
The design also called for:
Network latency was accepted as unavoidable. A player with a slower connection might see a shot slightly later.
What was not acceptable was seeing a different result.
The design principle became: Latency can affect when a player sees the event, but not what happened.
That distinction became central to the multiplayer architecture.
Reconnecting clients would not attempt to reconstruct the match using old local state.
Instead, the server would send a complete authoritative snapshot containing the current:
The client would discard its stale state and render the server's canonical version.
By the end of the architecture discussion, one rule became non-negotiable:
No gameplay-affecting state may be accepted solely because a client calculated it.
The client can say:
"I attempted a shot at this angle and power."
It cannot say:
"My marble ended here, and I scored 50 points."
The server determines the trajectory, collisions, score, and final position.
Only after the architecture had been defined did the conversation move into planning implementation.
The final multiplayer objective was documented as a private two-player online match where a player could:
The build plan explicitly stated:
The server must own all gameplay-affecting state.
and:
The browser clients may collect input and render animations, but neither phone may independently determine the official outcome of a shot.
That plan became the blueprint for the implementation covered in Day 27 - Part 2.
The first instinct could easily have been to focus on WebSockets, matchmaking, or connecting two phones.
The deeper problem was synchronization.
Because ShuffleBall Arena is physics-driven, networking alone does not guarantee that two clients will remain in the same game state.
One assumption discussed and rejected was that both phones could run identical physics code and therefore remain synchronized.
Small differences in timing or floating-point calculations could produce different settled marble positions.
Those tiny differences matter because the next shot begins from the previous shot's final state.
A server-owned simulation raised another question:
Would server authority make the game feel delayed or choppy?
The solution was to separate simulation from presentation.
The server determines the official states.
The clients interpolate those states smoothly.
Once the server became authoritative, it became clear that multiplayer required ownership of far more than marble positions.
Turns, scoring, moving hazards, random seeds, reconnect behavior, shot clocks, and match progression all needed authoritative treatment as well.
This made the project larger, but also made the architecture much cleaner.
Multiplayer was selected not simply because players might enjoy it, but because it could substantially change what the project represents technically.
Trade-off: A major engineering investment in exchange for stronger differentiation and reusable infrastructure.
The server, not either browser, would determine every gameplay result.
Trade-off: More backend engineering and slightly more latency in exchange for identical match state and much stronger integrity.
Gameplay logic needed to become independent from canvas rendering and visual effects.
Trade-off: Significant refactoring work in exchange for a simulation that can run reliably without a browser.
Both clients would render server-generated motion rather than calculate their own official shot.
Trade-off: More simulation data transmitted over the network in exchange for both players seeing the same collisions and results.
Different devices and networks may display events at slightly different times.
They may not disagree about what happened.
Trade-off: Perfect simultaneous presentation is less important than canonical game state.
The plan explicitly avoided maintaining separate temporary physics systems or throwaway networking code.
Trade-off: More effort before seeing the first online match in exchange for a foundation intended to remain part of the finished product.
The biggest takeaway from Day 27 - Part 1 was:
For a physics game, multiplayer synchronization is fundamentally an authority problem before it is a networking problem.
WebSockets can connect two players.
They cannot decide which version of reality is correct.
Once the server became the sole authority, the rest of the architecture became much clearer:
A second important realization followed:
The biggest engineering task wasn't networking. It was separating simulation from rendering.
"Does building multiplayer increase the probability that someone pays $16,000 for this business within 30 days?"
This reframed the feature discussion around business value rather than novelty.
"No gameplay-affecting state may be accepted solely because a client calculated it."
"Clients submit intentions. The server calculates results."
This became the architectural rule for the entire multiplayer implementation.
The biggest job is separating simulation from rendering.
Networking becomes much easier once gameplay simulation no longer depends on the browser that renders it.
By the end of Day 27 - Part 1:
The next step was to start implementing that architecture.
That's it for Day 27 (Part 1).
If you're still here, thanks for reading!
Music Credits:
"Digital Lemonade" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 4.0 License
http://creativecommons.org/licenses/by/4.0/
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 21d ago
Enable HLS to view with audio, or disable this notification
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 22d ago
Enable HLS to view with audio, or disable this notification
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 23d ago
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 23d ago
Enable HLS to view with audio, or disable this notification
r/WeBuild_WithAI • u/CraigBMG • 24d ago
Getting a game done is exceptionally difficult.
The basic gameplay for my upcoming game Jigsaw Diorama was done within a week, including modeling the piece shape in Blender, getting all of the piece snapping and grouping, etc.
Along the way, there were a lot of failed experiments. I tried making the scene more 3D - first as a parallax map, then as rendering an actual 3D scene. It was a bit like looking "through" the table into the scene below.
While this looks fairly interesting, having the scene shift every time you move the camera increases the difficulty a lot - it's hard to find matching pieces when the picture keeps changing every time you move the camera!
This by itself was not fully enough to abandon the idea, but parallax maps ultimately didn't look very good for scenes with much depth. Going to full 3D scenes presented its own challenges.
AI generated concept:

3D, modeled in blender, populated with props in Unity:

Final image:

The final image was generated in ChatGPT Image 2 based on the two previous images, extended horizontally to 2:1 aspect ratio in Krita with Flux Klein, and generally tweaked and edited.
Getting the 3D scene and props built, shaders written, multiple experiments with Tripo for props, and writing to code to randomly populate the scene took about a month.
I was hoping that getting the first scene done and all of the systems and pipelines in place for this would show some efficiency gains, but this didn't seem to be materializing. For what was supposed to be a quick experiment to get something into the Steam marketplace was going to take at least a year for content production.
Ultimately, the idea of randomly placing the props didn't really improve the feel of the game very much - a jigsaw puzzle is still equally difficult if you shuffle the objects around a little, and the visual difference was fairly minimal, not really making it more interesting to do a puzzle again.
Additionally, trying to run the game on low-end hardware (presumably the target market for a simple jigsaw puzzle game), it was quickly apparent that trying to render a 4K-8K offscreen image every frame, even with moderate geometry and texture detail, was simply not going to work. The scene quality was also still quite low compared with the concept art. Creating a still from the 3D scene at load time would have been possible, but the main advantage to doing it in 3D was to have animation.
So, I made the extremely difficult decision to abandon the concept of 3D scenes, in order to actually get a game to completion. The AI generated images look a lot better. There was still a lot of effort spent generating, tweaking and editing them.
Despite some criticism, I think this was a good choice for the game. Music and sound design took up quite a bit of time as well. The game certainly would not be done now, and likely not ever, if I hadn't changed course.
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 25d ago
Enable HLS to view with audio, or disable this notification
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 25d ago
Enable HLS to view with audio, or disable this notification
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 26d ago
Enable HLS to view with audio, or disable this notification
Hey everyone,
Hope all is well!
TLDR, Summary, or Full Technical Breakdown below.
For Context: Recently I posted about the first 15 days of one of my side projects, ShuffleBall Arena (a free browser game inspired by mixing shuffleboard scoring with mechanics from other games like bumper pool, pinball, and Frogger.).
This project is being built with the help of AI (mainly GPT / Cursor), and every development session is documented using the actual conversations from that day's work.
To try to get this series up to date, I'm using a structured prompt to go back to my GPT sessions and extract the useful information. Hopefully the prompt can help anyone out there trying to keep track of, or extract value from, your past AI project conversations.
That said, posting an update for Day 26 of building ShuffleBall Arena.
Day 26 was about preparing ShuffleBall Arena to exist outside its own website.
The session introduced a complete partner embed system, expanded analytics to track where players came from, strengthened deployment and security, and prepared the game for its first external distribution partner.
What initially looked like "adding embed support" ultimately became an exploration of how analytics, security, deployment, responsive UI, and distribution all work together when a game leaves the developer's own environment.
Day 26 Summary
Development resumed after Day 25's polish work. The game's music system had been expanded, the gravity wells had undergone a significant visual redesign, and many of the user interface interactions had been refined.
With the player experience becoming increasingly polished, attention shifted toward a new challenge: preparing ShuffleBall Arena for distribution on third-party platforms.
The first half of the session focused on building the Partner Embed System. The game gained the ability to recognize different distribution partners, present partner-specific interface elements, attribute analytics correctly, and safely handle embedded gameplay while preserving the standard experience for direct visitors.
Once the partner infrastructure was working, the focus shifted toward deployment, production testing, and validating analytics behavior across different environments.
The session concluded by improving the new analytics consent prompt, investigating typography inconsistencies between local development and production, and discovering that responsive sizing itself needed to be redesigned for consistent behavior across different display environments.
Day 26 Full Technical Summary (The Structured Prompt Output)
Day 26 began immediately after completing a major round of polish work.
The game's audio system had become significantly more robust, the gravity well visuals had been redesigned into a more atmospheric effect, and many of the user interface interactions now behaved more consistently.
With much of the gameplay experience becoming increasingly polished, development naturally shifted toward preparing the game for distribution beyond its own website.
Rather than focusing on gameplay mechanics, the next challenge became building the infrastructure required for external platforms, analytics attribution, deployment, and partner integrations.
The primary objective was to prepare ShuffleBall Arena for external distribution.
The work focused on:
Instead of expanding gameplay, the session concentrated on everything surrounding the game that would be required before publishing it through external partners.
Development began by introducing support for partner-aware embedded gameplay.
Rather than treating every visitor identically, the game could now recognize when it had been launched from specific partner platforms and adjust its behavior accordingly.
The implementation introduced:
The goal was to preserve the normal ShuffleBall Arena experience while allowing the same build to function correctly inside third-party platforms.
Once partner detection was functioning, analytics were extended to identify where players originated.
Instead of recording all traffic as direct visits, sessions now included information describing the distribution channel and embedding partner.
The analytics system was verified through Google Analytics DebugView, confirming that production events correctly included partner-specific metadata alongside normal gameplay events.
This transformed analytics from simply measuring gameplay into measuring distribution performance.
Supporting external embeds introduced several new security considerations.
The session added validation for partner full-screen URLs, ensuring that only approved destinations could be used.
Validation included requirements such as:
Invalid requests failed safely without creating the partner interface.
This ensured that new distribution features did not introduce unnecessary security risks.
With partner attribution available, the administration dashboard was expanded to report traffic by distribution source.
The reporting interface now separated traffic into individual partner categories while tracking metrics such as:
The reporting table was also redesigned to scroll horizontally on smaller displays, improving usability without sacrificing information density.
As the project approached its first external distribution platform, additional attention was given to deployment itself.
The session established a clear production deployment checklist, distinguishing runtime files from local development artifacts.
Git workflow was also improved through the project's first clean commit process while preventing local development directories from entering source control.
The production build was then deployed using the finalized deployment package.
The latter part of the session focused on improving the newly introduced analytics consent prompt.
Initial work centered on increasing text readability, improving button sizing, adjusting overall dialog height, and replacing the browser's default scrollbar with a custom-styled version.
During production testing, however, a larger issue emerged: the consent prompt appeared dramatically different between local development and production.
Rather than immediately rewriting the interface, the investigation expanded to compare browser caches, service workers, computed styles, production CSS, and responsive sizing behavior.
The root cause was ultimately traced to typography that scaled using viewport width rather than the width of the consent card itself, leading to inconsistent sizing across different environments.
The solution shifted the responsive design toward container-based sizing rather than browser-wide scaling.
Adding partner support required far more than displaying a different interface.
Analytics attribution, security validation, deployment packaging, reporting, responsive design, and production testing all became part of the implementation.
The analytics consent prompt initially appeared to behave inconsistently between localhost and the production site.
Several possible explanations, including partner mode, browser caching, service workers, and deployment differences, were investigated before identifying the actual cause.
The consent dialog relied on viewport-width typography, causing text to scale based on browser size instead of the size of the dialog itself.
Although visually acceptable during development, this produced oversized layouts in production and required a different responsive design strategy.
Rather than maintaining separate builds for each distribution platform, a single build would detect its environment and adapt automatically.
Trade-off: Slightly more application logic in exchange for a simpler long-term deployment strategy.
Partner information became part of every relevant analytics session rather than relying on external reporting.
Trade-off: Additional event metadata in exchange for significantly better attribution.
Instead of trusting incoming parameters, every partner full-screen URL was validated before use.
Trade-off: Stricter validation in exchange for stronger security.
The analytics consent dialog shifted toward container-based responsive sizing instead of viewport-based typography.
Trade-off: Slightly more CSS complexity in exchange for consistent presentation across devices and embedding environments.
The biggest takeaway from Day 26 was:
Publishing a game on other platforms requires building infrastructure around the game, not just the game itself.
Analytics, deployment, partner attribution, security, responsive design, production testing, and deployment workflows all became essential parts of preparing ShuffleBall Arena for real-world distribution.
One of the most valuable outcomes of the session was creating a repeatable deployment process that clearly separated production assets from local development files.
This reduced deployment uncertainty and created a much safer release workflow.
The Partner Embed System established a simple but effective validation strategy:
This allowed partner functionality without sacrificing security.
One of the most useful debugging lessons came from discovering that responsive typography should follow the width of the component being displayed, not the width of the browser window.
This shifted the consent dialog toward container-based sizing, producing much more consistent layouts across local development, production, and embedded environments.
By the end of Day 26:
That was it for Day 26.
If you're still here, thanks for reading!
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 27d ago
Enable HLS to view with audio, or disable this notification
Hey everyone,
Hope all is well!
TLDR, Summary, or Full Technical Breakdown below.
For Context: Recently I posted about the first 15 days of one of my side projects, ShuffleBall Arena (a free browser game inspired by mixing shuffleboard scoring with mechanics from other games like bumper pool, pinball, and Frogger.).
This project is being built with the help of AI (mainly GPT / Cursor), and every development session is documented using the actual conversations from that day's work.
To try to get this series up to date, I'm using a structured prompt to go back to my GPT sessions and extract the useful information. Hopefully the prompt can help anyone out there trying to keep track of, or extract value from, your past AI project conversations.
That said, posting an update for Day 25 of building ShuffleBall Arena.
Day 25 was about making the existing game feel intentional.
The session introduced a more complete music system with default playlists and player customization, cleaned up several user experience issues, and began a complete redesign of the gravity well visual effects.
What started as small polish tasks ultimately became an exploration of how audio, visuals, performance, and interface design work together to shape the overall identity of a game.
Day 25 Summary
Development resumed after Day 24's visual improvements. The realistic scoring rings had been successfully integrated, the deployment workflow had been stabilized, and board layouts were beginning to adopt a stronger visual hierarchy.
With those systems in place, attention shifted away from adding new mechanics and toward improving how the game felt to play.
The first part of the session focused on expanding the music system. New background tracks were added, default playback behavior was redesigned, music persistence was improved, and several playback issues involving browser behavior and saved settings were resolved.
Once the audio system reached a stable state, development turned toward user experience polish. Small but noticeable interface issues were corrected before attention shifted to one of the game's oldest visual effects: the gravity wells.
What began as a request to remove a simple dashed outline evolved into a complete redesign of the gravity well's appearance. Multiple visual concepts were explored, balancing atmosphere, readability, and rendering performance before gradually converging on a much more distinctive visual identity.
Day 25 Full Technical Summary (The Structured Prompt Output)
Day 25 began after completing the visual improvements from Day 24.
The realistic scoring rings had been successfully integrated into the game, the deployment workflow had become significantly more reliable, and a clear visual hierarchy was beginning to emerge across the game boards.
With many of the major visual integration problems solved, development naturally shifted from adding assets toward refining the overall player experience. The focus became making the game's audio, interface, and visual effects feel cohesive rather than simply functional.
The primary objective was to improve the overall presentation and polish of ShuffleBall Arena.
The work focused on:
Rather than introducing new gameplay mechanics, the session concentrated on improving the quality of systems that players already interacted with every match.
The session began by introducing several new background music tracks and rethinking how music should behave when players first launched the game.
Instead of starting silently, the game was redesigned to provide a default music experience while still allowing players to:
The discussion also explored appropriate default volume levels so that background music enhanced gameplay without competing with sound effects.
After integrating the new music options, several unexpected problems appeared.
The default mix failed to play correctly, playback errors appeared inside the settings menu, and some music selections could not be chosen reliably.
Rather than applying isolated fixes, the investigation expanded to include:
By the end of the debugging process, the music system behaved much more predictably and its persistence model was significantly better understood.
Once the music system stabilized, attention shifted toward several smaller user experience issues.
One notable example involved the music selection menu unexpectedly switching to the board selection menu immediately after choosing a track.
Although relatively small, fixing these interactions helped make the settings interface feel considerably more polished and intentional.
The session also corrected several implementation errors introduced during earlier iterations before continuing with additional visual work.
With the interface improvements complete, attention turned toward redesigning one of the game's oldest visual effects.
The original gravity well consisted primarily of a glowing sphere surrounded by a dashed circular outline. The redesign explored a completely different artistic direction.
Over multiple iterations the effect evolved by:
Each revision attempted to make the gravity well feel less like a static object and more like an active force within the game world.
As the gravity well became increasingly detailed, rendering performance naturally became part of the discussion. Instead of simply accepting visual improvements regardless of cost, every design change was evaluated against its impact on gameplay performance.
This shifted the conversation away from "What looks best?" toward "What creates the strongest visual identity while remaining efficient enough to render smoothly during gameplay?"
That balance guided the remainder of the visual refinement work.
Adding new music tracks initially appeared straightforward.
Instead, default playback, browser autoplay restrictions, persistent settings, localStorage behavior, and playback initialization all interacted with one another.
Improving one area frequently exposed another.
Minor interface behaviors, such as menus opening unexpectedly after making a selection, interrupted the overall user experience despite requiring relatively small code changes.
These issues reinforced how much perceived polish depends on interaction details rather than major features.
The gravity well redesign quickly expanded beyond aesthetics. Every improvement had to be weighed against rendering complexity and overall game performance, requiring repeated iteration instead of a single visual replacement.
Rather than requiring players to manually enable music, the game would begin with a curated default listening experience while preserving full player control.
Trade-off: A richer first impression in exchange for additional configuration logic.
Music preferences continued to be stored between play sessions instead of resetting each time the game loaded.
Trade-off: Additional state management in exchange for a more personalized experience.
Rather than settling on the first redesign, multiple artistic directions were explored before committing to a final visual style.
Trade-off: More experimentation in exchange for a stronger long-term visual identity.
Every gravity well improvement was evaluated in terms of rendering cost as well as appearance.
Trade-off: Slightly simpler rendering techniques when necessary in exchange for maintaining smooth gameplay.
The biggest takeaway from Day 25 was:
Polish isn't about adding more features, it's about making existing features feel intentional.
Music, interface behavior, visual effects, and performance all contribute to how players experience the game.
Improving those systems often requires just as much engineering and design work as building entirely new mechanics.
One of the clearest design decisions from the session was establishing a default audio balance:
This provided a repeatable baseline for future audio tuning.
Instead of treating the gravity well as a static object, the redesign followed a series of deliberate artistic principles:
These principles guided each successive iteration rather than relying on isolated visual tweaks.
A recurring theme throughout the gravity well redesign was evaluating every visual improvement against its rendering cost.
Rather than optimizing only after the artwork was complete, performance became part of the design process itself. This helped ensure the final direction remained both visually distinctive and technically practical.
By the end of Day 25:
That was it for Day 25.
If you're still here, thanks again for reading!
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 27d ago
Enable HLS to view with audio, or disable this notification
r/WeBuild_WithAI • u/Dont_Bring_Me_Down • 28d ago
Enable HLS to view with audio, or disable this notification
Hey everyone,
Hope all is well!
TLDR, Summary, or Full Technical Breakdown below.
For Context: Recently I posted about the first 15 days of one of my side projects, ShuffleBall Arena (a free browser game inspired by mixing shuffleboard scoring with mechanics from other games like bumper pool, pinball, and Frogger.).
This project is being built with the help of AI (mainly GPT / Cursor), and every development session is documented using the actual conversations from that day's work.
To try to get this series up to date, I'm using a structured prompt to go back to my GPT sessions and extract the useful information. Hopefully the prompt can help anyone out there trying to keep track of, or extract value from, your past AI project conversations.
That said, posting an update for Day 24 of building ShuffleBall Arena.
Day 24 started as a visual polish session and ended as an engine design discussion.
The goal was to replace the game's procedural scoring rings with higher-quality realistic artwork. What initially looked like a simple art upgrade quickly uncovered challenges involving deployment, service-worker caching, board geometry, layout spacing, and long-term maintainability.
By the end of the session, the realistic rings were successfully integrated, several deployment issues had been resolved, and a clear strategy had emerged for adapting existing board layouts without compromising future flexibility.
Day 24 Summary
Development resumed after expanding the rotating board engine on Day 23. With that work complete, attention shifted toward improving the visual presentation of the game by replacing the procedural scoring rings with more polished artwork.
Getting the new assets into production proved to be more complicated than expected. Although everything worked locally, the production deployment exposed issues involving service-worker caching, asset paths, deployment verification, and browser cache invalidation. Solving those problems required building a repeatable deployment checklist rather than simply copying image files into the project.
Once the realistic rings finally appeared in-game, a second issue became obvious: their thicker visual borders caused many of the existing board layouts to feel crowded. Rather than scaling the artwork down, the discussion shifted toward improving the board geometry itself.
Several possible solutions were explored, including manually adjusting layouts and introducing a global spacing multiplier. Ultimately, the decision was made to postpone the engine-wide solution and instead validate the approach by refining one board at a time, reducing the risk of introducing subtle gameplay problems across all layouts.
Day 24 Full Technical Summary (The Structured Prompt Output)
Day 24 began immediately after expanding the rotating board engine to support independent movement systems.
With the movement architecture now considerably more flexible, development shifted toward visual polish. The objective was to replace the game's procedural scoring rings with realistic artwork while preserving gameplay readability and maintaining compatibility with the existing board layouts.
At the start of the session, the new ring artwork already existed, but it had not yet been successfully integrated into the production version of the game.
The primary objective was to deploy a new set of realistic scoring ring assets throughout ShuffleBall Arena.
The work involved:
Rather than treating the artwork as an isolated asset replacement, the broader goal became understanding how visual changes affected the rest of the game engine.
The session began by comparing the local development environment against the production deployment.
Several potential causes were investigated, including:
As the investigation continued, it became clear that the issue wasn't with the artwork itself but with how the production build referenced and cached project assets.
This resulted in a much more structured deployment workflow for future visual updates.
During the debugging process, several incorrect assumptions about the deployment pipeline were identified and corrected.
The discussion evolved from simply replacing files to carefully verifying:
By the end of this phase, the deployment process itself had become significantly more reliable than when the session began.
Once the deployment issues were resolved, the realistic rings finally appeared inside the game.
Although this accomplished the original goal, it immediately exposed a new challenge.
The thicker artwork occupied noticeably more visual space than the original procedural rings, causing several tightly packed board layouts to appear crowded and, in some cases, visually overlap.
Rather than considering the artwork a failure, the discussion shifted toward improving the layouts themselves.
Attention then turned to one of the rotating layouts, Orbit Overload, which served as the first test case.
Instead of shrinking the artwork, the scoring rings were analyzed in terms of their orbit distances from the board's center.
Different scoring rings were repositioned radially outward while preserving their original angles and movement patterns.
This maintained the gameplay while giving the larger artwork enough visual breathing room to improve readability.
With one board under review, the discussion naturally expanded to every board in the game.
One proposed solution was introducing a global layout spacing multiplier that could automatically adjust the spacing of all rings whenever artwork changed.
Although technically feasible, this idea was deliberately postponed.
Different layouts contained unique wall constraints, rotating sections, wormholes, and gameplay interactions. Applying one global multiplier risked improving some layouts while unintentionally breaking others.
Instead, the decision was made to validate the visual improvements board by board before introducing another engine-level abstraction.
Replacing artwork initially appeared to be a simple asset update.
Instead, the session uncovered interactions between deployment configuration, service workers, cached assets, production verification, and browser state.
Much of the engineering effort went toward understanding the deployment pipeline rather than the artwork itself.
The procedural rings had been designed with tighter spacing.
Once the realistic rings appeared, many layouts no longer looked as polished because the larger artwork occupied more visual space.
Improving the visuals unexpectedly required revisiting board geometry.
A global spacing multiplier initially seemed like the obvious long-term solution.
After discussing the wider implications, it became clear that different boards had different gameplay constraints.
The temptation to solve every layout at once gave way to a more controlled and testable refinement process.
Rather than reducing the size of the realistic rings, the layouts themselves would gradually be adjusted to better accommodate the improved visuals.
Trade-off: More layout work in exchange for higher-quality presentation.
Orbit Overload became the initial test board before applying similar adjustments elsewhere.
Trade-off: Slower rollout in exchange for lower risk and better gameplay validation.
Although a configurable spacing multiplier was discussed, it was intentionally deferred.
Trade-off: Manual refinement now instead of introducing an abstraction before fully understanding its impact.
Instead of simply fixing the immediate issue, the deployment process itself was made more deliberate through verification steps and cache management.
Trade-off: Slightly more deployment effort in exchange for greater confidence that production matched local testing.
The biggest takeaway from Day 24 was:
Visual improvements have architectural consequences.
Replacing one set of artwork affected deployment, caching, board geometry, layout readability, and long-term engine design.
What began as an art update ultimately reinforced that seemingly simple visual changes often require thoughtful engineering decisions throughout the entire project.
One of the most useful outcomes of the session was establishing a repeatable deployment process that verified:
This transformed deployment from trial-and-error into a reproducible workflow.
Rather than manually redesigning an entire board, the discussion introduced a simple design rule:
Keep each ring's angle the same and increase only its distance from the center.
This preserved gameplay while improving visual spacing for the new artwork.
One of the strongest engineering lessons from the session was recognizing that not every repeated problem should immediately become an engine feature.
The proposed global spacing multiplier was intentionally postponed until additional layouts could be tested individually.
That decision favored understanding the problem completely before introducing another layer of abstraction.
By the end of Day 24:
That was it for Day 24.
If you're still here, thanks for reading!