![]() * This method will set up everything need for the game to run * This method starts the game and runs it in a loop ![]() To use this class you have to create a class that inherits it, we can use this as our main class as well. There is also a class called JFrame () that is just a frame with some extra methods that can help us, so lets use that instead. There is already a class that can handle creating a window, called the Frame (). There are a couple ways of doing this, I don't know if this is the proper or common way of doing it, its just how I've always done it. This was the way I learned how to make a game in java from reading other's code and reading the java documentation, so there may be far easier ways to do this(if someone knows an easier way, I would love to know).įirst we need to make a window. This tutorial will explain how to use java's libraries to make a simple game engine, it will not explain stuff that a quick look at java's documentation will explain. If you don't understand what an instance variable is, for example, you might not understand what is going on. This tutorial is for people who know their way around java as a language but don't know the java libraries well enough to make a game. ![]() This tutorial was requested in the Request a Tutorial thread. Posted: Sat 10:06 pm Post subject: Using Java's libraries to create a simple game engine Using Java's libraries to create a simple game engine Wiki Blog Search Turing Chat Room Members ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |