-
Space Invaders (Java desktop app w/source code)
The complete source code is below. The resources are not included, but you can see a hierarchy of what resources I used, along with their names, below. The download comes with a text file that includes the exact dimensions of each sprite, sprite sheet, and the sprites on each sprite sheet along with how many…
-
Circuit Breaker App (Java w/source code)
The following was a program I wrote back in college. Press the ‘+’ button to add an appliance, and the ‘-‘ button to subtract the last appliance. Up to 30 appliances can be entered. All appliances showing will be calculated, whether or not they have anything in their fields, so be sure to add and…
-
Basic animation Java game “Snake” (like Centipede for Windows), complete w/source code
Package Hierarchy Root directory:SnakeMain.javasnake (folder) snake folder:enums (folder)gui (folder) snake\enums folder:KeyDirections.java snake\gui folder:Level.javaPoints.javaSnakeGUI.javaSnakePanel.java The Game Download If you don’t want to copy the source code below, you can download it from here for $1: Source Code SnakeMain.java KeyDirections.java Level.java Points.java SnakeGUI.java SnakePanel.java
-
Bubble Sort Algorithm in Java
The worst case scenario in the time it takes to sort data with bubble sort is O(n²). It’s not best to use this type of sorting algorithm when you have a lot of data, but it’s efficient when you have a small amount of data. Whenever I make a game that has high scores, I…
-
Tetris Applet Source Code
Applets are pretty much obsolete these days, but they can still be a good way to learn Java and coding. The following contains the code for a Tetris applet I made a long time ago in Eclipse. But first, here’s a screenshot of the applet running: If you don’t want to copy and paste the…