Giter VIP home page Giter VIP logo

tribes's People

Contributors

franksh avatar

Stargazers

 avatar  avatar

Watchers

 avatar

tribes's Issues

Add pathfinding

Add pathfinding module, so that one can set a path for units and they move there.

Expand tilemap functionality

  • Map is divided in multiple layers: Ground, Resources (later objects)
  • Tilemaps created in Tiled Editor can be imported into the game (as JSON)
  • "isAccessible/Buildable" functions check both ground and resources layers

Add unit prototype

Add a unit prototype, implementing basic functionality. Add one unit type (idle worker unit).

Add button "create building"

Add the functionality for a create a gathering post button: Button makes building placable, new building is created at tile under mouse pointer.

Make Building placeable

User should be able to place a new building, using the button create building

  • If user clicks on "create building" button, the sprite is shown under cursor.
  • Clicking cursor when loaded with entity places the building and disables place mode.
  • Holding shift does not disable build mode.
  • Clicken build button again also disables build mode.

**Add button panel**

A generic field for buttons for test functions. Buttons are automatically created by supplying the area for the button field and, for each button, a json with button text + callback when clicked.

Add general HUD Layout

A field on the top for Score, Resources. A field on the bottom for Minimap, Controls.

ES6-Refactor and switch to Phaser 3

Change Framework from Phaser 2 to 3. Also add new build method and Typescript support. Start new from ground up and incorporate old codebase over time.

Make tile of buildings not accessible

  • Make object layer part of the map
  • Update object layer when building is built
  • Make "isBuildable" check this layer
  • Make function to update pathfinding
  • Update easystar pathfinding map whenever building is created

Replace cross-module calls with events

This includes:

  • Build button (button) and placement method (pointer)
  • Build placement in pointer should be moved to gameScene and triggered with event
  • Add method to increase food, triggered by hq

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.