Java game coding for beginners: Learn to make games using the Java programming language.
By the end of the tenth quick tutorial you will be ready to take on your first game projects. Coding in Java allows you to make games that will run on all the desktop operating systems like Windows, OSX and Linux but also it is the native language for making games for all Android devices.
Java Game Coding Level 1
This course is for you if you are completely new to programming or the Java language. This course will quickly cover everything you need to know to be building Java games as soon as possible. This course […]
Game variables
When we code a computer game, the first thing we need it to do is to ‘know’ what the current state of the game is. This might include the player’s score, how many enemy space ships there are, […]
Changing the value of game variables
The main way to change our game’s variables using Java is using a concept called operators.Operators in Java are just like mathematical operators and many of them are the same symbol. So if you coped […]
Checking for conditions in our game
In order for our game to dynamically respond to the player’s input, conform to the game’s rules and control the artificial intelligence of characters within the game; our code will need to make decisions. Programming languages […]
Branching our game code
We have seen in the last tutorial how we can detect certain conditions in our code. For example when the player loses a life, destroys an alien or gets a new fastest time. We have […]
Looping our game code
So, what do loops have to do with programming? They are a way of repeating the same part of the code more than once. We can loop over code although potentially for a different outcome each time. This can […]
Organizing our game code with methods
Methods allow to organize and compartmentalize our code. As our game projects become more and more advanced with exiting features and deep systems then methods will be one of the programming tools that will make […]
Understanding OOP for coding Java games
Object Oriented Programming OOP, is the way almost all programming is done, in almost all languages. It hasn’t been this way forever and there are some exceptions but if we are serious about building games […]
Handling game data with Java arrays
All these objects and variables are useful but what happens when we have hundreds or thousands of them? How can we possibly keep track? Java arrays are the solution and in this quick tutorial, we […]
Managing simultaneous events with Threads
So what is a thread? You can think of threads in Java programming in the same way you do threads in a story. In one thread of a story, we have the primary character battling […]
Using Java Interfaces
As the title of the tutorial suggests we will be using interfaces. Interfaces are a special type of class and we already know how to create classes. However, we will not be creating any of […]