Advertisement

Trying to create a 4 by 2 cell grid

Started by January 29, 2016 04:34 PM
2 comments, last by Khatharr 8 years, 10 months ago
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:

http://forum.unity3d.com/threads/trying-to-create-a-4-by-2-cell-grid.382758/

Good luck with that. Let us know how it turns out.
void hurrrrrrrr() {__asm sub [ebp+4],5;}

There are ten kinds of people in this world: those who understand binary and those who don't.
Advertisement

http://docs.unity3d.com/ScriptReference/RectTransform.html

Maybe this is what you need?

Ever look at this thing called quad trees?

https://en.wikipedia.org/wiki/Quadtree

Or this

http://mathworld.wolfram.com/CellularAutomaton.html

I hope this hopes.

Come on, Magnets; wait for them to actually ask a question.

void hurrrrrrrr() {__asm sub [ebp+4],5;}

There are ten kinds of people in this world: those who understand binary and those who don't.

This topic is closed to new replies.

Advertisement