• Home
  • About
    • Bryce Newell photo

      Bryce Newell

      Here I will be writing my developer diary and will showcase some of the projects that i am working on.

    • Learn More
    • Github
  • Posts
    • All Posts
    • All Tags
  • Projects

Net Game Ep2

05 Apr 2018

Reading time ~1 minute

First bits done

Now that all of the basic systems are in place including a scene manager and all basic classes, its time to Start with the basic functions of the units. Movement and attacks are imperative to gameplay so that’s where i’m going to start.

Due to the fact that we want to be able to move the units with the mouse, we will need to make sure that the player cannot click outside of their movement distance. The best method to do this, is to use an extra sprite which is attached to the unit which will show the user where they can move and will double up as boundaries for the movement, meaning that I can check if a unit is selected then check if the next mouse click is on the “movement sprite” then move the unit to the selected grid co-ordinate.



blogc++low level programmingLLP Share Tweet +1