Code Monkey home page Code Monkey logo

moonshot-rts's Introduction

Moonshot RTS

This is a game in development for Github Game Off 2020. Made in Go with ebiten.

Why Go?

While I usually use Unity for game jams, I decided to try writing a game in Go this time.

  • It's fun to build a simple engine from scratch, even if it takes longer time.
  • Since it's GitHub's Game Off, I want this game to be fully open source.
  • While Unity is a complete platform, it feels bloated at times and I had a terrible experience using it together with git.
  • I hope the simplicity of Go's syntax can make it easier to understand the project for anyone looking to get into Go or gamedev.

Theme

  • It's a moonshot, because it's my first attempt at an RTS. ๐Ÿ˜…
  • Building an empire out of a small settlement is a moonshot as well.

Engine

I use ebiten library for drawing images and basic game loop.

I'm trying to build a practical Entity-Component-System pattern. What I did so far is heavily inspired by EngoEngine/ecs. However, I took a bit different approach with interfaces. This is still under heavy development, though. ๐Ÿ™‚

The TL;DR version of ECS is:

  • The entire game is built out of Entities, Components, and Systems.
  • An entity is a container for components with a unique ID.
  • A component is a data structure, describing some set of common values.
  • A system is where the game logic lives for a particular area.

For example, there's DrawingSystem that draws sprites on the screen. It requires an entity with Drawable (a sprite) and WorldSpace (a position) components.

Project structure

  • internal/
    • archetypes
    • assets
    • components
    • engine
    • game
    • systems

Game

  • Right now, my idea is a mix between Age of Empires style RTS, and Civilzation resource tiles
  • However, I started out focusing on the engine, so I'm not sure where this will go yet. ๐Ÿ˜€

Assets

This will possibly change, but right now:

Running

go run ./cmd/rts

moonshot-rts's People

Contributors

m110 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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