Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.51 KB

README.md

File metadata and controls

37 lines (30 loc) · 1.51 KB

RollingCircle

An endless running game

Hi, I want to make it funny rolling game. So I add some image and sound effect for it. Make the game more interest. I also make an extra "highscore". To save user's highest score for future usage.

The server I use for this game is GameSparks. You can find more details about in here: https://gamesparks.com/ GameSparks's server is not run in live-stage because I'm not contact to GameSparks yet, and the server is still in preview build. However it contains full feature.

Account with read permission: Acc: [email protected] Password: GameJam_2018

More about code in GameSparks:

  1. Configuration => Cloud code.
  2. My code in: Requests: RegistrationRequest, Responses: AuthenticationResponse, System: GS_PLAYER_CONNECT, Modules: GPacketType, GConst.

Note: *** To add/modify sound effect:

  1. Go to ESoundEffect.
  2. Add an enum (sound name) to it.
  3. In MenuScene find "[SoundManager]" object.
  4. Add audioSource as a child object.
  5. In SoundManager's inspector add new sound in dictionary with enum and sound effect object.

**** Possible errors in SoundManager comes from mistaken setup as below:

  1. Add new sound enum in GameEnum/ESoundEffect and use it directly in code without add it in SoundManager. For example: ESoundEffect has new enum "Fire". Then use in code PlaySound(ESoundEffect.GunShot) without add it in sound dictionary.

  2. The key and Value in SoundManager are not mapped correctly. For example: key [None] for value [GunShot] and then PlaySound(ESoundEffect.GunShot)