Skip to content

shengyun-zhou/Typing-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Typing-Game

A simple typing game based on Java Swing.

Builid Status

  • Windows: Build statuss

Supported System Platform

  • Microsoft Windows XP or later.
  • Linux with GTK supported.

Runtime Environment Requirements

Windows:

  • JRE 1.6 or later.

Linux

  • JRE 1.7 or later.
  • GTK+ 2.0

License

GPLv3

Build

  • Install CMake.
  • Install Java SE Development Kit(1.6 or later).
  • (Linux) Install GTK+2.0 Develop Library.(You can also install it through the software package manager in your system)
  • Switch to the root directory of the source code of Typing-Game project and execute the following commands to use CMake to generate project files and make this project.
mkdir build
cd build
cmake .. -G "${GENERATOR}" 
cmake --build .

The ${GENERATOR} represents the generator which you want to use to generate the project files.You can execute the following command to find the available generators on your platform.

cmake --help

If you intend to use Visual Studio to make 64-bit programs,you can append the identifier Win64 to ${GENERATOR}.

  • After building,all the productions can be find in build/bin directory.
Attenttion:if you modify the java resource files,please run CMake to generate the project files again.

Text File Format

  • All the texts used in this game are stored in XML files.
  • The encoding of text files must be UTF-8.
  • The root element is <typing-game>.
  • Each <text> element under the root element represents the text in each row.

For example:

<?xml version="1.0" encoding="UTF-8"?>
<typing-game>
	<text>Text in Row 1.</text>
	<text>Text in Row 2.</text>
	<text>Text in Row 3.</text>
</typing-game>

About

A simple typing game based on Java Swing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published