An open API service indexing awesome lists of open source software.

https://github.com/khaled71612000/unity-crossgame

It replicates the classic "Frogger" gameplay where players guide a character across a road filled with obstacles
https://github.com/khaled71612000/unity-crossgame

unity

Last synced: 3 months ago
JSON representation

It replicates the classic "Frogger" gameplay where players guide a character across a road filled with obstacles

Awesome Lists containing this project

README

          

# Unity CrossGame

![Unity](https://img.shields.io/badge/Unity-000000?logo=unity&logoColor=white)
![C#](https://img.shields.io/badge/C%23-239120?logo=c-sharp&logoColor=white)
![License](https://img.shields.io/badge/license-MIT-green)

**Unity CrossGame** is a dynamic project developed using the Unity game engine. It replicates the classic "Frogger" gameplay where players guide a character across a road filled with obstacles. The project demonstrates advanced game development techniques, focusing on creating a seamless and engaging cross-platform experience.

#### PlayerController.cs
- **Movement Logic:** Manages player movement, including jumping and directional controls.
- **Collision Detection:** Handles interactions with obstacles and power-ups.

#### GameManager.cs
- **Game State Management:** Oversees game states, including start, pause, and game over conditions.
- **Score Tracking:** Updates and displays the player's score based on progress.

#### ObstacleManager.cs
- **Obstacle Generation:** Dynamically generates obstacles on the road.
- **Movement Patterns:** Controls the movement and speed of obstacles to increase difficulty.

### Features
- **Classic Gameplay:** Emulates the "Frogger" style of crossing a busy road while avoiding obstacles.
- **Cross-Platform Development:** Ensures smooth performance on different platforms, including PC and mobile.
- **Dynamic Difficulty:** Increases game difficulty by adjusting obstacle speed and frequency as the player progresses.
-
This project serves as an excellent example for developers interested in creating engaging, cross-platform games using Unity.

## Screenshots

![Screenshot 1](https://raw.githubusercontent.com/khaled71612000/Unity-CrossGame/HEAD/Assets/ScriptableObjectEventsAndVariables/ExampleProject/Textures/HealthBarFill.png)

![Screenshot 2](https://raw.githubusercontent.com/khaled71612000/Unity-CrossGame/HEAD/Assets/ScriptableObjectEventsAndVariables/ExampleProject/Textures/HealthBarOutline.png)

![Screenshot 3](https://raw.githubusercontent.com/khaled71612000/Unity-CrossGame/HEAD/Assets/ScriptableObjectEventsAndVariables/SOVariables/ScriptableObjectIcons/SOBool Icon.png)

![Screenshot 4](https://raw.githubusercontent.com/khaled71612000/Unity-CrossGame/HEAD/Assets/ScriptableObjectEventsAndVariables/SOVariables/ScriptableObjectIcons/SOFloat Icon.png)

![Screenshot 5](https://raw.githubusercontent.com/khaled71612000/Unity-CrossGame/HEAD/Assets/ScriptableObjectEventsAndVariables/SOVariables/ScriptableObjectIcons/SOGameEvent Icon.png)

## Tech Stack

| Technology | Role |
|---|---|
| Unity 3D | Game engine |
| C# | Gameplay scripting |
| Unity Physics | Rigidbody & collision |
| Git | Version control |

## Getting Started

### Prerequisites
- [Unity Hub](https://unity.com/download) + Unity 2019.4 LTS or higher
- Visual Studio 2019+ or VS Code

### Setup
```bash
git clone https://github.com/khaled71612000/Unity-CrossGame.git
```
1. Open **Unity Hub** → **Add** → select the cloned folder
2. Open **Assets/Scenes/** → double-click the main scene
3. Press ▶ **Play**