0% found this document useful (0 votes)
14 views2 pages

Unity 2D Maze Game Tutorial 1 Hour

The Unity 2D Maze Game tutorial guides users in creating a maze game where players control a red block to collect keys and reach a princess to win. It covers the design of the maze using various tools and methods in Unity, including the start and update methods for game functionality. The tutorial emphasizes the use of prefabs and colliders to enhance game mechanics and structure.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

Unity 2D Maze Game Tutorial 1 Hour

The Unity 2D Maze Game tutorial guides users in creating a maze game where players control a red block to collect keys and reach a princess to win. It covers the design of the maze using various tools and methods in Unity, including the start and update methods for game functionality. The tutorial emphasizes the use of prefabs and colliders to enhance game mechanics and structure.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Unity 2D Maze Game Tutorial - 1 Hour

2020

You can just click in the middle and stretch or click on the X and
make it wider or taller I'm gonna make it the size of our background
all right doesn't have to be perfect we're gonna add some walls too
okay

Abstract
hello everyone welcome to unity 2d maze game tutorial in front of you you'll see the
finished product where you'll move around the screen as the red block and collect all these
keys and once you collect three keys the brown door will get removed and if you hit the
princess you win the game.

Scholarcy Highlights
 Hello everyone welcome to unity 2d maze game tutorial in front of you you'll see the
finished product where you'll move around the screen as the red block and collect all
these keys and once you collect three keys the brown door will get removed and if you
hit the princess you win the game
 If I go into and get my white block here and just drag it in to my sprites folder or you can
access it by going into your sprites folder and so 2d maze game tutorial we have our
assets and our sprites and you can put in pictures through there as well and so it's a
little bit easier just to drag it in here though
 You can just click in the middle and stretch or click on the X and make it wider or taller
I'm gonna make it the size of our background all right doesn't have to be perfect we're
gonna add some walls too okay
 If we push play and saw this our camera will show this box that we have and we have
them under walls this is where I would just keep doing this and design the maze so I'm
gonna go a little bit faster speed here and start designing my mace so you guys go ahead
and do the same by using ctrl D copying and the rectangle tool or the scale tool to start
moving things around and setting things up another option is to save an image of a
simple maze that's all I looked up and and save that file and you paste it in there
 Here we have the start method here we have the void update method and those are
automatically put in because unity has a few different methods quite a few methods that
will allow you to get going so the first thing to know is the start method that will happen
when the first frame is updated okay start is called before the first frame update so right
from the very beginning the first time you load things onto the screen update is a loop
that is constantly running and it's called once per frame and there's different ways we
can control that based off of how many frames you want to go per second and things like
that
 Normally we create a prefab which would save one instance of it and we could reuse all
the same code and tag each individual one as we went but since we haven't done that
we can and what I don't want to replace these and remake them if you hold ctrl down
and push the down arrow when it's highlighted it will keep highlighting all the way
down and we can change the tag to walls we're going to need to add a component called
box Collider so you can just search up here box

Scholarcy Summary

Introduction
Hello everyone welcome to unity 2d maze game tutorial in front of you you'll see the
finished product where you'll move around the screen as the red block and collect all these
keys and once you collect three keys the brown door will get removed and if you hit the
princess you win the game.

Results
If we push play and saw this our camera will show this box that we have and we have them
under walls this is where I would just keep doing this and design the maze so I'm gonna go a
little bit faster speed here and start designing my mace so you guys go ahead and do the
same by using ctrl D copying and the rectangle tool or the scale tool to start moving things
around and setting things up another option is to save an image of a simple maze that's all I
looked up and and save that file and you paste it in there.

Here we have the start method here we have the void update method and those are
automatically put in because unity has a few different methods quite a few methods that
will allow you to get going so the first thing to know is the start method that will happen
when the first frame is updated okay start is called before the first frame update so right
from the very beginning the first time you load things onto the screen update is a loop that
is constantly running and it's called once per frame and there's different ways we can
control that based off of how many frames you want to go per second and things like that.

Conclusion
Normally we create a prefab which would save one instance of it and we could reuse all the
same code and tag each individual one as we went but since we haven't done that we can
and what I don't want to replace these and remake them if you hold ctrl down and push the
down arrow when it's highlighted it will keep highlighting all the way down and we can
change the tag to walls we're going to need to add a component called box Collider so you
can just search up here box.

You might also like