Code Monkey home page Code Monkey logo

Comments (2)

Winsalot avatar Winsalot commented on May 21, 2024 4

I believe that Milestone 1 could be further divided into 3 major steps:

  1. Preparation of environment:
  • Resource to set game mode. Options could be "default" and "micro-input". Should be change-able in-game and some systems (eg. Creep spawner, simple ai movement) should check it's value before running. Reason is that if micro-input is to be a separate module, then there will be a lot of systems that will be relevant only to this module, and vice versa.

  • Custom game start/map with no creep spawning and all units idle. Further steps would add unit orders, therefore units should not do anything before any order is given.

  • Add mouse support and cursor to the font-end. (Kinda works, but has some serious issues)

  1. Unit selection:
  • Decide on architecture. What part of the game stores what units are selected? Is this information stored in the unit itself, or are selected entity id's stored in a separate container?
  • Implement selection of single unit
  • Implement deselect by clicking empty space or selecting another unit.
  • Multiple unit selection.
  • Auto control groups (automatically assigned control group for each leader and their summons if available).
  1. Unit orders and unit AI:
  • OrderQueue component and UnitOrder type.
  • Review unit AI (units should behave in different ways depending on what their current Order is)
  • Implement idle order behaviour. Basically unit behaviour when no active UnitOrder is present. At current stage it would be: unit stands in place, moves and attacks enemy if it enters aggression radius.
  • Implement M-move order.
  • Implement stop order (clears OrderQueue of all orders, sets current order to idle)
  • Implement Hold position order.
  • Implement A-move order.
  • Implement focus-fire order

from shotcaller-minigene.

rodrigocam avatar rodrigocam commented on May 21, 2024 2

I'm gonna implement mouse support since I'm also gonna build the item buy system #16 that needs this dependency. I checked and bracket-lib has minimal mouse support with position and clicks data. I'm thinking of having a Selectable tag component attached to every selectable entity so we can iterate over it and check if the mouse position == entity position and then spawn a SelectEvent.

from shotcaller-minigene.

Related Issues (20)

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.