Giter VIP home page Giter VIP logo

smallworld's Introduction

SmallWorld Logo

SmallWorld

SmallWorld is a 2-player tactical game.
Players can only play one at a time on a local computer (turn based game).

Features

  • Flexible responsive UI
  • MVVM design pattern
  • Ambient sounds
  • Artificial intelligence (using Dijkstra's algorithm)
  • Hexagonal map layout
  • Random map generation (using seed)
  • Custom map generation (handmade)
  • Save/reload games

Create a new game

Select one of the available maps, then each player can choose his own

  • Pseudo
  • Faction
  • Color

A player can be replaced by an artifical intelligence (random or Dijkstra's algorithm).

Factions

Each faction has its own statistics, advantages and disadvantages

SmallWorld Units

Dwarves

Statistics

  • 5 health points
  • 2 attack points
  • 1 defense point

Advantages

  • Can move from mountain to mountain

Disadvantages

  • None

Elfs

Statistics

  • 5 health points
  • 2 attack points
  • 1 defense point

Advantages

  • 50% chance of resurrecting after being killed
  • Moves 2x faster in Forests

Disadvantages

  • Moves 2x slower in Deserts

Knights

Statistics

  • 5 health points
  • 2 attack points
  • 2 defense points

Advantages

  • Moves 2x faster in Plains

Disadvantages

  • Moves 2x slower in Swamps

Orcs

Statistics

  • 5 health points
  • 2 attack points
  • 2 defense points

Advantages

  • Gains 1 score point after each kill
  • Moves 2x faster in Plains

Disadvantages

  • None

Slimes

Statistics

  • 3 health points
  • 1 attack point
  • 2 defense points

Advantages

  • Starts with 50% more unit
  • 20% chance of resurrecting after being killed
  • Moves 4x faster in Swamps

Disadvantages

  • Moves 2x slower in Mountains
  • Moves 2x slower in Deserts

Screenshots

SmallWorld Home Page

SmallWorld Game creation Page

SmallWorld Game Page 1

SmallWorld Game Page 2

Known issues

  • Zooming one the map is relative to the top-left corner (not the center of the map neither the cursor position)
  • When A.I are playing, quit the game doesn't stop the A.I
  • Sometime loss of the "Ctrl + Mouse wheel" zoom command (probably due to some bad focus/key events implementation)
  • Using arrow keys to move on the map doesn't bring into view the tile if the tile is out of the viewport

smallworld's People

Contributors

julien-marcou avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.