How To Make A GLOWING PONG Game For Beginners - Easy Unity Tutorial

Поделиться
HTML-код
  • Опубликовано: 5 авг 2024
  • In this unity tutorial, you'll learn how to make a Glowing Pong Game from start to finish. If you're just a beginner and you want to make your first game using unity game engine, this is the tutorial for you.
    You'll learn how to make a simple racket controller, ball movement and bounce, scoring system, background music, sound effect and use post processing to add the glowing effect.
    After you've finished developing the game, you can ask your family and friends to try it out. Impress them and get feedbacks so that you can improve as a game developer.
    ➤Game Assets: drive.google.com/file/d/1wdeb...
    Timestamps:
    0:00​ Intro
    0:50 Game Project Creation
    1:06 Game Project Configuration
    1:32 Import Game Assets
    2:00 Main Menu Setup
    5:01 Changing Scene
    8:43 Pong Game Setup
    13:24 Ball Movement And Bounce
    17:13 Ball Left Right Movement
    24:06 Racket Movement
    31:48 Ball Bouncing Correctly
    35:51 Scoring System
    41:43 Restart Ball
    44:28 Game Over
    49:19 Background Music
    51:01 Sound Effect
    54:17 Post Processing
    57:22 Building Game
    #Hooson #Unity3D
    Play my first mobile game: Bot Attack - 2D Top-down shooter
    ➤Google Play: play.google.com/store/apps/de...
    ➤App Store: Coming soon
    ➤Follow my Instagram: / hoosontech
  • ХоббиХобби

Комментарии • 109

  • @siddharthsendhil6753
    @siddharthsendhil6753 2 года назад +11

    Love the content man, please don't stop making videos you are just an amazing teacher. The way u teach is just fantastic keep up the good work

  • @worstDevYT
    @worstDevYT 11 месяцев назад +1

    This is the best pong tutorial i've ever seen. Thank you so much for this!

  • @monkeygames2019
    @monkeygames2019 2 года назад

    Thanks for the tutorial! Great to see you back!

  • @arhamjamil6625
    @arhamjamil6625 2 года назад +1

    That's So Good I Was Having Few Conceptions But You Killed em all 😣💓

  • @xanaxist
    @xanaxist 10 месяцев назад

    the most easy to understand, comprehensive tutorial for Unity!!!
    thanks man!!!

  • @DJJunglemunky
    @DJJunglemunky Год назад +3

    Great video, we need more tutorials like this!

  • @TrixArmy
    @TrixArmy 2 года назад

    NGL this is the best video ever : )

  • @aikgame5874
    @aikgame5874 2 года назад

    i was w8ing for new video , thank you great job

  • @shammaalyaqoob8662
    @shammaalyaqoob8662 7 месяцев назад

    Thank you soo much for this amazing tutorial! I felt like I learned alot from this tutorial

  • @daddymccarthy
    @daddymccarthy 2 года назад

    Awesome vid! Made it to the end!

  • @jarirabbas3281
    @jarirabbas3281 2 года назад +2

    Woo bro last time when I checked you only had 200 subs but now 2.5k epic broo

  • @twosteps-paoloprazzoli
    @twosteps-paoloprazzoli Год назад +1

    Fantastic tutorial! Thx!! 😃

  • @maxzlochevsky
    @maxzlochevsky 2 года назад +1

    Thank you this helped a lot!

  • @chermainehoo214
    @chermainehoo214 2 года назад +1

    Nailed it 👍🏻✨

  • @shannitsah6997
    @shannitsah6997 2 года назад +1

    Thank you for this tutorial

  • @MDRony-qr8zn
    @MDRony-qr8zn 2 года назад

    your bestttttt. your are the boss. i am waiting for your next projects

  • @TrixArmy
    @TrixArmy 2 года назад +1

    Loving ur content U are amazing teacher

  • @newunitylearner6183
    @newunitylearner6183 2 года назад

    Really good, thanx! =)

  • @bakobaxtiar2016
    @bakobaxtiar2016 2 года назад

    thaaaank you I'm going to remake it to my final project of game programming course

  • @jasondeme5754
    @jasondeme5754 Год назад

    Perfect video👍

  • @asifameerr
    @asifameerr Год назад

    great video

  • @rodrigoa8577
    @rodrigoa8577 9 месяцев назад +2

    ah que vídeo perfeito, era exatamente o que eu queria. que cara bom.

  • @nicha2492
    @nicha2492 2 года назад

    Wow I like it

  • @canaldofetrentin
    @canaldofetrentin Год назад +2

    took me 5 hours to finish this tutorial but I did

  • @SakuraP2
    @SakuraP2 Год назад +1

    Hi bro, I just want to tell you that you can just drag the sprite onto the scene, It is so much easier than doing it manually

  • @pakhand44465
    @pakhand44465 5 месяцев назад

    goood work

  • @randomot5113
    @randomot5113 Год назад

    Hello man, nice tutorial. Can please also make a video on making a shop and in app purchase In this same game plsssss

  • @nethrace7284
    @nethrace7284 2 года назад

    keep going

  • @ongchum369
    @ongchum369 Месяц назад +1

    Help
    Why can only player 1 score points while player 2 cannot score and the ball is quickly returned ?

  • @dominicburke6697
    @dominicburke6697 2 года назад

    I cant see the start speed, extra speed and the max extra speed under my script component when I add it to the ball at 22.20 into the vid. Can anyone please help me?

  • @brillianttuition1176
    @brillianttuition1176 2 года назад +1

    This game is very nice

  • @dying_coke
    @dying_coke 2 года назад +1

    cool

  • @carrimccarthy9984
    @carrimccarthy9984 10 месяцев назад +1

    Great tutorial and I was able to get everything to work EXCEPT the SCORE!! Can anyone help? I have double checked the code and set up. I have to be missing something so small, yet so important. Thx

    • @ValoRaja
      @ValoRaja 4 месяца назад

      Same problem!! U got the problem fixed?

  • @emmetthomasmemesandgames
    @emmetthomasmemesandgames Год назад +1

    My P2 controls are not working. My editor version is 2022.1.23f1

  • @kingofthegarden9544
    @kingofthegarden9544 Год назад +1

    I need help with the MovetoScene Function, it’s not showing up 6:58

  • @hosseinghanbari3397
    @hosseinghanbari3397 Год назад +2

    Hi.bro i do not have function MoveToScene in 6:58 video

  • @thisisntchris0997
    @thisisntchris0997 8 месяцев назад

    Which version of VS Code did you use

  • @xzfert8692
    @xzfert8692 Год назад +1

    How do i do “tree”

  • @hosseinghanbari3397
    @hosseinghanbari3397 Год назад

    How to add that function?

  • @CataldoStrangi
    @CataldoStrangi Год назад

    it is not letting me download the assets folder

  • @Dronzer_IG
    @Dronzer_IG 2 года назад

    Pls make a video for another game in unity 2d ......ur video is in very detailed..........pls .... waiting for the video

  • @Rahul-vw1vx
    @Rahul-vw1vx 5 месяцев назад

    i cant able to import assets from files what should i do?

  • @otakusenpai69420
    @otakusenpai69420 2 года назад +1

    hey man can u plz upload another video converting same game into mobile game😉

  • @mariawaheeb3639
    @mariawaheeb3639 10 месяцев назад

    hello thanks for this wonderful video wish you all the best
    so i have an error its scoring from only 1 player and i used text mesh as i dont have text only so any advice ?

    • @radayan2431
      @radayan2431 10 месяцев назад

      same , did you find any solution ?

    • @danielyue6855
      @danielyue6855 8 месяцев назад

      same

    • @danielyue6855
      @danielyue6855 8 месяцев назад

      ohhhh instead of creating text mesh pro, go under legacy and there should be the regular text option

  • @underratedmind
    @underratedmind Год назад +1

    Hey Guys I need help!!
    The Hit Sound Effect (Prefab) Sound Logo also appears in the game just like in Minute 53:00 in the editor scene.
    What do I have to do to eliminate this.
    Thanks

  • @hxr8147
    @hxr8147 2 года назад +1

    40:50 I cannot attach player1 score to the score manager, it doesn't do anything, just cursor with a cross symbol shows up and The moving process is not done

    • @ValoRaja
      @ValoRaja 4 месяца назад

      Same problem...did u find any solution for that?

  • @cleve3731
    @cleve3731 2 года назад

    When i want to add functions to the play or quit button there is no ChangeScene.quit functions to choose from. I know this issue is related to updated of unity ? Please assist in my game development journey!

    • @Mzeyt
      @Mzeyt 9 месяцев назад

      did you manage to fix this?

  • @masterofgaming71BH4
    @masterofgaming71BH4 Год назад +1

    there is an error shwoing "no rigid body attached to the gameobject and the script is trying to access it"

  • @morganovens7361
    @morganovens7361 2 года назад +1

    Is there a difference between using Text and Text Mesh Pro? My player scores were only recognized as Game Objects and not as Text so I couldn't drag them into the Score Manager script in Borders. Any Recommendations?

    • @ufzero0080
      @ufzero0080 2 года назад

      Idk bro but I got an error on .text function

    • @ufzero0080
      @ufzero0080 2 года назад +1

      I think it has a difference

    • @soker5
      @soker5 2 года назад +10

      Use this in your ScoreManager.cs:
      using System.Collections;
      using System.Collections.Generic;
      using UnityEngine;
      using UnityEngine.UI;
      using TMPro;
      public class ScoreManager : MonoBehaviour
      {
      private int player1Score = 0;
      private int player2Score = 0;

      public TextMeshProUGUI scoreP1;
      public TextMeshProUGUI scoreP2;

      public void Player1Goal()
      {
      player1Score++;
      scoreP1.text = player1Score.ToString();
      }

      public void Player2Goal()
      {
      player2Score++;
      scoreP2.text = player2Score.ToString();
      }

      }

    • @morganovens7361
      @morganovens7361 2 года назад

      thanks a lot !

    • @FLNoam
      @FLNoam Год назад +1

      @@soker5 Thanks man!

  • @saadshaikh7494
    @saadshaikh7494 8 месяцев назад

    guys i have an error in p1 script my racket is automatically moving in downward direction slowing without any control on it
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class player3 : MonoBehaviour
    {
    public float racketSpeed;
    private Rigidbody2D rb;
    private Vector2 racketDirection;
    void Start()
    {
    rb = GetComponent();
    }
    // Update is called once per frame
    void Update()
    {
    float directionY = Input.GetAxisRaw("Vertical");
    racketDirection = new Vector2(0, directionY).normalized;
    }
    public void FixedUpdate()
    {
    rb.velocity = racketDirection * racketSpeed;
    }
    }
    What to do?

  • @cemals1803
    @cemals1803 Год назад

    Hi 7.04 there is no move to scene section how can aldı that

    • @Mzeyt
      @Mzeyt 9 месяцев назад

      did u manage to fix this?

  • @salmanjan1427
    @salmanjan1427 2 года назад

    Very Great video!
    the Bloom effect is not working, I've followed you all along but it is still not working ;(
    can u tell the fix?

  • @yodriftyy5147
    @yodriftyy5147 2 года назад +1

    please can someone help ive got an error CS1002 (expected ; (26,15))
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class BallMovement : MonoBehaviour
    {
    public float startSpeed;
    public float extraSpeed;
    public float maxExtraSpeed;
    private int hitCount = 0;
    private Rigidbody2D rb;
    void Start()
    {
    rb = GetComponent();
    StartCoroutine(Launch());
    }
    public IEnumerator Launch()
    {
    hitCounter = 0;
    yeild return new WaitForSeconds(1);
    MoveBall(new Vector2(-1, 0));
    }
    public void MoveBall(Vector2 direction)
    {
    direction = direction.normalised;
    float ballSpeed = startSpeed + hitCount * extraSpeed;
    rb.velocity = direction * ballSpeed;
    }
    }

  • @Qursta
    @Qursta Год назад +2

    bro pong games is bored but 🎉A GLOWİNG PONG🎉 is not boring

    • @yahyamohammed9325
      @yahyamohammed9325 9 месяцев назад

      _You have been arrested by the grammar police due to using the verb instead of an adjective in the first line._

    • @yahyamohammed9325
      @yahyamohammed9325 9 месяцев назад

      Jk but ikr

  • @tanishkjoshi25
    @tanishkjoshi25 2 года назад

    Severity Code Description Project File Line Suppression State
    Error CS0161 'BallMovement.Launch()': not all code paths return a value Assembly-CSharp
    I faced this error

  • @devidsatria1939
    @devidsatria1939 2 года назад +1

    ArgumentException: Input Button Cancel is not setup. plssss help me i stck in here

    • @DLXXXI
      @DLXXXI Год назад

      I have the same problem

    • @radayan2431
      @radayan2431 10 месяцев назад

      same lol

    • @radayan2431
      @radayan2431 10 месяцев назад

      i find a solution this it it :
      You must have deleted the Cancel axis in your Input Manager 4. This is creating an error because you have something in your scene which requires the Cancel axis (most likely a Canvas and Event Manager). Here’s how to fix it:
      Go to Input Manager (Edit->Project Settings->Input)
      Increase the Size by one
      Set the Name to “Cancel” (without the quotes)
      Set the Positive Button to “escape” (no quotes) or something similar
      That’s it! Now, you’ll likely find that you’ll have to do this several times for all the axes that are getting errors. If it’s easier, you can reset the Input Manager back to its default state by using the gear icon in the top right corner. Keep in mind this will delete any custom axes you’ve set up.

  • @thisisntchris0997
    @thisisntchris0997 8 месяцев назад

    Bruh, smh I'm stuck at the VS code part, is my VS code outdated or smthin?

  • @mikeygaming1233
    @mikeygaming1233 Год назад

    its Error why

  • @bangbatik2282
    @bangbatik2282 Год назад

    broh do you have github?

  • @user-up4dv4en4e
    @user-up4dv4en4e Год назад

    Please Give me the source code

  • @stoned_pandaa_gamingyt652
    @stoned_pandaa_gamingyt652 2 года назад +1

    Hey hooson in ball bounce script my ball is moving in same direction but i done code everything correct ..but ball moving in same direction only ..when ball touches the racket i will moving in same direction..please give me a solution as soon as .

    • @tanmaypatel28
      @tanmaypatel28 7 месяцев назад

      same problem here also did it solved for u ?

  • @PulkitMalhotra
    @PulkitMalhotra 2 года назад

    Ball doesn't bounce correctly

  • @dudugeorge653
    @dudugeorge653 Год назад

    Can anyone help me make this but with an AI instead of 2 players? please I really need this

    • @dudugeorge653
      @dudugeorge653 Год назад

      I just need the AI script not the whole thing.

    • @MinoritasBoy
      @MinoritasBoy 8 месяцев назад

      @@dudugeorge653 hello sir,are you done with it?, im currently need this too if u dont mind to give it to me :D

  • @amandalesley2375
    @amandalesley2375 2 года назад +3

    hey there, really nice video though, however i am having problems with my ball bounce. the ball does not bounce downwards when it hits the lower part of the paddle, and it does not bounce upwards when it hits the upwards part of the paddle, it only bounces directly upwards and downwards when it hits the top or bottom of the racket/paddle, and it bounces off at a high speed, sometimes too fast to control..(the bounce correctly scene).. pls can you help me out with this?? i input the code correctly and after saving the on visual studio, i got no code error so i am pretty sure its not the code.. please can you help me out with this????

    • @Oldtobykenobi
      @Oldtobykenobi 2 года назад

      @Kavindu Pabasara Geeganage thanks for this! I'm not sure what I was missing but it clearly must have been a capitalization issue somewhere. I looked over my code multiple times but this fixed it.

    • @devidsatria1939
      @devidsatria1939 2 года назад

      @Kavindu Pabasara Geeganage bro help me pls
      ArgumentException: Input Button Cancel is not setup. i stck in here

    • @PulkitMalhotra
      @PulkitMalhotra 2 года назад +1

      @Kavindu Pabasara Geeganage thanks
      i have written onCollisionEnter2D
      instead of OnCollisionEnter2D
      (it takes 1 hr. to figure it out)

  • @Xastias
    @Xastias Год назад

    Que complicado es entender todo🤯

  • @cemals1803
    @cemals1803 Год назад

    Plase help

  • @xzfert8692
    @xzfert8692 Год назад +1

    Number tree

  • @patrickleanoleano4302
    @patrickleanoleano4302 2 года назад

    You deleted Bot Attack? Sad

  • @abg2487
    @abg2487 2 года назад +1

    Is watching and doing unity tutorials is good or not?

  • @xzfert8692
    @xzfert8692 Год назад +1

    Tree

  • @xzfert8692
    @xzfert8692 Год назад

    Face reveal

  • @xzfert8692
    @xzfert8692 Год назад +1

    U are making me mad u tree

  • @PickledIce
    @PickledIce 10 месяцев назад

    This does not work

  • @Dzung909
    @Dzung909 Год назад

    i dont understand at 34:46 why positionY = (ballPosition.y - racketPosition.y) / rakcketHeight
    How do you know to use this formula and not any other formula?

  • @user-up4dv4en4e
    @user-up4dv4en4e Год назад +1

    Please Give me the source code

    • @bidoaymannabil9828
      @bidoaymannabil9828 11 месяцев назад

      do you still want it ? if yes send me your discord

    • @bidoaymannabil9828
      @bidoaymannabil9828 11 месяцев назад

      do you still want it ? if yes send me your discord

    • @ValoRaja
      @ValoRaja 4 месяца назад

      ​@@bidoaymannabil9828 u have the source code man? If yes reply !!