Each point awarded to the player also decreases the player's paddle speed marginally (to create more of a challenge). They are all covered under the Attribution 3.0 license.Įach score is updated again by the same collision detection, but with the caveat that there is no collision with the paddle. The sound effects were found at and haven't been altered. This uses a rudimentary form of collision detection using global position of all the objects rather than sending messages from one objects to another. It tracks the ball's x-coordinate and tries to match its own x-coordinate to it, limited by the above mentioned speed limit.Ī variety of angles are implemented based on where along the paddle the ball connects. The AI player in this game has an slightly faster speed than that of the human player (to make it more challenging). It has the various geometries and textures that go with those 3D objects. This game utilyzes the basic components of the Three.js library: sounds effects, cubes, planes, spheres, & 3Dtext. A simple game of Pong using the 3D graphics wrapper library Three.js (WebGL)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |