Giter Club home page Giter Club logo

spaceinvaders-102-java's Introduction

Space Invaders 102

Description

Space Invaders 102 is a Java2D tutorial game, written and placed in the public domain by Kevin Glass. It is a successor to the Space Invaders 101 tutorial that aims to cover issues in high-resolution timing in Java games, as well as some basic sprite animation.

See the tutorial for a nuts-and-bolts explanation of how the game was designed and implemented.

Timers

Unfortunately, the original version depends upon a now-unavailable timing library (the "GAGE Timer") under Windows. I've updated the code to use System.nanoTime() instead, as that's now widely available. I've lightly edited the tutorial to reflect this change.

As mentioned in the original tutorial, the various timers have different properties across different host platforms of the JVM. Later tutorials in this series use LWJGL, which includes a pair of calls, Sys.getTime() and Sys.getTimerResolution() to provide better, more consistent cross-platform timer behavior.

Build Instructions

You'll need Apache Maven 3.0+ and a recent JDK. Clone the repository, and use:

cd spaceinvaders-102-java
mvn package

to create an executable jar in target.

Running the Game

You can execute the jar by double-clicking it in your GUI, or using

java -jar spaceinvaders-java-102-1.0.0-SNAPSHOT.jar

after navigating to the target directory.

License

All Java code placed in the public domain by Kevin Glass.

Sprites taken from SpriteLib, licensed under the Common Public License 1.0.

spaceinvaders-102-java's People

Contributors

marcliberatore avatar

Stargazers

mroxso avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.