Skip to content

Notch's L4KD code slightly changed to run as standalone Swing application

Notifications You must be signed in to change notification settings

ndrsf/Left-4k-Dead-Swing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Left 4k Dead as a Swing application. Yep. Original code by Marcus "Notch" Petersson.

Forked from https://github.com/codingcampbell/Left-4k-Dead/blob/master/G.java

Controls: ASDF for movement, R for reloading, left mouse for shooting

To run, just run the main method in your IDE or use Maven:

  1. mvn clean package
  2. java -jar target/left4kdead-swing-1.0.0-SNAPSHOT.jar

Prerequisites:

  • Java 1.8 or later (pretty sure this would work with older versions as well)
  • Maven 3

Code changes are minimal to show the impressive and incomprehensible code :o)

My changes:

  • Added a Maven project for convenience
  • Added a main method
  • Wrapped the applet in a Swing frame
  • Removed some applet-specific, non-behavior changing code
  • Fixed a race condition between Swing and applet code
  • Formatted the code a bit with a modern style guide

Remember to give credit to the original author.

Behold:

Screenshot

About

Notch's L4KD code slightly changed to run as standalone Swing application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%