Category Archives: Learning

First Monkey-X Game: The Boss Shoots Back

The basic structure for our game is there, we need to start to make it more interesting now. Our Boss could use some work. All he does right now is move up and down.

Not exactly Boss like.

The Boss Shoots

Step 1 in making the game more interesting is having the Boss on every level actually shoot at the player.

This is actually pretty simple because of the work we did creating the character and projectile classes and their methods.

Boss Bullets Hurt

Now that the Boss is shooting, we need to make sure that projectiles that hit the player follow the same kind of rules that the player’s projectiles do. When they hit the player, they should damage the character and then disappear.

This means adding a little more logic to our CustomeEngine’s OnObjectCollision method.

Now when you play the game, if the player character gets hit by one of the Boss’ projectiles, it should get damaged and the projectile should disappear.

Extra Projectiles for the Boss

It seems like the Boss should be a little more powerful. Shooting one bullet at a time seems a little weak. So we are going to have our Boss shoot 3 bullets at once. That should make it feel a little more challenging.

To do this, we are going to slightly modify our CreateProjectile method to take a width and height offset from the character that is shooting. This will also come in handy later when we want to add powerups.

Your Boss should now be a worthy opponent firing 3 bullets at once.

Time for a Theme

All of our hard work is starting to pay off. We now have a framework for setting up levels with a Big Bad Boss at the end of each one that can move and shoot at the player.

Next we will start adding some images to the game to give it a theme.

First Monkey-X Game: Final Boss and Game State for Winning

The game is getting pretty playable, but like all good things it needs to come to an end.

If you remember from our little design exercise, we have a goal that will end the game. When we defeat the Big Bad Boss.

In this step, we will add the Boss into the game and create a Game Won state for when the player defeats the Boss.

Getting to the Big Bad Boss

The boss is going to be another character that we add to the game. We want him to be tougher than any of our enemies so far and we want him to shoot at the player to make it challenging.

Let’s start by creating the Boss character.

So now we have a field where we can put our Boss and we have a method that we can call to create him, but we don’t want to call it right away because we only want to have our Boss show up when we get far enough into the game.

So we will need 2 more things. First we need something to track whether or not it is time for the Boss to show up, and once this tracker is satisfied we don’t want to create another Boss.

Ok, at this point when you run your game, if you survive for 15 seconds or so you should get to a point where the small enemies stop getting created and you see a large purple shaded box representing the boss.

Boss Behavior

Now that we can get to the Boss, we want an EPIC BOSS FIGHT! Ok, maybe it won’t exactly be epic at first, but we can start by giving him some basic behavior. We also need to add the ability to shoot the Boss.

To start with we want to add some simple AI to the Boss’ movement. Nothing fancy, just moving the Boss up and down.

Now your Boss should go up and down the screen. Really, really simple pattern for now. We can get fancy and create more complicated logic for the movement later.

Damaging the Boss

Now that the Boss is moving, we need to be able to destroy it so we can win the game. This means we need to wire up the collision detection for our player’s projectiles and the Boss hit box. We also need to make sure the Boss takes damage when it gets hit.

Now projectiles will collide with the Boss but our current Character code won’t handle this correctly after the Boss gets hit. So we need to make a few tweaks to the Character class.

Now you will need to go into your main Game class and update the constructors for your Player and the Final Boss. The regular enemy constructor is fine since it just uses the default. There is also a check when firing projectiles that needs updating.

Now your projectiles should hit the Boss and damage it. However you should notice that once the Boss’ health drops to 0, the Boss is still there and the projectiles just fly past.

We still need to make the OnUpdate method a little smarter about what happens when the Final Boss is destroyed.

Destroying the Boss and Next Level

Destroying the Final Boss is simple enough. In the OnUpdate code, simply add a check to remove the Boss from the game when his health reaches 0. But what we really want to do is change scenes to a show that we beat the boss.

In order to give us some room to give the game more depth, we are not actually going to have the player win the game after beating the first boss. Instead we are going to have the game transition to a Next Level scene.

Now we have a scene we can transition to, lets transition to it when our Boss dies.

And we don’t want to get stuck there so lets add a method to allow the player to continue.

Now when you play the game, after you destroy the Final Boss, you should get to the Next Level scene. Then if you hit enter it should start play again but your score will remain the same.

Actually Winning

What we really want to do in this chapter is give the player the ability to beat the game. In order to do that we need to add 1 more scene, the Game Won scene.

If you have been following along, you have already gotten pretty familiar with adding scenes to the game by now, and could probably do this yourself. Just in case here is the code for the Game Won scene.

Now we need to be able to actually get to this scene. Defeating the Boss doesn’t get us there, it only gets us to the next level, and right now we have infinite levels.

First let’s put a way to track what level we are on and set a maximum number of level. Then we can use those 2 values to tell us when to end the game.

Now whenever we get to the Next Level, lets update our current level and see if it is the final level.

Now when the player beats the boss on the last level, they have beat the game.

In the next section we will make the Boss a little tougher and let him shoot back.

How’d I do? Full Review of 2016

Its 2017. A new year and a new set of goals.

But one of the things I learned in 2016 is the importance of occasional reflection and evaluation. So before setting some new goals for myself with this blog and with making games, I am going to reflect a little on this past year’s goals and how I did.

Writing

Goal: Write 3 posts per week and publish 2 to build a small buffer of unwritten posts. This would have been 156 posts written and 104 published.

Actual: 70 posts written and published.

What’s great about this? Even though I did not hit my goal, in fact I came in just under half of the writing goal, I almost tripled my volume from 2015 (only wrote 26 posts that year). This is fantastic!

Games

Goal: Make one game per quarter (every 3 months) and release each of those games on the Play Store for Android. So 4 games and all released.

Actual: 2 Games finished, 1 about 50% of the way, and 1 idea kind of left to die. Only 1 of the 2 finished games was published to the Play store.

What’s great about this? This is the first time I have released a game on Android. I can now point people to my game or show it to them from my own phone. I learned a ton turning it into a multiplayer game and releasing for Android that can help me out in the future. In fact I am probably going to go back and release at least one of my games from 2015 to Android.

Reading

Goal: Original goal was 1 book on game design every 6 months, which I modified to 1 per quarter. So 4 books on game creation or game design for the year. Also read 1 article on game design or watch 1 video on it every week.

Actual: I read 3 books specifically related to making games and game design and several that were helpful, such as Clean Code. Not only that but I read over 25 books total last year. For the articles and videos, I did not keep track of them like I should have, but I read way more than 52 articles and watched quite a few videos and interviews on the subject. One of the goals I exceeded greatly.

What’s great about this? I learned a ton this year about making games, game patterns, game types, and different parts of the game making team. And I found so many more books to read for 2017.

Audience

Goal: Roughly 100 unique visitors a month by the end of 2016.

Actual: More like 30 or 40 although I had a couple months where it was more than 100. I switched analytics trackers in December so I lost some history, but this is to give me better information in the future.

What’s great about this? I actually started telling people about my blog and sharing some of my posts. This is way better than last year where I am not sure that more than 5 people visited my blog the whole year. Also, I actually hit my goal a couple of months.

Important Lessons

Written goals are super valuable. And they are even more valuable if you review them periodically.

Simply having the goal of getting 100 people to view my blog every month would not have been enough if I had not taken a measure every so often to see how I was doing and to remind myself to do something about it.

It also helps you see when your focus is on one of the goals and the others are suffering because of it.

Bigger goals are better because you are going to fail anyway.

One of the important things I learned this year from reading the 10X Rule by Grant Cardone is that most people fail at their goals. Only meaning that they don’t hit 100% completion on them.

So do you want to fail at a small goal or a big goal. If you are only going to get 50% of the way to your goal, you want a bigger goal. Because 50% of 100 is 50, but 50% of 1000 is 500.

I really felt this with writing especially. Upping my writing goal, even though I did not hit it, significantly increased my writing volume.

Overall 2016 was a huge improvement and I am looking forward to making more progress in 2017.

First Monkey-X Game: Restarting the Game

Now that the player can get to a game over state, we need to let them restart the game without having to refresh the web page.

Hit ENTER

We will add a new check for after the player has been destroyed for the ENTER key to be pressed to try again. Also we will add a message in the game over screen to tell players what they need to do.

Let’s start by adding the instructions to the Game Over screen on how to restart.

Now we want a way to reset the game whenever ENTER is pressed from the Game Over scene. We will do this by creating a small method in our game that goes through and deletes all of our enemies and bullets and recreates the Player.

You will notice that we have a new method here called CreatePlayer. Our next step is to refactor the code from our OnCreate method into this method so we can recreate our player when we reset the game.

The final step is to add the code to call the GameReset method when the ENTER key is pressed from the Game Over state. This will make its home in the Game’s OnUpdate method.

And now our player can easily start over when their little character gets destroyed.

Our next step will be creating a boss character and an end state to our game.

Books I Read in 2016

I love reading. So much so that I read over 20 books this year.
This is a brief breakdown of most of the books I read.

Game Design and Game Creation Books

Since I am teaching myself game design, I started reading books related to getting better at making games. There are several more in this category that I plan on reading for 2017.

The Art of Game Design: A Book of Lenses – Jesse Schell

This was the main book I found when Googled which books to read about game design. It is an awesome book covering game design pretty thoroughly. It is a long read and full of great information. I would definitely recommend anyone who is making games or thinking about making games give this a read.

Game Programming Patterns – Robert Nystrom

This is a free to read online book (you can purchase print and e-book formats) that covers various patterns that you find in games and game engines. Even if you are using an engine that takes care of most of this stuff for you, it is still worth a read to learn about what is going on behind the scenes.

Making Games with PhaserJS – Thomas Palef

I mainly read this book to get some ideas on the format of a book teaching people how to make a game. One of the most useful ideas I got from reading it was to look into the engines and plugins that were made for Monkey-X that handled physics and other things I had been calculating before. It is what led to me looking into FantomEngine. A really good read and a good tutorial for learning the PhaserJS game framework.

General Programming Books

My daytime profession is being a programmer and the games I make are primarily video games. It follows that getting better at programming would greatly benefit me.

Clean Code: A Handbook of Agile Software Craftmanship – Robert Martin

One of the most influential books that I read this year. It really helped me be more mindful about the way I made my games and wrote the code to make it easier to come back to. The difference in the way I wrote and looked at code before I read this and after is huge. Anyone who is going to write code to make a game should read this book. I will probably read it again in 2017 as a refresher.

Agile Web Development with Rails 4 – Sam Ruby, Dave Thomas, DHH

In teaching myself Ruby on Rails this year, I went through this book and did the exercises in it. It is an okay guide to the Rails framework and a pretty solid foundation for a beginner.

Books on Productivity

If you can figure out how to create more value in an hour than anyone else, you can probably rise to the top and write your own ticket.

Linchpin – Seth Godin

A pretty good book about being the kind of person that is really valuable to a company. Can strongly recommend.

The 10X Rule – Grant Cardone

Basic message is make your goals bigger and push harder for them if you want to achieve success that others can only dream about. Inspiring. Definitely worth the read.

The War of Art: Break Through the Blocks and Win Your Inner Creative Battle – Steven Pressfield

I wrote about some of the ideas that I had heard from this book, then I actually read it. Strange order I know. The author primarily warns you about Resistance and encourages you to fight through it and not let it stop you.

Do the Work – Steven Pressfield

Written by the same guy who wrote The War of Art, this is a short book that kind of walks you through a project and gives you warnings and tips about how to finish a project. I especially like what it says at the end. Ship your project, then start a new one. Liked this a little better than the Wart of Art.

The 12 Week Year – Brian Moran

Basically saying you should set 12 weeks worth of goals at a time, not 12 months although they might be the same size goals. One of the reasons I picked this up was because I noticed that my goals were morphing and evolving over the year as I learned and got more information. The plan in this book is ok and I am going to start 2017 by trying it out.

Action Strategies for Personal Achievement – Brian Tracy

This is not a book. It is a course that you can get on Audible and it is pretty long. There is a ton of good information in this course. Definitely recommend getting it and listening to it. I am currently listening to it again because it has so much good stuff in it.

Finance and Business Books

We all deal with money, almost on a daily basis. It would benefit everyone to master this particular area. Also, understanding business will help you understand money.

Money Master the Game – Tony Robbins

Book about how to invest using the strategies of the super wealthy. Covers proper mindset about money and then tells you how even low income people can invest to have a good retirement. Definitely worth a read if you invest in the stock market or have a 401K or IRA.

The E-Myth Revisited – Michael Gerber

Awesome book. Really powerful look at small businesses and entrepreneurs and why they fail. Thankfully it also includes how to do it right. The key is systems. Will be reviewing this book again in 2017 as well. Must read for anyone starting a business for the first time.

Never Split the Difference – Chris Voss

This book is about the art of negotiating effectively. The author takes skills he learned as a hostage negotiator for the FBI and applies it to business and life in general. Super powerful book. Will be keeping it handy.

Millionaire Real Estate Investor – Gay Keller

I bought my first home this year and I am looking into doing real estate investment. This book was recommended by someone I know who has invested successfully in real estate as the only book he would recommend. It has good, actionable strategies and plans for investing in real estate. Definitely pick this up if you are planning on doing any real estate investment.

Rich Dad, Poor Dad – Robert Kiyosaki

This book is primarily about having the correct money mindset. Getting rid of the limiting and disempowering beliefs you might be holding about money and replacing them with stronger beliefs and understanding. Great read.

Self Improvement Books

One of the things I picked up near the beginning of the year was that if you work on your job you can make a living, but if you work on yourself you can make a fortune. To that end I read several books and listened to several courses and talks to work on myself.

Outwitting the Devil – Napoleon Hill

I listened to this on Audible on a recommendation and I can recommend this format as well. The voice actor for the Devil character does a superb job. The format is an interview with the Devil who tells his secrets for keeping people from being productive and living good lives. This was written by the same guy who wrote Think and Grow Rich (which you should also read).

How to Win Friends and Influence People – Dale Carnegie

Powerful book on how to interact with people in a way that you both come out of the interaction feeling positive. Good warnings on common missteps and great advice on how to form better relationships. I read this 3 times this year. I will be rereading it next year.

Re-Awaken the Gian Within – Tony Robbins

Pretty good book about creating lasting change and how to get what you really want out of life. Would recommend reading. You can get it for free. I may reread it soon.

7 Habits of Highly Effective People – Stephen Covey

Classic book on self development and self improvement, and I now know why. Stuffed with value, you should definitely find yourself a copy of this book. One of the most interesting ideas for me that the author puts a name to is the Emotional Bank Account. It spells out a phenomenon I have seen occur all the time with regards to various relationships.

The Power of Now – Eckhart Tolle

Weird book. Has some good ideas in it such as not letting past and future events give you anxiety. Had some trouble following the written style, I imagine it would be easier to listen to. Some of the stuff in it is kind of mystical sounding. Not a strong recommendation on this one, but there is value here.

Good to Great – Jim Collins

Another classic book on self improvement. Comes up with various principles on what it takes to become great and then gives case studies. A solid read.

Man’s Search for Meaning – Victor Frankl

An interesting little book written by a Jewish Psychologist (Psychiatrist?) who survived the Holocaust and being worked to the bone in a concentration camp. Some good points on the meaning of life.

As a Man Thinketh – James Allen

More of a pamphlet than a book. This short read is still super valuable. You can find it for free on Project Gutenburg. Wholeheartedly recommend.

Fiction

Although a lot of my reading this year was focused on making games, self improvement and business, I still found some time for a few good fiction books.

Atlas Shrugged – Ayn Rand

Huge book. One of the thickest on my bookshelf. It is also thick with a great story and a great point. Super enjoyed this book and the underlying message. 100% recommend reading it although I would recommend getting the Kindle version for portability.

Catch 22 – Joseph Heller

I had heard this phrase growing up and wanted to learn about its source. This book was a ridiculous story and very entertaining. The author has a way with wording sentences that was fun and may help you increase your vocabulary. Can definitely recommend this as a entertaining read.

Other

Evolution 2.0 – Perry Marshall

An look at evolution from an communications engineer perspective. Very thought provoking and well written. Definitely recommend this to anyone who is on either side of the evolution/creation debate as a valuable perspective.

The Reading List Is Growing

I already have more books than this that I want to read in 2017, not to mention the ones in this list that I want to reread. We’ll see how far along I get.

First Monkey-X Game: Player Destruction and Game State for Losing

Our player can fire projectiles and destroy enemies. He can run into enemies and take damage. But right now the player does not get destroyed.

In this part of the tutorial, we will move to a Game Over state whenever the player gets destroyed. This will cover some of the basics of FantomEngine’s layers and scenes.

Game Over State

Right now, we only have the default layer and scene which we are playing our game in.

In order to be able to move to a Game Over state, we need to create a new scene that the game can transition too.

Now we have a play scene that we will run the game in, and a game over scene that we will show when the player gets destroyed.

Right now the game over scene doesn’t have anything in it. In the game’s OnCreate method, we will build our game over scene by adding some text that says “GAME OVER”.

It is important to remember with FantomEngine that whatever layer is the current default layer will be the one that things get added to. This is why we need to change the default layer to the game over layer when adding the Text object and switch back when we are done.

NOTE: The font system is not particularly well documented for FantomEngine. It supports FontMachine and EZGui style fonts. You will need a PNG file and a TXT file describing the layout in your project_name.data folder for it to work. I was able to use a tool called Hiero to convert Google font VT323 to this format. There will be an appendix section covering this. There is a sample font in the examples that come with FantomEngine which you can use in the meantime. I will also try to make the converted font I did available.

Switching Scenes

Our final step will be to add a check to the OnUpdate method to switch the scenes if the player is destroyed.

And now we have a playable and basic version of our game where the player can move, shoot enemies, and be destroyed which ends the game.

November 2016 Goal Review

Time to review November before it gets too far away.

Goals

  1. Write 3 Blog Posts Per Week and Publish 2 – Only 4 written in November. My main focus in November was not so much on writing but on my next goal.
  2. 1 Game Designed, Created, and Released Per Quarter – This was the primary focus in November. I spent a good deal of time stabilizing the multiplayer server code for the game then on creating a build of it out on Heroku so that the web and eventually Android clients can play multiplayer on it. I was able to release the game out on Itch.io in November, and at the time of this review, it is also on the Google Play store for Android (although that was done in December).
  3. 1 Book Read Every 2 Months on Game Design – Still reading through the online version of Game Programming Patterns. Haven’t made a lot of progress through it because I have several other books that I am reading through. I usually have 3-5 books that I read through at once and usually only 1 of those is game related.
  4. 1 Article Read Or 1 Video Watched About Game Design/Creation Per Week – Again I watched a few more Extra Credits videos that came out in November and I have been reading the API reference for the Monkey-X FantomX engine. Refocusing on this a bit in December. However, I did go to a local game dev meetup in my area and followed along a bit with a Unity tutorial that was being taught. I also met some awesome guys who are making games in my area. I would strongly encourage everyone to do this. One of the guys told me a bout a game he was working on where you play through sound. It was pretty cool, you can check it out on GameJolt
  5. Get 100 People Reading Evolving Developer Per Month – Honestly have no idea how I did in November. I just switched analytics from Clicky which was fine and fairly lightweight, to Google analytics so I lost any history I had and Clicky’s free account only gave you like 30 days history anyway. But now I will have a little more insight and history as I go forward.

What Went Right

Game #2 was finally released to where people can play it. It is stable and multiplayer works through Heroku. I was able to write some good tutorial steps that I will turn into chapters of a book on making and releasing your first game using Monkey-X. And I met some awesome people in my area by going to a local meetup.

What Is Not Perfect Yet

I think this has mostly been a theme for the year, writing volume not at intended level. Looks even lower than average because I forgot to do the October review until December. Also I need to start documenting the things I watch and read so I can better track my progress. Finally, I need to work on solving more people’s problems because that is how to increase traffic.

Corrective Measures

I have gotten my sleep schedule back to pretty regular and have been doing more writing and programming as a result. Working on building a habit of writing down immediately when I watch or read something relevant to game creation. For helping more people, I need to start looking for problems to solve. This means reading blogs, forums and QA sites to find problems to solve and write about.

Gonna try a new goal pattern in 2017, stay tuned.

First Monkey-X Game: Enemies and Collision

Now that the player can move around the screen, let’s give him some enemies to avoid.

Start by adding a collection to hold our enemy characters.

Now we want to modify the Character class just a little so we can have enemy characters and all of them don’t move when the player touches the controls.

Since we are only going to create 1 player character and we are going to be creating multiple enemies, we are going to give the is_player variable a default of ‘False’ so we can make all our enemies by only passing the first parameter.

Now we need to go and change our player creation code to tell the game that it is a player

Make Some Enemies

Now it is time to make some enemies. We are going to start by making a little generator that creates enemies every 3 seconds or so in our OnUpdate method. We also need to initialize our enemies list.

Now when you run this, you should have some little yellow boxes floating across the middle of the screen every 3 seconds.

Randomize the Enemies

Enemies that always come straight down the middle of the screen every 3 seconds are not that exiting. Let’s spice it up and improve our enemy creator code.

We are going to do 4 things. First we want to randomize where the enemies start. Next we want to randomize how fast they are going. We also want to randomize how often they appear. Finally we want to randomize how big they are and what color they are.

Running into enemies

Now that we have some enemies flying around the screen, lets add some code that checks if we ran into one of them or not.

This adds the checks, but right now we don’t have a way to tell the engine to do anything about them.

What we want to do is extend the engine so we can override its OnObjectCollision method. To do this we are going to create a CustomEngine class that extends Fantom Engine. Create a new custom_engine.monkey file and put in the following code.

One of the ways of passing information back and forth with the engine is by setting Tags and Text on the object. In this case we are going to tell the engine that whenever a PLAYER object and an ENEMY object collided, mark the ENEMY object as DESTROYED and make sure it cannot collide with the PLAYER again.

Now we need to go back and add the text to the player and enemy boxes. Also, in our OnUpdate method, we will remove all the enemies that get destroyed.

Now when you run the game, every time your little character runs into one of the little enemy squares, the enemy should disappear.

Now the Game Truly Begins

With collision working, we can start adding projectiles for our hero to stop the enemies before they even touch his little box.

Tutorial Part 6
Tutorial Part 8

Game #2 of 2016 Alpha Release

Drone Tournament (Game #2 of 2016) is out on Itch.io. The elephant is (mostly) eaten. There is a lot of work that could be done to the game, but the core is working and playable in a multiplayer format.

drone tournament screenshot

Right now it is really only playable from a PC with a keyboard in the browser. There is no way for a touch device to end their turn.

However, I am figuring out how to get a build of the game working on Android and will be releasing a Beta version of that as soon as possible.

Looking forward to adding polish and new features to this game. I may make it my only project of 2017, not sure yet.

Setup for Making Your First Game

Like most creative things, it takes a little setup before we can start actually making our game. A lot of this stuff you only half to do once, and future games are even easier to get started on.

If you have been following along, you already have Monkey-X installed and can open up the TED IDE to write some code. If not, go back to the first part of this tutorial and get it installed.

The Fantom X Module

For this first game we are going to use a Monkey module called Fantom X (previously Fantom Engine) to do some of the heavy lifting for things such as collision and user interface.

It includes access to Monkey’s Mojo framework and gives us a lot of nice tools.

Install the Module

Head over to fantomgl.com and under Fantom X, select download.

Once the zip file is downloaded, unzip the file and copy it to Monkey’s modules folder.

Monkey Modules Folder

Import Fantom X and Start Your Engine

Now that Monkey is installed and Fantom is installed, we need to bring the Fantom X module into our game file and create an instance of the engine. To do that we will import Fantom X, create our Game class, give it an engine object and start our OnCreate method.

This creates an instance of the Fantom engine that will be managing a lot of our game for us.

The Main function is what Monkey needs to have in the file that you build to run. In the Ted IDE you can click build and run and this should run without errors. All you will get is a black screen but that is alright for now.

Set the Scene

Fantom has Layers, Scenes and Objects. A Layer is a collection of Objects. A Scene is a collection of Layers. A game is a set of Scenes that are like the various states (menu, first level, etc) that the game goes through.

One of the things it needs to know when it starts up is which scene to start in. So we need to set the default scene in our OnCreate method.

Also the engine can operate with various Layers, allowing you to have a background and a foreground and to simulate height and depth for 2D games. While we set the default scene, we are going set the default layer as well.

Even if you are copying and pasting the code, it is a good idea to try to run it and make sure you don’t get any errors.

Add Update and Render Methods

The final part of our setup is going to be adding the OnUpdate and OnRender functions. We will go ahead and use the engine to draw some text in them just to make sure they are working.

Here we create our OnUpdate method and call the engine’s Update method. First we find out how long it has been since we last called this method with CalcDeltaTime. Then we divide that by what we expect our framerate to be in order to get a speed factor to pass to our the engine’s Update method. This will ultimately affect each object when we modify it’s speed later.

In our OnRender method we clear off the screen and make it completely red. Then we set the color of what we are about to draw. After that we draw text that shows the position of our cursor or our touch input in relation to our game.

Run it now and test it out.

Setup Complete

Now that we have a basic shell for our game we can start adding the various scenes and objects together to make our game.

Tutorial Part 4
Tutorial Part 6