Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Engine Layout

    Beginners
    2
    4
    217
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Mechanical last edited by

      Hello everyone,

      I was thinking about an Engine, where I can spawn units wich have their own mind and act on their own. These units will March towards enemy base and automatically fight when they reach an enemy or building.

      I want to keep this simple and 2D, maybe a lane battle will be good at first and then later on it can be expanded.

      To store a unit type I would use a vector,

      Vector type = {unit, attack type, rank}

      Units would be stored in an array of 10 units per player max.

      I would need a Subroutine that sorts out free slots in that array and fills them up if a unit is spawned. If a unit is killed the slot for that unit gets cleared.

      There would be a rock paper scissors principle for unit and attack types.

      Infantry, vehicles, aircraft
      Bullets, rockets, bombs

      waldron 1 Reply Last reply Reply Quote 0
      • waldron
        waldron F @Mechanical last edited by

        @Mechanical like a tower defense game that would be a awesome, not been done on Fuze yet

        1 Reply Last reply Reply Quote 0
        • M
          Mechanical last edited by

          On paper this sounds simple, but there are a few steps I never did before. By example defining units action types, for starters there are just 2 actions, move and attack.

          I need to let the unit decide by itself if it wants to move or attack, and select a valid target. Infantry couldn't shoot bullets at aircraft for example

          waldron 1 Reply Last reply Reply Quote 0
          • waldron
            waldron F @Mechanical last edited by

            @Mechanical that's probably why its not been done yet ;)

            1 Reply Last reply Reply Quote 0
            • First post
              Last post