Skip to content

ENDLESS-RUN is a Unity-based 3D Endless Runner game featuring dynamic obstacle generation, score tracking, responsive controls, and polished visual effects. This project demonstrates core gameplay programming, animation handling, physics interactions, object pooling, and UI/UX implementation. Built as part of a game development portfolio for EA's T

Notifications You must be signed in to change notification settings

kinshukkush/ENDLESS-RUN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Endless Runner Sample Game - Enhanced Edition ๐ŸŽฎ

Unity Version Documentation Enhancement Summary

๐Ÿ“– Enhancement Summary โ€ข ๐Ÿš€ Quick Setup Guide

๐Ÿ’ก Tip: Click the tabs above (Contributing, Security) to access full documentation!


๐Ÿ†• What's New in This Enhanced Version

This version includes major improvements over the original:

โœจ New Features:

  • ๐ŸŽจ Modern UI Theme System - 5 beautiful theme presets with dynamic color switching
  • ๐ŸŽฌ Advanced Animation System - Smooth UI animations with customizable effects
  • ๐ŸŽฏ Enhanced Score Display - Animated score counter with combo system
  • ๐Ÿ’ซ Particle Effect Manager - Professional visual effects with object pooling
  • ๐ŸŽฎ Enhanced Buttons - Interactive buttons with hover, click, and ripple effects
  • ๐Ÿ› Bug Fixes - Resolved null reference issues and improved code quality
  • ๐Ÿ“š Complete Documentation - Setup guides and improvement notes

๐Ÿ”ง Technical Improvements:

  • Better error handling and null safety
  • Optimized performance with object pooling
  • Modular, reusable UI components
  • Clean, well-documented code
  • Professional coding practices

๐ŸŽจ Theme Presets

Choose from 5 beautiful themes:

  • Modern - Professional blue/purple/orange (default)
  • Sunset - Warm orange/pink/yellow tones
  • Ocean - Cool blue/teal waters
  • Forest - Natural green/yellow hues
  • Neon - High-contrast cyberpunk style

Switch themes at runtime with one line of code!


๐ŸŽฎ Features

Original Features:

  • Endless runner gameplay
  • Character selection
  • Consumable power-ups
  • Mission system
  • Shop with in-app purchases
  • Leaderboard system
  • Tutorial mode

New Enhanced Features:

  • Modern animated UI with smooth transitions
  • Dynamic theme switching system
  • Advanced score display with combo system
  • Particle effects for all interactions
  • Enhanced button feedback (hover, click, ripple)
  • Loading screens with progress bars
  • Audio feedback for UI interactions

๐Ÿš€ Getting Started

1. Clone the Repository

Important: This repository uses Git Large File Support (LFS)

# Install Git LFS
# Download from: https://git-lfs.github.com/

# Initialize Git LFS
git lfs install

# Clone the repository
git clone <repository-url>

2. Open in Unity

  • Open Unity Hub
  • Click "Add" and select the project folder
  • Open with Unity 2019.3 or later
  • Wait for initial compilation

3. Setup New Features (Optional)

Follow the Quick Setup Guide to add:

  • UIThemeManager to your scenes
  • EnhancedButton components to buttons
  • EnhancedScoreDisplay to game UI
  • ParticleEffectManager for effects

Estimated setup time: 20-30 minutes


๐ŸŽฏ Building the Game

Before Building:

  1. Build Addressable Assets:

    • Open: Window > Asset Management > Addressables > Groups
    • Click: Build > New Build > Default Build Script
    • Wait for build to complete
  2. Configure Build Settings:

    • File > Build Settings
    • Select your target platform
    • Add required scenes
  3. Build:

    • Click "Build" or "Build and Run"
    • Select output folder

Platform Notes:

  • Mobile: All new features are mobile-optimized
  • Desktop: Full feature support
  • WebGL: Supported with standard limitations

๐Ÿ“– Project Structure

Assets/
โ”œโ”€โ”€ Scripts/
โ”‚   โ”œโ”€โ”€ Characters/          # Character controllers and data
โ”‚   โ”œโ”€โ”€ GameManager/         # Game state management
โ”‚   โ”œโ”€โ”€ Tracks/              # Track generation system
โ”‚   โ”œโ”€โ”€ UI/                  # UI components (Enhanced!)
โ”‚   โ”‚   โ”œโ”€โ”€ UIThemeManager.cs      [NEW]
โ”‚   โ”‚   โ”œโ”€โ”€ UIAnimator.cs          [NEW]
โ”‚   โ”‚   โ”œโ”€โ”€ EnhancedButton.cs      [NEW]
โ”‚   โ”‚   โ”œโ”€โ”€ EnhancedScoreDisplay.cs [NEW]
โ”‚   โ”‚   โ””โ”€โ”€ MainMenu.cs            [IMPROVED]
โ”‚   โ”œโ”€โ”€ ParticleEffectManager.cs   [NEW]
โ”‚   โ””โ”€โ”€ ...
โ”œโ”€โ”€ Scenes/               # Game scenes
โ”œโ”€โ”€ Prefabs/              # Reusable game objects
โ”œโ”€โ”€ Materials/            # Materials and textures
โ””โ”€โ”€ ...

๐ŸŽจ Customization

Change UI Theme:

// In any script
UIThemeManager.instance.SetThemePreset(UIThemeManager.ThemePreset.Ocean);

Add Button Animation:

// Add to button GameObject
UIAnimator animator = gameObject.AddComponent<UIAnimator>();
animator.animationType = UIAnimator.AnimationType.ScaleAndFade;
animator.animateOnEnable = true;

Play Particle Effects:

// From anywhere in code
ParticleEffectManager.instance.PlayCoinCollectEffect(position);

Update Score Display:

EnhancedScoreDisplay score = FindObjectOfType<EnhancedScoreDisplay>();
score.AddScore(100);
score.SetMultiplier(2);
score.IncrementCombo();

๐Ÿ› ๏ธ Development

Requirements:

  • Unity 2019.3 or later
  • Git LFS installed
  • Basic C# knowledge

Recommended Setup:

  • Visual Studio 2019+ or VS Code
  • Unity Asset Management window
  • Scene view visible for testing

๐Ÿ“ Services & Integration

Unity Services:

By default, all services are disabled. To enable:

  1. Switch to mobile platform (for Ads)
  2. Enable services in Unity Services window
  3. Follow original INSTRUCTIONS.txt for detailed setup

In-App Purchases:

  • Import UnityPurchasing package
  • Configure products in shop
  • Test with fake store in editor

๐ŸŽ“ Learning Resources

This project demonstrates:

  • Modern Unity UI development
  • Game state management
  • Object pooling for performance
  • Addressable assets system
  • Mobile game optimization
  • Clean code architecture

Code Quality:

  • โœ… Null safety checks
  • โœ… Error handling
  • โœ… XML documentation
  • โœ… Consistent naming
  • โœ… Best practices

๐Ÿ› Troubleshooting

Common Issues:

Compilation Errors:

  • Ensure all packages are imported
  • Check Unity version compatibility
  • Rebuild addressables

Missing Assets:

  • Verify Git LFS is installed
  • Re-pull repository with LFS
  • Check addressables are built

UI Not Themed:

  • Add UIThemeManager to scene
  • Assign UI elements to lists
  • Call ApplyTheme()

Animations Not Playing:

  • Check UIAnimator component exists
  • Verify animateOnEnable is checked
  • Play mode to test

More solutions in Quick Setup Guide


๐Ÿ“Š Performance

Optimizations:

  • โœ… Object pooling for particles
  • โœ… Efficient UI updates
  • โœ… Cached references
  • โœ… Minimal GC allocations
  • โœ… Mobile-friendly effects

Tested On:

  • Windows Desktop
  • Android devices
  • iOS devices (original version)

๐Ÿค Contributing

Original Repository:

This is an enhanced version of Unity's official Endless Runner sample.

Improvements Made:

  • Code quality and bug fixes
  • Modern UI system
  • Advanced animations
  • Visual effects system
  • Comprehensive documentation

๐Ÿ“„ License

This project uses Unity's sample game as a base. New enhancements and features are provided as-is for learning purposes.


๐ŸŽ‰ Getting Help

  1. Check Documentation:

  2. Common Issues:

    • See Troubleshooting section above
    • Check Unity Console for errors
    • Verify component assignments
  3. Original Resources:


โญ What Makes This Version Special

Original Version:

  • Basic endless runner
  • Simple UI
  • Core gameplay features

Enhanced Version:

  • โœจ Modern, animated UI
  • ๐ŸŽจ Multiple theme options
  • ๐Ÿ’ซ Professional effects
  • ๐Ÿ› Bug fixes and improvements
  • ๐Ÿ“š Complete documentation
  • ๐Ÿš€ Easy to customize
  • ๐ŸŽฏ Production-ready code

๐Ÿ“ˆ Version History

v2.0 - Enhanced Edition (Current)

  • Added UIThemeManager with 5 presets
  • Created UIAnimator system
  • Implemented EnhancedScoreDisplay with combos
  • Added ParticleEffectManager
  • Created EnhancedButton component
  • Fixed multiple bugs
  • Added comprehensive documentation

v1.0 - Original Version

  • Base endless runner game
  • Tutorial system
  • Addressable assets
  • Lightweight rendering pipeline

๐ŸŽฏ Next Steps

  1. โœ… Clone the repository
  2. โœ… Open in Unity 2019.3+
  3. โœ… Read the Quick Setup Guide
  4. โœ… Build addressable assets
  5. โœ… Test the game
  6. โœ… Add new UI features
  7. โœ… Customize themes
  8. โœ… Build and enjoy!

Made with โค๏ธ using Unity

Original by: Unity Technologies
Enhanced by: KINSHUK SAXENA Version: 2.0 - Enhanced Edition
Date: November 2025

๐ŸŽฎ Happy Gaming! ๐ŸŽฎ

About

ENDLESS-RUN is a Unity-based 3D Endless Runner game featuring dynamic obstacle generation, score tracking, responsive controls, and polished visual effects. This project demonstrates core gameplay programming, animation handling, physics interactions, object pooling, and UI/UX implementation. Built as part of a game development portfolio for EA's T

Topics

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages