How to Create an Adult Game, Part 2
Hi everyone ?
I’m a long time adult game developer, (I love my job) In this tutorial we will learn how to make an adult game from 0, I accepted a challenge to create a Tutorial so that anyone without the need for programming knowledge can develop it, and take what has been learned as a basis to develop future games, We will learn from the Download of the chosen Engine, until the publication of the game, You can find out more about me through my Patreon
Warning! This is the second part of this tutorial. If you have not already, check out the How to make an adult game part 1 here.
Creating a scoring system!
(Working with UI and goals!)
Step 1- Now we need a scoring system to set a goal in the game, the goal of this game will be to find and have sex with 4 girls in the level to open a door to the next level.
For this we will need a Score counter, so we will create our first UI, this step is very important because a UI will be used in almost any game you create, so pay close attention!
Let’s start by creating a Canvas
which is a screen where all the elements of our UI will be, go to the Hierarchy
tab and right click, go to UI
, then to Legacy
and choose the Text
option (I like to use the Legacy version of the texts, but you can also use the new version) after that you will see that it automatically created a Canvas
and our first text is inside, set the name of that text to Score
.
Now go to the Hierarchy
tab and click on our text Score
and press the F key
, this will center the position of our text on the screen (Yes it looks huge) now scroll the mouse scroll until you see all the space of the Canvas
in the Scene
tab, you will see that our first text is in the bottom left corner of the Canvas, if you go to the Game tab
you will see the same, And so we created our first UI!
Here’s an example:

Step 2- Now let’s edit and make our UI more beautiful, in the Hierarchy tab, click on the Score text that we just created, and go to the Inspector tab, you will find a typing field with the name Text, this is where we will edit the text that will appear in the game interface, rename this New Text field to 0, in this same tab you will find the Best Fit option, check this option so that the text fits to a specific scale, and then in the Color field, click and select the white color and that’s it!
We already have a score marker that initially starts as 0, but we also need a marker for the goal, so let’s get to it!
In the Hierarchy tab, in the text Score, right-click on it and go to Duplicate (Or use the shortcut Ctrl + D for this) Right click on the new text Score (1), and go to Rename (or click on the shortcut F2) and rename it to Goal, now go to the inspector tab and rename the text to /4, in our scenario, move the text we just created (Goal) next to the Score text. Then select the 2 texts we created (be careful not to select the Canvas) and place them in the upper left corner of the canvas!
Here’s an example:

Step 3- Now we need to make all of this controlled and functional, and not just something visual!
To do this, create a new script that will control this type of function in the game, create the script with the name of GameManager and open it.Very important step, every time you control a UI by Script, you will need to add the following line at the top, just below (using UnityEngine;)
using UnityEngine.UI;

Now below the first one ({
) add:
public int score = 0;
public Text txtScore;
public static GameManager instance;

The variable (score) will always start as 0, which will define the amount of points that the player will have made. Now in the (void Update()
) under the first ({
) add:
txtScore.text = FindObjectOfType<GameManager>().score. ToString();

All ready in this Script, just save it!
Now let’s go back to Unity
and open the FirstGirl script
to add the function that will add points, in the (void Update()
) after the line (handjobAnim.SetActive(true);
) add:
FindObjectOfType<GameManager>().score += 1;

Okay, now save the script and go back to Unity, once this is done click and drag the newly created GameManager
script to the MainCamera
in the Hierarchy
tab to add the script to the scene camera, it will look like this:

Notice that we are missing an object in the Txt Score
field, go to the Hierarchy
tab and drag the text Score
into the field, it will look like this:

Ready! Now the result should look something like this:

Creating a Game Over!
(Transitioning scenes and initiating challenges!)
Every game needs a game over, and basically for our game it will be no different, we are going to make a drop system for the player, where if he falls into a hole or map limit, a game over screen will appear and it will be necessary to start the map again, with this we will learn how to create Scenes for our games and make the transition between them through any command!
Step 1- Let’s create a new scene for Game Over, but first save your project using the shortcut Ctrl + S
, then go to the Project
tab and in the Scenes
folder right click, Create
and then in Scene
, put the name of gameover
.

Now let’s go into our new scene, just double-click on it, you’re done! Our new scene is created! This same procedure is for creating new maps for your game in addition to a main menu as well!
Step 2 – Let’s now go to the designer of our new scene, we will need a text and a new canvas for this, in the Hierarchy menu, right click and go to UI
, then Legacy and then Text
, Now using what we have already learned create a very large name in red written Game Over
.
It should look something like this:

Now go to the Hierarchy
tab, click on the Main Camera
and go to the Inspector
, change the Background
property to a black color, then once again create a new text using what was learned just below the small and centered Game Over
with white color and with the text (Press E to try again
) go to the Game tab and see the result!
It should look something like this:

Now let’s create our script to make this screen work! Go to the scripts folder and create a Script with the title gameover and open it.The first thing we have to do when we are going to control scenes through scripts, we need to add a new library to Unity, for this in the script, just below using UnityEngine;
Add:
using UnityEngine.SceneManagement;

Now in the void Update()
below the first ({
) add:
if (Input.GetKeyDown("e"))
{
SceneManager.LoadScene("SampleScene");
}
Note that the name SampleScene
is the name of the scene we want to access as soon as we hit the “e” button, but you can change the scene name to the name of any scene in your project and use that same command!
Now save your script, go to Unity
and drag the gameover script
to the Main Camera
in the Hierarchy
menu, that’s it, you can try it now!
Step 3- Let’s now create the player’s death, save your game using the shortcut Ctrl + S
and in the Project tab
, open the game scene (SampleScene
) back to our main scene, we will need to create a hole for the player to fall and die, in the Hierarchy
menu click on Ground
and press the F
key to center (Or use the mouse scroll for this).
Let’s now delete a square from the floor (Ground1 (7)
) or whatever you choose, let’s decrease the size of the Base object
and duplicate it to create the base on the other side, position the new Base on the other side and that’s it (I’ll show you in the example) Next, we’re going to duplicate the Base one more time, and we’re going to position the new Base
at the bottom of the floor
, where the player will fall (this base already contains a box collider
so it will already advance much of the process).
Now go to the Inspector tab of this new Base
and click on Layer Ground
, go to Add Layer...
and then add a new field with the name gameover, go back to the Hierarchy
menu, click on the Base
again, and change the Layer
to gameover.
Here’s an example:

Now to finish the aesthetic part, rename this new base to (death
) go to the Inspector
tab and in Color change the value of A (Alpha) to 0
!

Now we can use this object (death) to create all the death points in the game!
Step 4- Let’s now go to the Script, open the Player script
, remember that whenever we use commands to change scenes we need to add a new library? So let’s go!
Just below using UnityEngine
; Add:
using UnityEngine.SceneManagement;

Agora na private void OnCollisionEnter2D(Collision2D collision)
antes do último (}
) adicione:
if (collision.gameObject.layer == LayerMask.NameToLayer("gameover"))
{
SceneManager.LoadScene("gameover");
}

Basically what we’ve done here is that when you tap on an object that has a collision and that has the gameover
layer, a new scene will load.
Now save your script, go to Unity
and let’s add the scene to the scene list, in the top left corner of Unity, click on File
, then on Build Settings...
With this window open, go to the Project
tab and the Scenes
folder, click and drag the gameover
scene to the list.
Here’s an example:

(In your future projects, always remember to add the scenes that are part of the game with this method)
Now close the window and test the game!
Camera following the player!
(Working with Camera Scripts)
It’s a simple but very important step for platformers, and you’re sure to use this system in countless games you can create!
Create a Script with the name CameraController
and open it, then under the first ({
) add:
[SerializeField]
private Transform target;

And finally, in the void Update()
after the first ({
) add:
transform.position = new Vector3(target.position.x, target.position.y, transform.position.z);
Save your script, and then go back to Unity
, click and drag the CameraController
script into the Main Camera
in the Hierarchy
tab, click on the Main Camera
and you’ll notice that the script in the inspector
will be asking for an object like Target
, in the Hierarchy
menu, click and drag the Player
into that slot.
It will look like this:

Now in the Main Camera Inspector
, look for Size
, and change it from 5 to 3 and test the game!
It should look like this:

Very good! Since we’ve learned everything we needed to build our first game, let’s move on to the next step!
Putting it all into practice!
(Assembling the first map and final objective)
Step 1 – Now let’s put everything we’ve learned into practice, duplicate and add new objects and create a starting map of your choice, don’t forget to also add + 3 girls to the game (following the same steps we used to create the first girl) this will be important for us to achieve the goal of 4 girls!
Also don’t forget to create a kill for the game, holes and platforms for the player to jump on, be creative!
(You can create a map of your own using the steps above, or you can just download the project at the end of this tutorial, the map I created will be available)
There’s also the option to just proceed with the short map we’ve made so far, just add the 3 girls and let’s keep going!
Here’s the map I made using just the steps in this tutorial:

Notice that I added the girls to the game, they are in the Characters folder
and their sexual animations in the Animations folder
, Here’s the location of each one:

The final goal is just to have sex with the 4 girls, so at the end we will have a “Congratulations” screen or you can create a second map using the tutorial to create a more difficult level!
Step 2- Let’s create our final screen, go to the Scenes folder
in the Project tab
and create a new scene, Right click, Create
and then in Scene
, put the name of Final.
Save the project before entering the new scene, use the shortcut Ctrl + S
, now enter the new scene and let’s assemble it.
In the Hierarchy
tab, create a text very similar to the Game Over text we created before, but with the text "Congratulations!"
and set the color to yellow
, then create smaller text underneath with the text: "Press E to play again"
It should look like this:

Now we won’t need to create a script for this scene, because the intention is to restart the map as soon as the player presses E, then we can use the same Gameover script
for this, if you want this screen to take you to a second map, just copy the gameover script and change the name of the called scene to the name of the scene of the second map!
Click and drag the gameover script
into the Main Camera
in the Hirarchy tab
and you’re done!
Now go to the top right corner, click on File
, Build Settings...
and click the Add Open Scenes
button, this button will add the Final Scene
to the project list!
Let’s modify the scripts to create the Final
condition, go to the Project
tab and open the Player
script, then in the void Update() after the first ({
) add:
if(FindObjectOfType<GameManager>().score >= 4)
{
SceneManager.LoadScene("Final");
}
It should look like this:

Ready! Now just test the game, you will see that as soon as you interact with the last girl an End screen
will appear!
Here’s an example:

And that’s it! Save your project and now you’ll have a short and working game! Remember, everything you’ve learned in this tutorial can be applied to the development of countless games!
Exporting the project!
(Creating the game executable)
Once you have a playable version of your game, to turn it into an executable and publish it, you’re going to need to do a process that we call Compilation, it’s pretty simple, let’s go?
Go to the top left corner under File
, then Build Settings...
You’ll see this screen that we’ve seen before when we save the scenes:

On this screen you will see in the left corner in the "Platform"
part that Unity can export to various types of devices, and there it is set as default the Windows, Mac and Linux device, leave this option in case you want to export your game and publish it in an executable way through Download
But in this article I’m not just going to teach you how to develop a game, I’m going to teach you how to publish it on the biggest adult gaming site today, Gamcore! So let’s use the WebGL
option, select this option and at the bottom click on Switch Platform
and wait!

After a while (depending on the processing power of your computer) the Build button
and the Build And Run
button will appear, Click on the Build button, it will ask you to choose a folder to create our HTML5 file, which is exactly the game in the format for Web, create a folder with the name of Builds
, and save inside! At this point it is normal to take a long time, depending on the amount of Assets and files your game has, and also the computational power you have, just wait!

Now go to the folder you just created, the Builds folder, it should look like this:

Ready! Now you have your game ready for publishing!
Publishing the project!
(Showing your game to the public!)
Let’s now learn how to publish our game on today’s biggest adult gaming site, Gamcore
, so let’s go!
To do this, go to the Builds folder
where the game is, Select All, right-click
and click Add to archive...
(We need to compress the game to add to the site):

On the screen that appears, put the name of your game in the file name field, and then select the ZIP option and then Ok:

In the end, your game should look something like this:

Now go to the Gamcore website: https://gamcore.com/ and at the top of the page you will find the Upload option:

Or go straight to the link: https://sandbox.gamecore.com/upload
Don’t forget to create an account to upload your game, there is a green button that says Register
, it’s in the top right corner!

Create your account and then log in to the website, you can also log in with your Facebook!
Again the link to upload the game is: https://sandbox.gamecore.com/upload
You’ll see a screen that looks like this:

Fill in the Game Name field
with the name of your game, and in File
, you need to access the file we just created, remember to check if it is in ZIP format!
In the Screenshots
field, it is very important that you take pictures of your game during gameplay, at the best times, this will attract more players to play your game! To do this you can use the shortcut Windows + Shift + S
to create custom Screenshots, or the Print Screen button
on the keyboard and paste (Ctrl + V
) into a photo editing program, such as Paint
itself, save the files (Maximum of 10) and add them to the fields!
In the Description field
, it is important that you make a description of your game in a unique way, talk a little about the story, the gameplay style and everything else you want to describe!
In the Tags field, they are basically the search tags that people will use to find your game, and also to describe the content that exists in your game, put the tags you want for example: Platform, Blowjob, Anal sex, Pervert nights
(Don’t forget to use the comma to separate the tags)
Example:

In the Width
and Height
field, set the width and height of your game, by default it is set to 1280 and 720, but you can set it according to what you want
In the CAPTCHA
field you will basically prove that you are human and not a bot, well… I think this field is self-explanatory!
And finally, click on the SEND button!!

The Gamcore team
will receive your game and test it, if your game is approved they will publish it on the site! Good luck!
Final thanks!
(Purpose of the Handbook and more!)
Thank you to everyone who followed this Manual to the end! I hope I’ve helped everyone develop their first games and publish them!
It wasn’t an easy task to develop a simple and quick manual of an adult game, but it was a rewarding experience! I hope to see your games on the site soon!
This game (Pervert Nights) is a Real game that I will continue and constantly update until it becomes a great game! You’ll be able to check out the game through my Patreon and see the current progress of the game (depending on the date you read this manual).
Just remembering that the download of the files used in this tutorial and the project itself will be at the end of this Manual with everything else needed!
See you next time!!
LINKS:
- Patreon: https://www.patreon.com/PervertNights
- Download Assets: https://www.mediafire.com/file/ze8adl6vcgy47f7/Assets.rar/file
- Download Project: https://www.mediafire.com/file/ih6wmwhz53g3miv/Project.rar/file