Skip to main content

Command Palette

Search for a command to run...

Almost there!!!

Game Over Scene and Win Conditions

Published
2 min readView as Markdown
Almost there!!!

Following our successful visual upgrades, our focus shifted to refining the win condition mechanics and the game over scene. First off, I'd like to express my gratitude to Lakshay for implementing theme specific lighting across both maps, which has significantly enhanced quality of our environments.

Game Over Scene Development

For the game over scene, we initiated the design with a dynamic text animation to signal the end of the game. I created this animation in Adobe Premiere Pro, showcasing the "Round Over" message.

This video was then imported into our Unity project, where I integrated it using a screen texture on a video layer component. This texture was subsequently attached to a raw image within the Canvas. At the start of the scene, the video plays automatically and transitions to the stats panel upon completion. This transition is managed through the VideoEndDetector class. Here is the script:

using UnityEngine;
using UnityEngine.Video;
using UnityEngine.SceneManagement;
using UnityEngine.UI;


public class VideoEndDetector : MonoBehaviour
{
    public VideoPlayer videoPlayer;
    public GameObject rawImageGameObject; 

    void Start()
    {
        videoPlayer.isLooping = false;
        videoPlayer.Play();
        videoPlayer.loopPointReached += EndReached;
    }

    void EndReached(VideoPlayer vp)
    {
        Destroy(rawImageGameObject);  // Destroy only the GameObject with the RawImage
    }
}

The stats panel features a leaderboard and includes a dedicated section on the left to display the winning team. Below this, a Coin UI indicates the number of gold coins won. At the bottom of the panel, there is a button that allows players to return to the lobby. All UI elements were designed in Adobe Illustrator.

In-Game Shop Integration

To enhance gameplay and provide a use for the silver coins players earn, we introduced an in-game shop. This shop panel becomes accessible in the scene by pressing the 'B' key.

Win Condition Mechanics

Thanks to Molly, our win condition mechanics are now fully operational. At the end of each round we have a winning realm displayed in the Winner section.

Moving forward considering we are close to deadline, we plan to further enhance our Start Menu to include more functional options such as sound and brightness adjustments. We are also eager to update the game's audio and expand game shop.

Thank you for reading my blog. Stay tuned for updates.

Shashank Kumar Sukumar Singh

Z
zgd1y ago

We're looking for experienced MMO mobile game developers who have successfully developed multiple large-scale multiplayer online role-playing games (MMORPGs) at renowned gaming companies. This is a remote position offering highly competitive salaries with flexible working hours. Candidates can arrange their own schedules, and we're willing to provide an advance deposit upfront. If you meet these criteria and are interested, please contact us directly.

EMail:q791864008q@gmail.com Discord:q791864008q_gmail_com Telegram:q791864008q_gmail_com

Z
zgd1y ago

We are willing to pay a high price to acquire the source code of a mobile game that is compatible with both Android and iOS platforms, for the purpose of learning and research. The game must meet the following criteria: it should be developed by a top-tier gaming company within the past 5 years, fully completed and matured, and preferably of the multiplayer online MMORPG or ARPG genre. If your game meets our interest, we will proceed with the transaction promptly and offer an upfront payment as a gesture of goodwill. Contact me q791864008q@gmail.com

L

Great job with the game over animation, I absolutely loved it!

1