-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from openbase/new-map
Added Tonic Ressources to all Maps + New Maps
- Loading branch information
Showing
33 changed files
with
359 additions
and
30 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
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
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
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
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
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
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
55 changes: 55 additions & 0 deletions
55
src/main/kotlin/org/openbase/planetsudo/level/save/Hexagon.kt
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,55 @@ | ||
/* | ||
* To change this template, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package org.openbase.planetsudo.level.save | ||
|
||
import org.openbase.planetsudo.geometry.Base2D | ||
import org.openbase.planetsudo.geometry.Direction2D | ||
import org.openbase.planetsudo.level.AbstractLevel | ||
import org.openbase.planetsudo.level.ResourceRandomRectangle | ||
import org.openbase.planetsudo.level.levelobjects.Resource.ResourceType | ||
import java.awt.Color | ||
import java.awt.Polygon | ||
|
||
/** | ||
* | ||
* @author Jodi_Pa | ||
*/ | ||
class Hexagon : AbstractLevel() { | ||
override fun loadLevelBorderPolygon() = Polygon().apply { | ||
addPoint(500, 0) | ||
addPoint(1500, 0) | ||
addPoint(2000, 866) | ||
addPoint(1500, 1732) | ||
addPoint(500, 1732) | ||
addPoint(0, 866) | ||
} | ||
|
||
override fun loadHomePositions() = listOf( | ||
Base2D(500.0, 866.0, Direction2D.RIGHT), | ||
Base2D(1500.0, 866.0, Direction2D.LEFT), | ||
) | ||
|
||
override fun loadResourcePlacement() = listOf( | ||
ResourceRandomRectangle(0, 0, 2000, 1732, 15, ResourceType.Normal), | ||
ResourceRandomRectangle(0, 0, 2000, 200, 10, ResourceType.DoublePoints), | ||
ResourceRandomRectangle(0, 1632, 2000, 200, 10, ResourceType.DoublePoints), | ||
ResourceRandomRectangle(950, 0, 100, 1732, 10, ResourceType.ExtremPoint), | ||
ResourceRandomRectangle(500, 433, 1000, 866, 20, ResourceType.ExtraAgentFuel), | ||
ResourceRandomRectangle(500, 433, 1000, 866, 15, ResourceType.ExtraMothershipFuel), | ||
ResourceRandomRectangle(0, 816, 100, 50, 12, ResourceType.Tonic), | ||
ResourceRandomRectangle(1900, 816, 100, 100, 12, ResourceType.Tonic), | ||
) | ||
|
||
override fun loadLevelColor() = Color(255, 153, 0) | ||
|
||
override fun loadLevelWallPolygons() = listOf( | ||
Polygon().apply { | ||
addPoint(950, 433) | ||
addPoint(1050, 433) | ||
addPoint(1050, 1299) | ||
addPoint(950, 1299) | ||
}, | ||
) | ||
} |
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
57 changes: 57 additions & 0 deletions
57
src/main/kotlin/org/openbase/planetsudo/level/save/LordHelmchen.kt
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 @@ | ||
/* | ||
* To change this template, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package org.openbase.planetsudo.level.save | ||
|
||
import org.openbase.planetsudo.geometry.Base2D | ||
import org.openbase.planetsudo.geometry.Direction2D | ||
import org.openbase.planetsudo.level.AbstractLevel | ||
import org.openbase.planetsudo.level.ResourceRandomRectangle | ||
import org.openbase.planetsudo.level.levelobjects.Resource.ResourceType | ||
import java.awt.Color | ||
import java.awt.Polygon | ||
|
||
/** | ||
* | ||
* @author Jodi_Pa | ||
*/ | ||
class LordHelmchen : AbstractLevel() { | ||
override fun loadLevelBorderPolygon() = Polygon().apply { | ||
addPoint(300, 0) | ||
addPoint(700, 0) | ||
addPoint(850, 100) | ||
addPoint(1000, 700) | ||
addPoint(0, 700) | ||
addPoint(150, 100) | ||
} | ||
|
||
override fun loadHomePositions() = listOf( | ||
Base2D(350.0, 500.0, Direction2D.LEFT), | ||
Base2D(650.0, 500.0, Direction2D.RIGHT), | ||
) | ||
|
||
override fun loadResourcePlacement() = listOf( | ||
ResourceRandomRectangle(0, 0, 1000, 700, 4, ResourceType.Normal), | ||
ResourceRandomRectangle(0, 0, 1000, 250, 6, ResourceType.DoublePoints), | ||
ResourceRandomRectangle(400, 0, 200, 100, 4, ResourceType.ExtremPoint), | ||
ResourceRandomRectangle(100, 0, 800, 250, 6, ResourceType.ExtraAgentFuel), | ||
ResourceRandomRectangle(300, 0, 400, 250, 6, ResourceType.ExtraMothershipFuel), | ||
ResourceRandomRectangle(0, 0, 1000, 50, 10, ResourceType.Tonic), | ||
) | ||
|
||
override fun loadLevelColor() = Color(255, 153, 0) | ||
|
||
override fun loadLevelWallPolygons() = listOf( | ||
Polygon().apply { | ||
addPoint(350, 200) | ||
addPoint(650, 200) | ||
addPoint(650, 300) | ||
addPoint(550, 300) | ||
addPoint(550, 700) | ||
addPoint(450, 700) | ||
addPoint(450, 300) | ||
addPoint(350, 300) | ||
}, | ||
) | ||
} |
Oops, something went wrong.