The Heart Of Darkness

// Lorenzo Pugliese, D Block, 10/28/2015

import java.util.Scanner;
import java.io.File;
import javafx.scene.media.MediaPlayer;
import javafx.scene.media.Media;

class TheHeartOfDarkness {

public static void Timer(int time) {

long startTime = System.currentTimeMillis();
long elapsedTime = 0;

while (elapsedTime < time)
{
elapsedTime = (System.currentTimeMillis() – startTime) / 1000;
}

}

@SuppressWarnings(“deprecation”)
public static void playMusic(String fileName) {

new javafx.embed.swing.JFXPanel();
String uriString = new File(fileName).toURI().toString();
new MediaPlayer(new Media(uriString)).play();

}

[…]

Why should we add 3D graphics, realistic physics and complex render engines to games when a simple console text game can be so exciting ? Actually, the Hearth of Darkness might not be the last triple A game but it will immerse you in a stressing atmosphere where there's only one good combination of choices that will lead you to victory ! I coded this game in Java and it features progressive text display, music and timers.

Features

  • Game
  • Java
  • Music
URL http://bit.ly/23V39PG
Share

Related Work

Chess Game

Chess Game

A 2-player chess game coded using Wolfram Language

Hamster Maze Solver / Mapper

Hamster Maze Solver / Mapper

An algorithm for SLAM mapping and maze solving created at Stanford

Java Codes

Java Codes

Different java programs I coded during my stay in Miami