[wip] colisions

This commit is contained in:
bgoulard 2025-12-15 19:19:54 +01:00 committed by Maix0
parent 40068bfb57
commit 0033956ca1
5 changed files with 75 additions and 47 deletions

View file

@ -17,7 +17,7 @@
<div id="batleft" class="pong-batleft bg-amber-400 top-0"></div>
<div class="pong-center-line"></div>
<div id="batright" class="pong-batright bg-amber-400 top-0"></div>
<div id="ball" class="w-16 h-16 rounded-full border-4 bg-white border-gray-400"></div>
<div id="ball" class="w-8 h-8 rounded-full border-4 bg-white border-gray-400"></div>
</div>
</div>
</div>

View file

@ -17,6 +17,10 @@ export const color = {
reset: '',
};
// TODO: local game (2player -> server -> 2player : current setup)
// TODO: tournament via remote (dedicated queu? idk)
//
// get the name of the machine used to connect
const machineHostName = window.location.hostname;
console.log('connect to login at %chttps://' + machineHostName + ':8888/app/login',color.yellow);