Git Product home page Git Product logo

endlessrunnersamplegame's Introduction

Endless Runner Sample game

Current Used Unity Version : 2019.3

This repository use tags for versioning. Look in the Releases section to download the source for specific other Unity version, or use git tag to checkout a specific version (e.g. git checkout 18.2)

Cloning note

This repository use git Large File Support. To clone it successfully, you will need to install git lfs :

Now you git clone should get the LFS files properly. For support of LFS in Git GUI client, please refer to their respective documentation

Description

This project is a "endless runner" type mobile game made in Unity

You can find the project on the Unity asset store (Note that this is the old version not using Lightweight rendering pipeline & addressable, see note at the end of this file. Assets stor version will be updated when Addressable is out of preview)

A INSTRUCTION.txt text file is inside the Asset folder to highlight diverse important points of the project

An article is available on the Unity Learn website highlighting some part of the code.

You can also go visit the wiki for more in depth details on the projects, how to build it and modify it.

Note for this Github version

This version include feature not in the released game in the asset store version:

  • A basic tutorial when the game is played the first time
  • The use of the new Lightweight Rendering pipeline
  • The use of the new Addressable System that replace the Assets Bundles.

Documentation is still not up to date in the wiki. Updating is in progress

endlessrunnersamplegame's People

Contributors

jacktilling avatar obsessivenerd avatar unityguillaume avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

endlessrunnersamplegame's Issues

Please update

Hi, it looks like the version of this released through the Asset store was updated as recently as today for 2019.3 compatibility. Is this no longer being kept up to date? These larger, real-quality projects are the best learning tools you provide right now - does this mean we're getting only old, left-for-dead versions through github? It helps so much being able to see all the commits so we can learn from them, please consider keeping these updated too.

[Mac] 2019.1.0b10 Addressables runtime data with a different build target

Open up the project on a Mac running 19.1

Open the Scene "Start"

You'll notice several UI elements missing, the cat from Trash Dash is pink and an error is in the console:

Addressables - runtime data was built with a different build target. Expected StandaloneOSX, but data was built with StandaloneWindows64. Certain assets may not load correctly including shaders. You can rebuild player content via the Addressable Assets window.
UnityEngine.ResourceManagement.Util.DelayedActionManager:LateUpdate()

ae253aee348f95bfb5e37f785b4b9fe5

Deleting Data doesn't delete an item you had equipped before the run

Delete all data from the settings menu to ensure you have an empty slate to work with

Go into the store and click on the "Store" text to cheat and get a lot of currency

Buy whatever you want but make sure you get at least some items (magnet, invincible, etc)

Close the store and in the menu from which you Run, equip an item

Don't click the run button just yet - making sure you have an item equipped go into settings and delete your data.

Close the settings menu and you'll be back at the run menu with everything deleted and removed

Now click the Run button

The item you equipped before clearing data will be in the lower right ready to be used.

[19.3] Characters appear too high on Main Menu

Open up the project in 2019.3.0f1, navigate to the Start scene, and enter Play Mode.

Click Start button which will load you into the Main Menu

At this point you'll note that something seems wrong....
15a7c46165053e26a06b88e40aa7b5f2

The characters are positioned much above their original point, floating in mid-air, covering up some of the menu options.
In addition, the bottom of the menu seems to have shifted upwards too.

Can not play disabled Audio Source warnings in console

As you play through Trash Dash at several stages you'll get this warning in the console:

"Can not play a disabled audio source
UnityEngine.EventSystems.EventSystem.Update()"

It happens on the following gameobjects:

  • MissionPopup > MissionBackground > CloseButton
  • GameOver > MissionPopup > CloseButton
  • GameOver > Loadout
  • Leaderboard > Button (the close button again)

Assets dont load in windows build

I tried to run the game for a standalone windows build but when i press the run button the assets dont load.
Can not figure out the solution to the problem.

You can see in the image that the game starts but no asset is loaded.
The works on the editor but not after build.

image

Point Gathering

Hi, Good afternoon
I have an issue with changing the system of points, like if someone wants to change it and make it more complex with more than one source, like fishbone, food and more.
Detailing the points system could help me
Thanks for making this wiki for the sample game

[19.3] Warnings in console upon opening project

Open the Project in 19.3.0f1

You will note the following two warnings in the Start Scene:

  • Component of type GUI Layer is no longer available in Unity. References to it will be removed!
  • Component at index 2 could not be loaded when loading game object 'Main Camera'. Removing it!

However, the Main Camera game object doesn't have any Missing components, warnings, etc.
The Start scene renders and plays correctly however.

[19.3] Unity Package Manager Error upon opening Project

  • Attempt to open the project in 19.3.0f1
  • You will receive the following dialogue while the project is importing:

image

Retry won't work, and pressing Continue will lead to the project opening with a package error about the com.unity.render-pipelines.lightweight package.

Presumably it needs to be changed to com.unity.render-pipelines.universal

This does not prevent the game from running however

In-Game Pause button doesn't pause game

Start a new run in Trash Dash
As you're running away trying to achieve your highest score to show to your friends you need to stop playing for a second and you press the pause button.
The game doesn't pause

Clicking outside of the Unity Editor (e.g. on a different running program) pauses the game, but the pause button in the upper left does not:
https://gyazo.com/b3710f9cf27b4039ba9a12f8ffe406c5
[Mac+Win]

[19.3] Switching characters in the Main Menu flashes other character

In 2019.3.0f1 make sure you have both characters unlocked.

In Play Mode, Go from the Start scene to the MainMenu scene.

Press the toggle to switch between both characters whilst observing the bottom half of the screen.
You will see the other character you're loading in flash at the bottom of the screen for a moment:

https://learn-content.gyazo.com/b7d96f6a056ae49b1d634aa98ce226ab

This is presumably due to the way assetbundles are loaded.

Please create 19.3 branch

It seems latest master commit makes this branch only compatible with Unity 2020 and up. Thus trying to open this project with Unity 2019 LTS will throw bunch of errors, since Unity projects are not backwards compatbile

Even though ReadMe says, current Unity version is 2019.3.

Please:

  • Update ReadMe stating that current Unity version is 2020 (NOT 2019)
  • Please create a branch 19.3 from this commit 91f74c0 where the project was still compatible with Unity 2019.

Thanks!

UI Elements not visible in Scene View

All UI elements have only their colliders visible when viewing in Scene tab where as they are visible in game tab. Is there something which needs to be changed in order to make them visible? All layers are set to visible including UI layer.

Using 2020.1.6f.

Screenshot 2020-10-05 at 7 45 09 PM

Screenshot 2020-10-05 at 8 02 05 PM

Screenshot 2020-10-05 at 8 00 01 PM

Power-ups display errors, don't clear during/between runs

Upon collecting a pickup you receive an error. When the pickup runs out you receive an error.
The pickup UI never leaves the screen so as you collect more powerups during your run the bottom left of your screen continously fills up with (now empty) powerup icons

Lastly when you finally die and then start a new run all previous powerup icons will be displayed in the bottom left from the previous run

The errors are:

NullReferenceException: Object reference not set to an instance of an object
Consumable+d__19.MoveNext () (at Assets/Scripts/Consumable/Consumable.cs:69)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)

Exception encountered in operation UnityEngine.ResourceManagement.ResourceManager+CompletedOperation`1[UnityEngine.GameObject], result='', status='Failed': Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown., Key=8cede34fb26a722408198e0d27628ae9
UnityEngine.AddressableAssets.AssetReference:InstantiateAsync(Transform, Boolean)
d__19:MoveNext() (at Assets/Scripts/Consumable/Consumable.cs:67)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
CharacterInputController:UseConsumable(Consumable) (at Assets/Scripts/Characters/CharacterInputController.cs:425)
CharacterCollider:OnTriggerEnter(Collider) (at Assets/Scripts/Characters/CharacterCollider.cs:181)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.