This project focuses on developing a realistic racing game integrated with a traffic simulation system. The game aims to mimic real-world driving conditions, requiring players to follow traffic laws, including driving on the correct side of the road, using turn signals, and stopping at red lights.
This project explores the development of a racing game with an integrated traffic system. The game aims to simulate real-world driving conditions, where players must adhere to traffic laws, such as driving on the correct side of the road, using turn signals, and stopping at red lights.
A review of existing literature on racing games and traffic simulations was conducted. Various traffic simulation techniques were analyzed, and different game development tools and frameworks were compared to determine the best approach for this project.
- RVP (Vehicle Controller): Randomation Vehicle Physics by JustInvoke
- UI Template: Gamepad Navigation, Scroll Views, and Selection Groups
- Scene Transitions: Easy Transitions
- Game Engine: Unity
- Database: MySQL with PHP for database interaction
- Email: Google API SMTP with PHPMailer for password reset requests
- Graphics: Unity's URP template and measured material library
- 3D Models: Car models from SnowWall via Free3D
- Mapping: GIS world map with shapefile of Cambodia for the project blueprint
The game design includes the following elements:
- Game Concept and Design Principles: Focus on realism and adherence to traffic rules.
- Level Design and Environment Setup: Creation of urban and suburban environments.
- Vehicle Design and Physics: Realistic vehicle behavior using RVP.
- AI for Traffic and Player Vehicle Control: AI-driven traffic that interacts with the player's vehicle.
The implementation phase involved:
-
Developing core gameplay mechanics.
-
Coding traffic laws and driving rules.
-
Integrating AI for realistic traffic behavior.
-
Performance Optimization
- Level of Detail (LOD):
- Unit testing for individual components.
- Integration testing to ensure smooth interaction between game elements.
- User acceptance testing to gather feedback and make necessary adjustments.
- The UI is well-designed, allowing control via keyboard, mouse, gamepad, and game controller, making it user-friendly.
- Gameplay currently features a single camera position (not inside the car yet) but includes functions like blinkers, enhancing the player's experience.
- The final game features realistic traffic behavior and a challenging racing environment.
- It deducts 10 points for traffic violations or rule infractions.
- The transitions are visually appealing.
- While the graphics are not as realistic as HDRP, the URP graphics are impressive.
- The game maintains a smooth performance, running at 90 to 110 FPS.
- This project successfully developed a racing game that simulates real-world traffic conditions, offering a unique and challenging experience for players.
- Although the game is nearly complete, further improvements, such as restructuring the database and enhancing the UI for better graphics, are planned for the next month.
- Books, research papers, and articles on traffic simulation and game development.
- Documentation for Unity, RVP asset, and the new Unity input system.
Created by [Ikhode Arena]
Advisor: [BunChhun]
Date: [28/07/2024]