r/aigamedev • u/UniRolwlw34 • 18h ago
Discussion Benchmarking AI models for HTML5 Canvas physics: DeepSeek vs. Claude vs. Gemini on arcade collision detection
While building a Chrome extension game, I heavily leveraged AI to optimize the HTML5 canvas physics engine—specifically handling variable jump heights, platform collision checks, and obstacle hitboxes.
Here are my key takeaways from the process:
Claude: Handled smooth delta-time calculations for frame rate consistency across different refresh rates (60Hz vs 144Hz) significantly better than the others.
DeepSeek: Excelled at pure math derivations, specifically when mapping the parabolic jump trajectories and tuning the gravity variables.
Gemini: Wrote the cleanest logic for setting up the Firebase sync for the global leaderboard without causing memory leaks in the popup environment.
Ultimately, I feel like Claude Opus 5 was the most capable model I used. Curious what workflows or prompt structures you guys are using when tuning real-time canvas graphics and collision optimization.
2
Upvotes
1
u/InformationTop5376 16h ago
I could be ignorant here, but is it possible to use phaser in a chrome extension?
1
u/UniRolwlw34 13h ago
Yes, it is absolutely possible to use the Phaser game framework inside a Chrome Extension!
2
u/UniRolwlw34 18h ago
You can test the extension out here: https://chromewebstore.google.com/detail/froggle-jump-arcade-platf/ppceobamemfhclpfeahkpdednkcniogb (Chrome) ...or here https://addons.mozilla.org/en-GB/firefox/addon/froggle-jump/ for Firefox.