Jump to content
  • Advertisement
Sign in to follow this  

Trying to create a 4 by 2 cell grid

This topic is 988 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Not sure how to approach this in Unity, kind of new.
The grid represents 2 teams in a top versus bottom fashion comprising of 8 players in a 4 v 4 setup.
The functionality of the grid:
A. The initial grid layout is balanced for all players.
B. The inner lines of the grid (one line across segmented into 4 parts and 3 lines vertical each segmented into 2 parts) are solely affected by the player's area changing.
1. Cell flexing is needed to keep balance between the cells when the health of players changes.  All players start with 100%.  If your enemy directly above or below you has 90% health and you have 110%, the horizontal line between the two of you should change and your cell area would increase in height,. Etc.
2. Additionally, the inner lines double as fixed paths for items to move across.
3. When a player's area is destroyed, one or more lines will come in contact with the outer frame and must be deleted to avoid item obscurity when only half or none of the icon is visible.
C. The outer lines (the stage frame) are fixed to the resolution of the screen and scales everything within it but are not affected by the player's area changing.
1. Additionally, the outer lines and the stage frame housing them do not take up the entire screen.  They share the screen with a 48 pixel high bar at the bottom that is used for the menu, scoring, and health/shield status.
There is more to this than what is explained here as I am only giving a fraction of what the game's structure is about.  Honestly, it is suppose to be a simple game but the more I think about it, it gets more complicated when you break it down.  But if I can get this part down, then I am in business.


Same thread on Unity forums:


Edited by everlive

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!