Develop Java games from scratch: From Beginner to Expert
Learn JAVA by developing fun games from scratch. This course is for everyone who has desire to learn JAVA. The game complexity increases with every section and you will be able to rise your knowledge throughout the course.
You will develop amazing games and you will see how JAVA works moving things on screen and objects interaction. You will also create and import pictures used in the games and get familiar with creating randomly movable enemies, animating the game characters and playing music while playing the game.
Learn how to create video games using Java, which is one of the leading free to use software development tool. You will start from the basics so you need no prior experience in Java or programming! With our lectures, you’ll be surprised what you can achieve right from the first moment you start the course.
Go on to build several games including:
- Brick Breaker: Design a paddle and break the brick map.
- Snake Feeder: Learn how to display images to feed the snake and extend its length.
- Pacman: The game talks for itself, one of the most played games worldwide. Now you will be able to create it yourself.
The course is project oriented as this is the best way to learn Java. Instead of just learning the coding concepts, you will be applying them instantly to real world games. All of the source code will be included in the end of each section, so you will never struggle to complete a lecture.
Here is how you will be thought how to build Java games.
- You will first be challenged to build the entire game yourself.
- I will show you every small detail in the cording lectures.
- After building the game you will be asked to modify the control parameters.
You will Java Object Oriented Programming concepts and be able to apply them for your own projects. Once you complete the course you will become an advanced game developer and feel comfortable to create games from scratch.
What you’ll learn
- Learn the Java basics and apply them to real world projects.
- Master the Java packages for 2D game development.
- Learn how the Object Oriented Programming is used in practice.
- Create playable well known games such as Snake and Pacman, for your own sense of achievement.
- Playing music and import pictures inside a game
- Animating game characters and the displayed text
- Take user inputs to change the game state
Table of Contents
Introduction and Set Up
2 Why Developing Games in Java
3 Source Code
4 Install Java & Eclipse – Windows Users
5 Install Java & Eclipse – MacOS Users
6 Install Java & Eclipse – Linux Users
7 Java Introductory Notes
8 Variables and Data Types
9 Arrays and Strings
10 Control Flow Statements
11 Classes, Objects and Methods
12 Playing Java Game Outside the IDE
Games Development Toolkit Java Swing and AWT
13 Game Class Structure
14 Coordinate Systems
15 Advanced Methods and Packages
16 Java Swing JFrame and JPanel
17 Java Swing Game Timer
18 Java Swing ImageIcon for Importing Pictures
19 Java Util Random Objects
20 Java Sound IO Play Music
21 Java AWT Graphics and Graphics2D
22 Java AWT KeyListener and ActionListener
23 Java AWT Draw Methods
24 Java AWT Stroking and Filling
25 Java AWT Strings and Fonts
26 Objects Intersection in Java
Brick Breaker Game
27 Introduction and Classes Creation of Brick Breaker Game
28 Main Class Development
29 Ball and Pedal Display
30 Ball and Pedal Functionality
31 Displaying the Bricks Map
32 Bricks Functionality
33 Game Restart and Score Display
Snake Feeder Game
34 Introduction and Class Creation of Snake Feeder Game
35 Main Class Development
36 Setting the Game Play
37 Snake Display
38 Snake Functionality
39 Interaction between the Snake and the Fruit
40 Setting the Score and Game Restart
41 Introduction and Class Creation of Pacman Game
42 Main Class Development
43 Set Key Variables
44 Background Initialization
45 Drawing the Maze – Part 1
46 Drawing the Maze – Part 2
47 Drawing the Maze – Part 3
48 Importing the Images
49 Drawing Pacman
50 Pacman Functionality – Part 1
51 Pacman Functionality – Part 2
52 Animating Pacman
53 Drawing the Enemy
54 Moving the Enemy
55 Dying Functionality
56 Winning Functionality
57 Drawing the Score
58 Displaying Introduction Screen
59 Pause and Stop the Game
60 Play Music While Playing Pacman