Hyper-v

How to make a game like Subway Surfers Replica for Mobile! | Part

How to make a game like Subway Surfers Replica for Mobile! | Part 1 | Unity game development

#game #Subway #Surfers #Replica #Mobile #Part

“ZeroCool – Game Development”

Welcome to our comprehensive Unity game development tutorial where we’ll guide you through the step-by-step process of creating your very own Subway Surfers replica game for mobile devices! Whether you’re a beginner or an experienced game developer, this tutorial will provide you with the…

source

 

To see the full content, share this page by clicking one of the buttons below

Related Articles

16 Comments

  1. This code work yes or not=using System;
    using System.Threading;

    class SubwayRunner
    {
    static int playerPos = 10;
    static int obstaclePos = 50;
    static bool isGameOver = false;

    static void Main()
    {
    Console.CursorVisible = false;
    Console.WriteLine("Press any key to start…");
    Console.ReadKey();

    Thread obstacleThread = new Thread(GenerateObstacles);
    obstacleThread.Start();

    while (!isGameOver)
    {
    DrawGame();
    HandleInput();
    Thread.Sleep(50);
    }

    Console.Clear();
    Console.WriteLine("Game Over!");
    Console.WriteLine("Press any key to exit…");
    Console.ReadKey();
    }

    static void DrawGame()
    {
    Console.Clear();
    Console.SetCursorPosition(playerPos, Console.WindowHeight – 1);
    Console.Write("V");
    Console.SetCursorPosition(obstaclePos, Console.WindowHeight – 1);
    Console.Write("X");
    }

    static void HandleInput()
    {
    if (Console.KeyAvailable)
    {
    ConsoleKeyInfo key = Console.ReadKey(true);
    if (key.Key == ConsoleKey.LeftArrow && playerPos > 0)
    {
    playerPos–;
    }
    else if (key.Key == ConsoleKey.RightArrow && playerPos < Console.WindowWidth – 1)
    {
    playerPos++;
    }
    }
    }

    static void GenerateObstacles()
    {
    while (!isGameOver)
    {
    obstaclePos–;

    if (obstaclePos == 0)
    {
    obstaclePos = Console.WindowWidth – 1;
    }

    if (obstaclePos == playerPos)
    {
    isGameOver = true;
    }

    Thread.Sleep(200);
    }
    }
    }

    This code make by chat gpt

  2. Hay i am your old subscriber and i want to ask a question that is ' from which university or institue I'll learn the game development well please tell me the name of that university or institute ❀

Leave a Reply