Worlds to use chapter by chapter in a book. Slowly building up a 3D "Battleship" multi-user Websocket game. View code to see exercises for each chapter.
Userid: chapters Type: Normal account. Joined: 24 Aug 2023 Country: Unknown
Ch.8. Tidying up... 36 runs ♦ 0 likes Created: 17 Jul 2023 Modified: 24 Aug 2023 Final "Battleship" style Websocket game. 3D graphics. Rotate camera. Multi-user. Take turns.
Ch.7. Websocket ... 33 runs ♦ 0 likes Created: 14 Jul 2023 Modified: 24 Aug 2023 Adding Websocket functionality. Multi-user. Guesses sent to opponent.
Ch.6. Arrays. 10 runs ♦ 0 likes Created: 13 Jul 2023 Modified: 24 Aug 2023 Visually no different. But we are putting in things behind the scenes.
Ch.3. 2D grid. 18 runs ♦ 0 likes Created: 9 Jul 2023 Modified: 24 Aug 2023 A 2D grid of boxes. The "for" loop.
Ch.4. Two grids. 71 runs ♦ 0 likes Created: 9 Jul 2023 Modified: 24 Aug 2023 Two grids. My grid of ships, and my estimate of opponent's grid.
Ch.5. Click on l... 51 runs ♦ 0 likes Created: 9 Jul 2023 Modified: 24 Aug 2023 Click on location to attempt to sink a ship. Click in 2D screen space selects a location in 3D T...
Ch.2. Draw two b... 26 runs ♦ 0 likes Created: 8 Jul 2023 Modified: 24 Aug 2023 Draw two boxes. Two textures. The "if" statement.
Ch.1. Draw a box. 62 runs ♦ 0 likes Created: 7 Jul 2023 Modified: 24 Aug 2023 Draw a box in Three.js space. Click to drag camera.