Giter Site home page Giter Site logo

javarts's Introduction

JavaRTS

My hobby project, trying to create a simple RTS game with somewhat challenging AI with only Java. Feel free to grab anything you like here, including the source code and image files!

How to run the game:

For windows users, you can download the compiled game here. After unpacking simply click on play.bat to start the game. It comes with its own JRE, so you don't even need to have Java installed.

For non-windows users, you will need to have Java installed. Download the same game package as above, start the game with CLI commands e.g. "java main.java"

About the AI:

  • AI does not cheat, its vision is limited by fog of war, and it doesn't have any advantage in resource gathering.
  • AI will send scout unit to look for player's bases and figure out player's army composition. It will use this info to adjust its own army composition, and make decisions on when/where to attack (normal/hard difficulty).
  • AI will expand to a different mining location when the current one is running low.
  • During battle, AI will pick off weakened player units first (hard difficulty).
  • During travelling AI units will wait for each other to avoid being scattered all over the map (normal/hard difficulty).
  • AI will retreat when it lost a significant number of units (normal/hard difficulty).
  • Send units to partol the outer parameter of the base, so AI can deal with player's sneak attack eariler (hard difficulty).
  • When the AI ecnounters concentrated player static defences, it will send long range units to deal with the static defence while keep other units in safe distance (hard difficulty).

Demo playthrough video:

https://www.youtube.com/watch?v=hUJWMpyWdVo

Some screenshots:

alt text

alt text

alt text

alt text

javarts's People

Contributors

phu004 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.