I coded an Air Hockey game where a local SLM hacks the DOM to cheat (and trash-talks you) π€π
A developer created an Air Hockey game featuring an AI opponent that cheats and trash-talks players. The game, called Ping Prompt, utilizes a Small Language Model (SLM) running locally in the browser. The project explores the intersection of AI and game mechanics, revealing challenges in real-time physics interactions.
- βͺThe game features a neon cyberpunk aesthetic and runs at 60 FPS with procedurally generated sound effects.
- βͺThe AI opponent, named Neural Core, analyzes player habits and triggers cheats during gameplay.
- βͺThe developer faced challenges integrating the SLM with real-time physics, leading to a split AI architecture.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3769613) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Quentin Merle Posted on May 28 I coded an Air Hockey game where a local SLM hacks the DOM to cheat (and trash-talks you) π€π #webgpu #gamedev #ai #javascript Have you ever played a game where the AI realizes it's losing, gets angry, and literally inverts your mouse controls in the DOM?* After having a blast creating GemMaster (my previous AI-managed RPG project), I wanted to push my experiments a little further.
β¦
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).