Skip to content

Packaged jar version

Choose a tag to compare

@Goldspear21 Goldspear21 released this 24 May 16:50
· 8 commits to main since this release

๐ŸŽฎ FNaF-Themed JavaFX Quiz App

Welcome to the FNaF Quiz App, an interactive, animated quiz application inspired by Five Nights at Freddy's. Built with JavaFX, this project features a rich UI, music, GIFs, and a themed pause menu for a polished, spooky quiz experience!


๐Ÿš€ Getting Started

Prerequisites

  • Java 21 (or higher, e.g., OpenJDK 23)
  • JavaFX 21 SDK (JARs placed in the lib/ directory)
  • Visual Studio Code with Java Extension Pack

Project Structure

๐Ÿ“ quiz_app_package/
โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ run_app.bat                  # Batch file to run the quiz app
โ”‚   โ””โ”€โ”€ target/
โ”‚       โ”œโ”€โ”€ quiz_app-1.0-SNAPSHOT.jar
โ”‚       โ”œโ”€โ”€ original-quiz_app-1.0-SNAPSHOT.jar
โ”‚       โ””โ”€โ”€ classes/
โ”‚           โ””โ”€โ”€ ...                  # Compiled classes and resources
โ”œโ”€โ”€ server/
โ”‚   โ”œโ”€โ”€ run_server.bat               # Batch file to run the server
โ”‚   โ””โ”€โ”€ target/
โ”‚       โ”œโ”€โ”€ server_app-1.0-SNAPSHOT.jar
โ”‚       โ”œโ”€โ”€ original-server_app-1.0-SNAPSHOT.jar
โ”‚       โ””โ”€โ”€ classes/
โ”‚           โ””โ”€โ”€ ...                  # Compiled server classes
โ”œโ”€โ”€ javafx-sdk-23.0.2/               # JavaFX SDK (Windows)
โ”‚   โ”œโ”€โ”€ lib/
โ”‚   โ”œโ”€โ”€ bin/
โ”‚   โ””โ”€โ”€ ...                          # SDK files and legal docs
โ”œโ”€โ”€ README.txt                       # This file

๐Ÿƒ How to Run

You can run the application in one way

Using the Provided Batch File (Windows)

  1. Double-click run_app.bat in the project root, or
  2. Open a terminal in the project root and run:
    run_app.bat
    

Note: The batch file assumes Java and JavaFX are properly set up and referenced.


๐Ÿ’ก Features

  • ๐Ÿง  10-question quiz with randomized selection
  • โฑ๏ธ Countdown timer with animated progress bar
  • ๐ŸŽถ Background music that loops during the quiz
  • โธ๏ธ Pause menu (ESC or pause button)
  • GIF background (pause.gif)
  • Themed buttons: Resume, Restart, Quit
  • โœ… Correct/incorrect answer highlighting
  • ๐ŸŽจ Themed UI with custom fonts and effects
  • ๐Ÿ“œ Responsive question layout

๐ŸŒ Online Mode

  • Connects to a server on port 12345
  • Sends a CONNECT command
  • Submits score, time, and correct answers to the server
  • Receives leaderboard rankings

โœ… Requirements

  1. Java 21+ (OpenJDK recommended)
  2. JavaFX 21 SDK (JARs in lib/)
  3. VSCode with Java Extension Pack

โœ๏ธ Customization

  • Add questions to src/main/resources/txt/
  • Replace background music in audio/
  • Update GIFs/images in their respective folders

๐Ÿ“ฌ Feedback

Have suggestions or want to fork this for another theme?
Send feedback or bug reports here.


โš–๏ธ Legal

This project uses JavaFX, which is licensed under the GNU General Public License, version 2, with the Classpath Exception.
All Five Nights at Freddy's references and assets are for educational/fan use only. This project is not affiliated with or endorsed by Scott Cawthon or the official FNaF franchise.


Made with ๐Ÿ’€, ๐ŸŽƒ, and JavaFX and way too much coffee โ˜•.