Hello, guys.
In this video, I want to show you how to publish your game on a website, but this video is taken from
my another course on how to make platformer information is actually very same, so I honestly don't
see the reason to record another video that has same information.
If something will be not up to date, be sure I will update the video, but for now it's fine.
So let's watch it together.
Hello, guys.
In this video, I'm going to show you how to post your game on a website so you can just send the link
to your friend to check it out first.
What I want to suggest here is to go to your You need to help find your project of platformer tutorial.
For example, I go to show in Explorer and then just copy this folder and paste it in so you have a
duplicate of your project just in case, you know, man, just believe me, just let it be there one
day.
You might need it if you don't need it for a couple of months or a year, you can delete it, but I
suggest you keep it just all right.
Once you have that, go to the folder you use to create this project.
Let me find it.
Yeah.
And this one, rename it to web.
Yeah.
Then we go to Unity Hub again.
Open.
We need to find that unity platform or web.
Then I'm going to choose a version and just wait until it opens.
All right.
Here we are in this project.
Now.
You can just go ahead and check it, for example.
And this one, I want to remove pause button from the screen and make sure my prefab is controlled from
the keyboard, like tested and be C checked.
All right, I'll apply overrides.
Okay, Now we can go to file.
Actually, let's go to main scene just in case.
Now let's go to file build settings and we're going to switch to WebGL.
And if you don't have it, just like I don't have it, we need to go to Unity Hub, find installs,
find data, reuse, click add modules.
And here we need to find WebGL.
All right.
It's going to take some time, so I'll click install.
But for you, it's going to be just a split second.
Yeah.
Rough transition, I guess.
Now we can go to file, build settings, find WebGL and click Switch platform.
While it does that, we can go to the browser and open new link.
That's going to be each dot i o.
This is a very famous website among indie game developers.
Lots of game gems are hosted here and in here you can create your page and here you can publish your
games and even see what other people say about it.
All right.
I'm not going to teach you how to create an account.
I'm sure you know how to do that.
If you're able to create a game, you're able to create an account.
Once you have your account, you need to go to this small arrow identifying the dashboard.
In a dashboard, you need to click create new project.
Here you can type a title project of your URL.
For example, mine will be 2D 2D platformer course, for example.
Pixel Adventure course.
This is my title.
Then there is a description.
What kind of stuff you uploaded here?
This is a game.
Can you download it or no?
You need to decide about that so we can choose HTML.
You have a zip or HTML file that will be played in browser, cool, released, or in development, just
like, you know, some basic stuff that is just, you know, some basic stuff and they are totally up
to you and what you want to choose here.
So I'll choose released pricing.
And here you can choose different stuff.
I'll choose no payments.
Then what you need to do here is to upload zip file.
I'm not sure if Apple Computer has that, and if you don't have a zip, you need to go to Google and
find a zip because this should be this must be a zip.
All right.
Must be a zip folder.
So I'll go ahead and install zip because I don't have it.
Now.
That is very easy task.
You just go to new tab and do download zip, have that stuff.
Download.
While it does that, let's go and check.
An inactive build is ready.
I believe it is, but we cannot make a build right now.
For some reason.
Let me see what happens if I restart.
Unity should be fine.
So yeah, restart of the unity helped me because we did that before.
We did install module in the Unity Hub.
Now we can go just to build and choose any folder.
I'm lazy so I'll take a desktop.
I'll use new folder.
Udemy Platformer web.
All right, let's select this folder.
Select and wait for the build.
All right.
Once that's done, you get to find the folder that you use to build it, and mine is over here.
Then we're going to right click.
We zip and click Add to the platform or web zip.
Now, I need to go back to the website that we used each dot.
I'll find upload files now that was uploaded.
We can check this will be played in browser.
And then there are some options that you can use.
You can manually set size or click to launch the full screen.
Whatever.
Let's do.
Wait.
What is the resolution?
Let me check.
Yeah.
Let's try 128 by 720.
Let's see how it's going to look.
We can add a full screen button, and I think that's enough.
You can see what settings do, but I'm not going to check anything else here.
You can tell details about your game.
What is the genre?
Click some text so it's easier to find like two D platformer and so on.
You can add the links to the store.
For example, something else can you can disable or enable comments and so on.
So let's just try to save and view page.
It's going to load it for the first time and I have it here.
Click Run Game.
And we didn't intend to go to full screen and I'll lower the volume and you can play.
Right.
Cool, right?
You have the link and you can go back to the dashboard to do some changes to your project, like add
an image description, make it public so other can test it and just send the link to whoever you want.
Well, that's it for this video.
Thank you so much and I'll see you in the next one.