Cube Foundry v1.2: The "Re-Forged" Update
Hello everyone! Jabran here. This is a massive update. As a solo dev, game balance is the issue I am most scared of, because a tiny change can drastically change how the game feels. However, the game had overcome the "scary 1.80e308" (the infamous JavaScript limit) and needed a rework from the ground up to support numbers far beyond that.
Version 1.2 reworks the game logic, adds native C++ performance acceleration, and completely overhauls the economy.
Major Features
The NG+ & Economy Overhaul
The old NG+ system was too powerful at the base level and lacked depth. I have reworked it into a proper upgrade system.
-New Upgrade System: Added 20 new upgrades across 9 categories (including cost reduction, CPS boost, and auto-buyer enhancements). \[]Economy Rebalance: To make these upgrades meaningful, the base NG+ bonuses have been heavily nerfed (approx. 4x harder base experience).
-Strategic Points: The NGPP (New Game Plus Points) exponent has been reduced from 0.65 to 0.25. This creates a smoother 5-10 cycle progression arc where you must choose your upgrades carefully rather than unlocking everything instantly.
C++ Performance Addon
To handle the new math without lagging, I've moved heavy calculations off the main thread.
-Native Speed: Implemented a C++ addon with Web Workers for performance-critical calculations.
-Faster Math: Purchase optimization is now ~5.9x faster, and synergy calculations are ~4.0x faster. This ensures the game runs smoothly even when numbers go infinite.
Game Balance
The progression speed has been adjusted to align with target playtimes.
--Prestige Pacing:
The first prestige previously took ~2.8 hours (too fast).
Requirements have increased (1e9 → 5e9 cubes), moving the target to ~10-12 hours.
Anti-Farming: Fixed an exploit where players could farm prestige points too easily. The scaling formula is now steeper to prevent repetitive short runs.
--Mastery Soft Cap: Implemented a "diminishing returns" factor (set to 50) for mastery upgrades to prevent runaway stats in the late game.
--Generator Costs: Generator cost reduction factors have been adjusted (0.70-0.80 → 0.85-0.90), making generators slightly more expensive to maintain economy balance.
--Astral Boost: Increased the cost scaling factor per tier from 2% to 3% to enforce better strategic tradeoffs.
Audio & Visuals
New Genres: Added 6 new music with varied styles: Cosmic Odyssey, Ambient Chill, Synthwave Retro, Chiptune Arcade, Orchestral Epic, and Electronic Beats.
Smart Playlist: Implemented a tag-based selection system. The game now tracks playback history to prevent repeating the same genre back-to-back. +1
Visual Polish
-Refactored Rendering: The massive "god object" file controlling the 3D cube has been modularized. This paves the way for better visual effects like star fields and nebulae.
Particle Dampening: Added a tiered dampening system for click particles. At 1e15+ cubes, particle force is reduced to keep the visual chaos manageable.
UI Feedback: Reduced the generator purchase flash animation from 0.7s to 0.35s for a snappier feel.
-Fixes & QoL
--Buy All Fixed: The "Buy All" button logic was rewritten. It now loops until no more purchases are possible, rather than skipping upgrades if your multipliers changed halfway through.
--Smarter Auto-Buyer: The automation can now calculate "Generator Efficiency" (CPS per cost) and prioritize the most efficient upgrades first.
--Combo Grace Period: Clicking UI elements (like menus) no longer instantly kills your click combo. The system now correctly respects the grace period timer.
--Audio Toggle: Added a "Auto-Purchase Sounds" toggle in settings. You can now mute the constant sound of automation without muting manual clicks.
--Settings Bug: Fixed an issue where audio settings would be overwritten by defaults on load, or music would auto-start even if disabled.
Thank you for your patience as I reworked these core systems. This update would not be possible without you all.
– Jabran
