Share your repls and programming experiences

← Back to all posts
HexaWar
cloud9c (106)

HexaWar

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)

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 lumberForest
Farm2 gold1 cropFields
Mine2 gold, 2 lumber1 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 n Civ 5
Sound Effects: Freesound
Music: Music by Eric Matyas

Commentshotnewtop
Steven_The_GuyT (202)

Woah, this is a great game!

mkhoi (197)

The greatest game ever, i dont have any phrase other than that, stagegy is one of my favorite genre and What can beat this game!!!!!

👍🌟🌟🌟🌟🌟

CullenDAvello (18)

this would've done better as a "Settlers of Catan" expantion pack https://www.catan.com/

kaldisberzins (274)

You wholesale stole the unit icons from Civilization V

cloud9c (106)

@kaldisberzins yeah I never made any icons... this was just a project I made in my free time. I’ll be worried if I make money off it. Read more here about parody law