Requires Unity 5.2.2 or higher.
PUN Rally is a complete base project for a multiplayer racing game using Photon, the most popular network platform for Unity.
The project includes all sources and a 30+ pages illustrated tutorial book (PDF) explaining its use of realistic physics, dead-reckoning, checkpoint-based positions, and several other important features of multiplayer games, such as lobby control, car-selection and server-synced race-start.
Features
Realistic physics based on standard colliders, wheel-colliders and rigidbody.
Detailed suspension movement.
Real-time race synchronization over the internet using PUN (Photon Unity Network).
Dead-reckoning techniques to smoothly deal with latency.
Server-synced start and grid spawns.
Checkpoint-based race management (positions, laps, finish, etc).
Custom car selection (prefabs based) for connected players.
Weapon system (beta) optional for combat racing games.
The project is a foundation for a multiplayer racing game, but also serves as a comprehensive introduction to several multiplayer concepts with Photon:
Dealing with lobbies, rooms creation and joining.
Managing player connection and disconnection (both in menus and races).
Using custom player properties.
Remote Procedure Calls (RPCs).
Server-based time/clock (for race start).
The PhotonView component.
Custom network synchronization of GameObjects.
PUNBehavior and Photon.MonoBehavior classes.
Disclaimer: PUN Rally is a complete base project, but not a fully featured game. It would need some additional scripts and art to be ready for release.
游客,本帖隐藏的内容需要积分高于 20 才可浏览,您当前积分为 0
|