top of page
James Burke

Match 3 Unity #3 - Importing Assets, BoardManager Start


(all art assets are from our artist unless specified otherwise)

I started off by making a canvas from which the colourful background image is a child of.


I decided to design the game by having a game object with an attached script to function as the manager script for the board/grid. The board manager will be responsible for most of the main mechanics (generating the grid, filling the grid, etc). This tends to be a common approach taken, according to my research.

Exposed in the inspector panel is an array of struct where each element contains a type (enumerator), and it also takes a prefab. I've put the fox image in for the mean time.

Also public, a tile prefab.






Before importing assets, I made some adjustments so that each 'animal' had the same dimentions and were cropped appropiately (each being 824x824 pixels).

From the script so far, here's an example of what has been implemented:

The loops cover each cell of the grid, going by the x and y values. Each iteration ensures the instantiation of an element (animal), appropiate naming, and setting of its transform to be on the appropiate tile of the grid (each tile is instantiated in a similar set of loops before this code).

This is the result from tonight, next up will be properly aligning the board. The quick adjustments I made to the images were to make them high quality when scaled down.


Comments


bottom of page