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:
- Configuration => Cloud code.
- My code in: Requests: RegistrationRequest, Responses: AuthenticationResponse, System: GS_PLAYER_CONNECT, Modules: GPacketType, GConst.
Note: *** To add/modify sound effect:
- Go to ESoundEffect.
- Add an enum (sound name) to it.
- In MenuScene find "[SoundManager]" object.
- Add audioSource as a child object.
- 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:
-
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.
-
The key and Value in SoundManager are not mapped correctly. For example: key [None] for value [GunShot] and then PlaySound(ESoundEffect.GunShot)