Share your repls and programming experiences

← Back to all posts
HexaWar
cloud9c

HexaWar

https://storage.googleapis.com/replit/images/1555656241207_86d4faa1c6eca5270aa9ff2bf440249b.pn

https://repl.it/@cloud9c/HexaWar
https://hexawar--cloud9c.repl.co/

Hexawar is a 4X game similar to Civilization and Age of Empire - but optimized to run out of a browser. Choose between 8 empires, and battle until domination.

  • Local Multiplayer (pass & play) is supported.
  • Create an military with a variety of unit types (8).
  • Collect resources and build cities
  • Bots range from Easy, Normal, Hard, and Crazy.
  • Map size ranges from Tiny to Huge.
  • Sound Effects and Music (Turn it up!).
  • High optimization for mobility - any laptop / computer can smoothly run.
  • Settings page for fine tuning.
  • Play time: 10 min (tiny map) to 30 min (huge map)

FYI: The boatload of information below is given in the game - don't feel forced to read it all! (Though if you wanna be strategic...)

Controls

ControlKey / Button
Select Terrain / BuildingLeft Click
Select UnitRight Click
Move MapDrag
Move Map UpW or Up Arrow
Move Map DownS or Down Arrow
Move Map LeftA or Left Arrow
Move Map RightD or Right Arrow
Zoom InScroll (up)
Zoom OutScroll (down)
Select ActionRight Click (Bottom Left Dashboard)

Terrain Tiles

There are 4 types of terrain generated on a map:

  • Fields (Yellow) - allows the conversion to a Farm (produces crops)
  • Forest (Dark Green) - allows the conversion to a Samill (produces lumber)
  • Mountains (Gray) - allows the conversion to a Mine (produces extra gold)
  • Plains (Light Green) - nothing

Buildings

Note: When an enemy is on a building tile, the production is cut off until the enemy has left.
The main purpose of cities is to be able to train more Units per turn (but also gain more resources).

BuildingCostProductionTerrain
Capital03 goldN/A
CitySettler0N/A
Sawmill2 gold1 gold, 1 lumberForest
Farm2 gold1 gold, 1 cropFields
Mine2 gold, 2 lumber3 goldMountains

Resources

There are 3 types of resources able to be gained:

  • Gold - used for training units / converting all three productive terrains
  • Crops - used for training units
  • Lumber - used for training units / converting mountains into mines

Units

Costs are in order of (gold, crops, lumber)

UnitCostHealthDamageMovementRangeDescription
Settler5/0/05020Founds new Cities to expand your empire.
Scout4/1/25231Excellent at exploring, this Unit is not slowed by rough terrain, but is vulnerable to attack.
Warrior5/0/310521Fairly weak early-game military Unit.
Archer7/2/56422Powerful ranged Unit that can strike foes from afar.
Horseman12/6/25932Fast and powerful Mounted Unit. Weak to Swordsman.
Swordsman4/1/2121121Strong, front-line land Unit.
Catapult4/1/2171513Does major damage to Units and Cities from a distance, but moves very slowly.
Psychic4/1/25111A weak Unit that can convert enemy troops to your side.

Strategy

Boom

Boom refer to an economic boom, a strategy where the player focuses almost exclusively on their economy instead of investing resources for military purposes. It is commonly used to counter the Turtle strategy as a boom economy can very easily outperform a turtling economy in the late game.

  • Focus on gaining lumber and crops through making cities, as those resources take longer

Turtle

Turtle strategies typically involve the massing of armies and/or economies behind fortifications. "Turtling" is most common counter to rushs. The utility of turtling inevitably diminishes when catapults start rolling out on the field.

  • Focus on quickly producing cheap troops such as Warriors and Archers

Rush

Rush refers to a military strategy emphasizing rapid build-up as early as possible (Counters Boom). To implement this strategy, the player should focus almost exclusively on building troops to harass the enemy economy in the shortest possible amount of time.

  • Focus on trying to block production (by placing units on top of enemy buildings)

Combo Units

Some units are a perfect match for each other, and may outperform enemies even at a unit size disadvantage.

  • Horsemen and Archer
  • Catapult and Swordsmen
  • ... and more!

Extra Info (for the diehards)

CountryCapital NameCity Names (in order)
BritishLondonYork, Nottingham, Hastings, Canterbury, Coventry, Warwick, Newcastle, Oxford
DutchAmsterdamRotterdam, Utrecht, Groningen, Breda, Nijmegen, Den Haag, Haarlem, Arnhem
FrenchParisOrleans, Lyon, Troyes, Tours, Marseille, Chartres, Avignon, Rouen
GermanBerlinHamburg, Munich, Cologne, Frankfurt, Essen, Dortmund, Stuttgart, Düsseldorf
OttomanIstanbulEdirne, Ankara, Bursa, Konya, Samsun, Gaziantep, Diyarbakir, Izmir
PortugueseLisbonPorto, Braga, Coimbra, Funchal, Leiria, Goa, Vila Nova de Gaia, Aveiro
RussianMoscowSt. Petersburg, Novgorod, Rostov, Yaroslavl, Yekaterinburg, Yakutsk, Vladivostok, Smolensk
SpanishMadridBarcelona, Seville, Cordoba, Toledo, Santiago, Salamanca, Murcia, Valencia

Credits

Icons: Flat Icons and civ 5
Sound Effects: Freesound
Music: Music by Eric Matyas

Voters
Firestorm8
Nanowrimoijk
cloud9c
Comments
hotnewtop
Elexc

This hexagonal shapes and resource-driven game reminded me of my favorite board game Catan; I really appreciated the thought that went into little details from the sound effects to the game play.

xiaoge39

This game has lot of depths and more details to explore !! The document is comprehensive, but it really took me some time to figure out a solid strategy. As local player against local player, here is a basic approach I recommend:

a) First accummulate 5 golds to create a settler
b) move the settler next to a mountain. To move the settler, right mouse click, select move from menu, it opens up two layers of total of 18 tiles around you(6+12) in pink color. Then move the settler to a tile next to a mountain tile. Then "found city". This will expand your colony.
c) create a gold mine in a mountain tile, which will then increase the gold production, and hence give a player more money to buy resources.

See pictures below

By the way, Catapult is most powerful weapon, it moves only one tile at a time, but can shoot three distance (three tiles away from the catapult), great to build a defence network. Horseman is another of my favorite, which moves a lot faster, but slight less powerful in terms of damage to the enemy. When attacking either an enemy or capital, it is similar to move mode, where the range will be automatically calculated based on type of weapon/soldier. Then depending on health level, the enemy could be killed in single shot, or multiple shot.


BrandonChou

Loved the game; feels nice to be able to play a version of Civ5 that doesn't require a gaming PC

xiaoge39



share some screenshots, exciting game !!

Nanowrimoijk

really cool! and addicting

cloud9c

@Nanowrimoijk Thank you!