Java Roguelike Tutorial

From RogueBasin
Revision as of 06:48, 1 March 2015 by Windruf (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

Hello and welcome to the Java Roguelike Tutorial!

Java is a very popular language. With its elegant object-oriented paradigm, inherent portability and large and well-documented class library, it's an excellent language for roguelike development. The fact that Thomas Biskup's ADOM II is being developed in Java demonstrates that.

This tutorial will introduce you to the basics of roguelike development using Java and the libjcsi library.

What you need

Most people who program in java have this one already installed. If you don't, you need to get it. This is absolutely vital.
  • The libjcsi library
The article on libjcsi has a link to its homepage.
  • a run-of-the-mill text editor.
Choose an editor that suits you. Ideally, it should have syntax highlighting, which makes your life a lot easier. If you have no idea what to look for, I recommend Notepad++.
  • IDE like Eclipse or NetBeans
even if you don't understand most of its functions two of them are really helpful. Errors and Warnings IDE will show you(looking for an error in notpad is PinA) and CTRL+SPACE will help you with tipping long variablenames or find Classes.
  • a bit of Java experience
This tutorial will not teach you the basics of the language. You should know what a class, a method, a constructor etc. is. You don't need much more than that.
  • the knowledge of how to compile and run java code.
Ideally, you should know how to navigate using the console on your system, since java and javac are command line tools. However, if you have any kind of Java experience, you've probably used them before.

What you don't need

  • roguedev experience.
You don't have to have any specific roguelike development experience for this.

Get started

Java Roguelike Tutorial Lesson One

Java Roguelike Tutorial Lesson Two

More chapters will be published here as they are completed. This is a work in progress.

Credits

Currently, all code is by XLambda.