Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Hexmission
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hexboard-games
Hexmission
Commits
10523d0a
Commit
10523d0a
authored
7 years ago
by
ODL guest ODL guest
Browse files
Options
Downloads
Patches
Plain Diff
Added satellites
parent
b9d77804
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ideas.md
+8
-1
8 additions, 1 deletion
ideas.md
src/main/java/com/fossgalaxy/games/ggj2017/UpgradeAction.java
+43
-0
43 additions, 0 deletions
...main/java/com/fossgalaxy/games/ggj2017/UpgradeAction.java
src/main/resources/types.json
+101
-15
101 additions, 15 deletions
src/main/resources/types.json
with
152 additions
and
16 deletions
ideas.md
+
8
−
1
View file @
10523d0a
...
...
@@ -21,6 +21,13 @@
*
Asteroids (resource rich)
# Tasks
*
Implement inhertiance extention
*
EntityType.cost -> String to ResourceType.
*
Move build order and movement stuff to base game
*
Add audio
*
Fix leaking actions (Define equals in actions)
*
Implement stations
*
Implement towers!!! and defend them!
*
visualise the control space
*
Implement "color" units that are swapped out
This diff is collapsed.
Click to expand it.
src/main/java/com/fossgalaxy/games/ggj2017/UpgradeAction.java
0 → 100644
+
43
−
0
View file @
10523d0a
package
com.fossgalaxy.games.ggj2017
;
import
com.fossgalaxy.games.rts.GameState
;
import
com.fossgalaxy.games.rts.entity.Entity
;
import
com.fossgalaxy.games.rts.order.Order
;
import
com.fossgalaxy.games.rts.ui.GameAction
;
import
com.fossgalaxy.object.annotations.ObjectDef
;
import
org.codetome.hexameter.core.api.CubeCoordinate
;
import
java.awt.*
;
public
class
UpgradeAction
extends
DroneAction
{
@ObjectDef
(
"UpgradeAction"
)
public
UpgradeAction
(
String
first
,
String
second
){
}
@Override
public
void
renderHints
(
Graphics2D
graphics2D
,
GameState
gameState
,
Entity
entity
)
{
}
@Override
public
Order
generateOrder
(
CubeCoordinate
cubeCoordinate
,
GameState
gameState
)
{
return
null
;
}
@Override
public
boolean
isPossible
(
Entity
entity
)
{
return
false
;
}
@Override
public
Color
getHintColour
()
{
return
null
;
}
@Override
public
Color
getBorderColour
()
{
return
null
;
}
}
This diff is collapsed.
Click to expand it.
src/main/resources/types.json
+
101
−
15
View file @
10523d0a
...
...
@@ -9,8 +9,8 @@
"defence"
:
2
},
"cost"
:
{
"metal"
:
5
,
"gold"
:
1
0
"metal"
:
5
5
,
"gold"
:
1
5
},
"_actions"
:
[
"MoveAction"
,
...
...
@@ -20,14 +20,14 @@
{
"name"
:
"abstract_worker"
,
"properties"
:
{
"movement"
:
2
,
"health"
:
10
,
"attackRange"
:
0
,
"attackDamage"
:
0
,
"defence"
:
2
"movement"
:
3
,
"health"
:
3
,
"attackRange"
:
1
,
"attackDamage"
:
1
,
"defence"
:
1
},
"cost"
:
{
"metal"
:
5
,
"metal"
:
5
0
,
"gold"
:
10
},
"_actions"
:
[
...
...
@@ -39,16 +39,40 @@
"name"
:
"abstract_base"
,
"properties"
:
{
"controlSignal"
:
10
,
"controlSignal"
:
7
,
"movement"
:
0
,
"health"
:
1
0
,
"health"
:
1
5
,
"attackRange"
:
2
,
"attackDamage"
:
5
,
"attackDamage"
:
6
,
"defence"
:
2
},
"cost"
:
{
"metal"
:
5
,
"gold"
:
10
"metal"
:
200
,
"gold"
:
60
}
},
{
"name"
:
"abstract_satellite_1"
,
"properties"
:{
"controlSignal"
:
3
,
"health"
:
5
,
"defence"
:
1
}
},
{
"name"
:
"abstract_satellite_2"
,
"properties"
:{
"controlSignal"
:
4
,
"health"
:
7
,
"defence"
:
2
}
},
{
"name"
:
"abstract_satellite_3"
,
"properties"
:{
"controlSignal"
:
5
,
"movement"
:
1
,
"health"
:
10
}
},
{
...
...
@@ -67,7 +91,8 @@
"scale"
:
0.25
},
"_actions"
:
[
"BuildAction[blue_base]"
"BuildAction[blue_base]"
,
"BuildAction[blue_satellite_1]"
]
},
{
...
...
@@ -82,6 +107,36 @@
"BuildAction[blue_drone]"
]
},
{
"name"
:
"blue_satellite_1"
,
"_extends"
:
"abstract_satellite_1"
,
"sprite"
:{
"image"
:
"blue/spaceStation_022"
,
"scale"
:
0.25
},
"_actions"
:[
"UpgradeAction[blue_satellite_1:blue_satellite_2]"
]
},
{
"name"
:
"blue_satellite_2"
,
"_extends"
:
"abstract_satellite_2"
,
"sprite"
:{
"image"
:
"blue/spaceStation_018"
,
"scale"
:
0.25
},
"_actions"
:[
"UpgradeAction[blue_satellite_2:blue_satellite_3]"
]
},
{
"name"
:
"blue_satellite_3"
,
"_extends"
:
"abstract_satellite_3"
,
"sprite"
:{
"image"
:
"blue/spaceStation_024"
,
"scale"
:
0.25
}
},
{
"name"
:
"red_drone"
,
"_extends"
:
"abstract_drone"
,
...
...
@@ -98,7 +153,8 @@
"scale"
:
0.25
},
"_actions"
:
[
"BuildAction[red_base]"
"BuildAction[red_base]"
,
"BuildAction[red_satellite_1]"
]
},
{
...
...
@@ -112,5 +168,35 @@
"BuildAction[red_worker]"
,
"BuildAction[red_drone]"
]
},
{
"name"
:
"red_satellite_1"
,
"_extends"
:
"abstract_satellite_1"
,
"sprite"
:{
"image"
:
"red/spaceStation_023"
,
"scale"
:
0.25
},
"_actions"
:[
"UpgradeAction[red_satellite_1:red_satellite_2]"
]
},
{
"name"
:
"red_satellite_2"
,
"_extends"
:
"abstract_satellite_2"
,
"sprite"
:{
"image"
:
"red/spaceStation_019"
,
"scale"
:
0.25
},
"_actions"
:[
"UpgradeAction[red_satellite_2:red_satellite_3]"
]
},
{
"name"
:
"red_satellite_3"
,
"_extends"
:
"abstract_satellite_3"
,
"sprite"
:{
"image"
:
"red/spaceStation_023"
,
"scale"
:
0.25
}
}
]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment