Skip to content

Commit

Permalink
bump version to 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
wraitii committed Jun 16, 2021
1 parent 0730b46 commit 9df3b12
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,22 @@ My focus is a bit more limited: I want the player to control a single Hero chara

See the 'Issues' of this repository for some more information on the direction of Gameplay.

## Current Status
## Screenshots
<img width="350" alt="Main Screen" src="https://user-images.githubusercontent.com/1927071/122226887-ab67ac00-ceb6-11eb-8e40-4c2c6a009aaf.png" /> <img width="350" alt="Setup Screen" src="https://user-images.githubusercontent.com/1927071/122226907-af93c980-ceb6-11eb-9e2a-1e48c9bb5e2d.png" />

It's sort of playable, but the UI is not great™ and you'll never actually be attacked.
## Changelog & Current Status

## Screenshots
<img width="400" alt="Main Screen" src="https://user-images.githubusercontent.com/1927071/122038497-f1990e80-cdd5-11eb-9626-dc707b2e275f.png">
It's sort of playable, but the UI is not great™.

### v0.2
- Added a setup screen to choose your civilisation and starting province
- More enemies, & enemies can attack you (though you can auto-win).
- Handle difficulty less rudimentarily so AI can actually be dangerous.
- Allow scrolling around the map via the map edges.
- Add city icons to inhabited provinces.

### v0.1
Initial reveal - sorta playable, but not really.

## Structure

Expand Down
5 changes: 1 addition & 4 deletions gui/campaigns/grand_strategy/game/GameData.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,9 @@ class GameData
if (pv.garrison < 2)
pv.garrison++;
for (let pot of pv.getLinks())
{
if (pv.ownerTribe !== code)
if (g_GameData.provinces[pot].ownerTribe !== code)
targets.add(pot);
}
}

if (randBool(0.5) && targets.size)
{
let target = pickRandom(Array.from(targets));
Expand Down
9 changes: 7 additions & 2 deletions gui/campaigns/grand_strategy/game/MapTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,18 @@ class MapTypes
let maps = [];
let sp = spec;
let nextToken = sp.search(/\+/);
if (nextToken === -1)
nextToken = sp.length;
while (sp.length)
{
const token = sp.substring(0, nextToken);
sp = sp.substring(nextToken+1);
sp = sp.substring(nextToken + 1);
nextToken = sp.search(/\+/);
if (nextToken === -1)
nextToken = sp.length;
if (!(token in this.mapTypes))
{
warn("Unknow map type " + token);
warn("Unknow map type '" + token + "'");
break;
}
biomes = biomes.concat(this.mapTypes[token].data.biomes ?? []);
Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grand_strat",
"version": "0.1.0",
"version": "0.2.0",
"label": "Grand Strategy",
"url": "github.com/wraitii/0ad_grand_strat",
"description": "Some UX improvements tests",
Expand Down

0 comments on commit 9df3b12

Please sign in to comment.