tanbaycu Clone
Welcome to the Tennis Game project! This is an interactive, browser-based tennis simulation built with JavaScript and the p5.js library.
- Realistic tennis court rendering
- Player vs Computer gameplay
- Dynamic ball physics
- Responsive paddle controls
- Score tracking
- Animated characters
- Use the UP and DOWN arrow keys to move your paddle.
- Hit the ball back and forth across the net.
- Score points when your opponent misses the ball.
- First to reach the winning score (configurable) wins the match!
- JavaScript
- p5.js for graphics and animation
- HTML5 Canvas
- Ball Physics: The ball's trajectory is calculated based on its velocity and the court's dimensions.
- Collision Detection: Precise collision detection between the ball and paddles.
- AI Opponent: The computer-controlled paddle uses simple AI to track and hit the ball.
- Dynamic Difficulty: The game's difficulty adjusts based on the player's performance.
The game features a vibrant, retro-inspired design:
- Green court with white lines
- Animated character sprites for paddles
- Dynamic ball shadow for depth perception
- Stylized net with realistic shading
Special thanks to the p5.js community and all the open-source contributors who make projects like this possible.
Enjoy the game, good luck 🏆