This repository was archived by the owner on Jun 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#6 [Lib-Tile-Customized-Examples] Add new library Lib-Tile-Customized…
…-Examples.
- Loading branch information
Showing
10 changed files
with
884 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.versionsBackup |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Lib-Tile-Customized-Examples | ||
=== | ||
|
||
|
||
|
||
Intention | ||
--- | ||
|
||
TODO | ||
|
||
|
||
|
||
Content | ||
--- | ||
|
||
* [License](#License) | ||
* [Autor](#Autor) | ||
* [Contact](#Contact) | ||
|
||
|
||
|
||
License<a name="License" /> | ||
--- | ||
|
||
The project `Lib-Tile` and all sub-projects are licensed under [General Public License 3.0]. | ||
|
||
|
||
|
||
Autor<a name="Autor" /> | ||
--- | ||
|
||
The project `Lib-Tile` and all sub-projects are maintained by me, Peter Rogge. | ||
See [Contact](#Contact). | ||
|
||
|
||
|
||
Contact<a name="Contact" /> | ||
--- | ||
|
||
You can reach me under <[email protected]>. | ||
|
||
|
||
|
||
[//]: # (Images) | ||
|
||
|
||
|
||
[//]: # (Links) | ||
[General Public License 3.0]:http://www.gnu.org/licenses/gpl-3.0.en.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project-shared-configuration> | ||
<!-- | ||
This file contains additional configuration written by modules in the NetBeans IDE. | ||
The configuration is intended to be shared among all the users of project and | ||
therefore it is assumed to be part of version control checkout. | ||
Without this configuration present, some functionality in the IDE may be limited or fail altogether. | ||
--> | ||
<properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1"> | ||
<!-- | ||
Properties that influence various parts of the IDE, especially code formatting and the like. | ||
You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up. | ||
That way multiple projects can share the same settings (useful for formatting rules for example). | ||
Any value defined here will override the pom.xml file value but is only applicable to the current project. | ||
--> | ||
<netbeans.hint.license>gpl30</netbeans.hint.license> | ||
</properties> | ||
</project-shared-configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.github.naoghuman</groupId> | ||
<artifactId>lib-tile</artifactId> | ||
<version>0.2.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>lib-tile-customized-examples</artifactId> | ||
<name>Lib-Tile-Customized-Examples</name> | ||
<packaging>jar</packaging> | ||
<inceptionYear>2016</inceptionYear> | ||
<url>https://github.com/Naoghuman/lib-tile.git</url> | ||
|
||
<description>The library Lib-Tile-Customized-Examples contains examples how to load reduced and/or mixed predefined tilesets with own tilesets.</description> | ||
|
||
<build> | ||
<defaultGoal>clean package</defaultGoal> | ||
<finalName>${project.artifactId}-${project.version}</finalName> | ||
</build> | ||
|
||
<developers> | ||
<developer> | ||
<email>[email protected]</email> | ||
<id>Naoghuman</id> | ||
<name>Peter Rogge</name> | ||
<timezone>+1</timezone> | ||
<url>https://github.com/Naoghuman/lib-tile.git</url> | ||
</developer> | ||
</developers> | ||
|
||
<licenses> | ||
<license> | ||
<name>The GNU General Public License, Version 3.0</name> | ||
<url>http://www.gnu.org/licenses/gpl-3.0.en.html</url> | ||
<distribution>repo</distribution> | ||
<comments>The GNU General Public License is a free, copyleft license for software and other kinds of works.</comments> | ||
</license> | ||
</licenses> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>lib-tile-core</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>lib-tile-transparenttextures</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
57 changes: 57 additions & 0 deletions
57
...aoghuman/lib/tile/customized/examples/reducedtileset/CustomizedExampleReducedTileSet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* Copyright (C) 2016 Naoghuman | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.github.naoghuman.lib.tile.customized.examples.reducedtileset; | ||
|
||
import com.github.naoghuman.lib.tile.core.TileSet; | ||
import com.github.naoghuman.lib.tile.transparenttextures.TransparentTexturesTileSet; | ||
import com.github.naoghuman.lib.tile.transparenttextures.images.TransparentTexturesTileLoader; | ||
import java.util.Optional; | ||
|
||
/** | ||
* | ||
* @author Naoghuman | ||
*/ | ||
public final class CustomizedExampleReducedTileSet extends TileSet { | ||
|
||
private static final Optional<CustomizedExampleReducedTileSet> instance = Optional.of(new CustomizedExampleReducedTileSet()); | ||
|
||
/** | ||
* Returns a singleton instance from the class <code>CustomizedExampleReducedTileSet</code>. | ||
* | ||
* @return a singleton instance from the class <code>CustomizedExampleReducedTileSet</code>. | ||
*/ | ||
public static final CustomizedExampleReducedTileSet getDefault() { | ||
return instance.get(); | ||
} | ||
|
||
private CustomizedExampleReducedTileSet() { | ||
super(); | ||
} | ||
|
||
@Override | ||
protected void configureTileLoaders() { | ||
super.addTileLoader(TransparentTexturesTileLoader.getDefault()); | ||
} | ||
|
||
@Override | ||
protected void configureTiles() { | ||
super.addTile(TransparentTexturesTileSet.TT_3PX_TILE); | ||
super.addTile(TransparentTexturesTileSet.TT_60_LINES); | ||
super.addTile(TransparentTexturesTileSet.TT_ARCHES); | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...n/java/com/github/naoghuman/lib/tile/customized/examples/reducedtileset/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright (C) 2016 Naoghuman | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/** | ||
* This package allowed access to the tileset <code>Customized Example A<code> through | ||
* the class {@link com.github.naoghuman.lib.tile.customized.examples.a.CustomizedExampleATile}. | ||
* | ||
* @see com.github.naoghuman.lib.tile.customized.examples.a.CustomizedExampleATile | ||
*/ | ||
package com.github.naoghuman.lib.tile.customized.examples.reducedtileset; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters