Skip to content

Daytron/Flipit-Map-Creator

Repository files navigation

app icon Flipit Map Creator

Build Status Coverage Status Stories in Ready Dependency Status License

Flipit Map Creator is a companion JavaFX application for the upcoming game called Flipit. Allows to create, modify and save Flipit map json files.

Features

  • Create and replace tiles on click
  • Can create map with size up to 20 by 20 tiles.
  • Automatically saves a preview image file of the map.
  • Display a log of events to monitor action history

Screenshot

ScreenShot

Dependencies

Flipit Map Creator uses a number of open source projects to work properly:

  • SimpleDialogFX 2.0.0 Library for all dialog windows, Requires Java 8. Created by yours truly.
  • Gson 2.3 For converting json files to Java objects and vice versa. See license here.
  • TestFX 3.1.2 A simple GUI test framework for JavaFX application.
  • JUnit 4.11 De facto standard unit test framework for Java application.

Requirements

  • Java 8
  • JavaFX

Current Release

v1.0.0

Setup Dependencies for Maven

Add the following dependencies to your POM file:

<dependency>
    <groupId>com.google.code.gson</groupId>
    <artifactId>gson</artifactId>
    <version>2.3</version>
</dependency>
<dependency>
  <groupId>com.github.daytron</groupId>
  <artifactId>SimpleDialogFX</artifactId>
  <version>2.0.0</version>
</dependency>

For Test Dependencies for Maven

Currently using prerelease version (SNAPSHOT) of TestFX. Please add the following to your pom file.

<repositories>
    <repository>
        <id>maven-central-repo</id>
        <url>http://repo1.maven.org/maven2</url>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
    <repository>
        <id>sonatype-snapshots-repo</id>
        <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
</repositories>

Then on your dependencies add the following:

<dependency>
    <groupId>org.testfx</groupId>
    <artifactId>testfx-core</artifactId>
    <version>4.0.0-SNAPSHOT</version>
    <scope>test</scope>
</dependency>
<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.11</version>
    <scope>test</scope>
</dependency>

Development

Want to contribute? Please do open up an issue for any bug reports and feedback. I'm not accepting any pull requests at the moment.

Build

You can build the project through Maven by using the following command:

mvn clean install -DskipTests=true

Build the application in batch mode with -B, if running with headless CI server

Run

You can run the application jar with:

java -jar Flipit-Map-Creator-1.0.0.jar

Test

To run a test, choose the test suite instead of running individual test class. Run the following command:

mvn test -Dtest=TestSuite

Again, apply batch mode with -B, if running with headless CI machine.

Javadoc

Javadoc source

License

MIT