Quick Math 2018

by mp_alegre in Circuits > Software

371 Views, 1 Favorites, 0 Comments

Quick Math 2018

Capture d’écran 2018-04-04 à 16.47.09.png

A game that's make learning fun again!

Building the Playing Area

Capture d’écran 2018-04-04 à 16.48.45.png

In this step, we started by placing the terrain where the ball would roll around. We created some mountains all around the terrain, to make sure that the ball wouldn’t roll off of the playing area. Than, buy clicking "add texture" and selected the texture that was saved in our computer. We took the grass texture of google image.

Creating the Ball and Placing It

Capture d’écran 2018-04-04 à 10.44.42.png
Capture d’écran 2018-04-04 à 16.51.02.png

To create the ball, we clicked "GameObject", than 3D object and than sphere. We adjusted the size of the ball in the "inspection" tab, and than we went into "transform". In transform, we changed the "scale" to make the size as we wanted. Finally, with the moving arrows, we placed the ball at the starting point.

Creating and Placing the Red Cubes

Capture d’écran 2018-04-04 à 11.05.58.png

To create the red cubes, we clicked "GameObject", than 3D object and than cubes. We adjusted the size of the cubes in the "inspection" tab, and than we went into "transform". In transform, we changed the "scale" to make the size as we wanted. Finally, with the moving arrows, we placed the different cubes all over the playing area.

Writing the #C Script for the Collision Between the Player and the Cubes

30073809_1438504896278983_1518375215_o.png

We wrote the #C script for the collision between the ball and the red cubes in MonoDevelop, by following the rolling ball tutorial (link in the reference section of our website). Than, we attached it to the cubes and the ball by clicking "add component", and adding the new script. This #C script also include the script for the collision of the ball with the cubes, the disappearance of the cubes when there is a collision, the addition of point when there is a collision, and the "You win!", when the player has picked up the 7 red cubes.

Writing the #C Script for the Camera to Follow the Player

30173704_1438521892943950_351784846_o.png

Following the Rolling Ball tutorial (link in the reference section of our website), we wrote the #C script to make the camera follow the player. Than, we attached the script to the main camera, by dragging on the "main camera" tab, int "hierarchy" tab.

Writing Questions Near Each Cube

Capture d’écran 2018-04-04 à 03.16.10.png

We added questions by clicking "GameObject", than "3D" and "3D text". Than, we wrote our question in "Text", which can be found "Text mesh" tab.

Placing All the Decor Elements

Capture d’écran 2018-04-04 à 10.40.59.png

a. Importing in obj. files the 3D elements (house, barn and pig).

For the elements that were made in Fusion360 or taken online, we had to export them in obj. into unity. Than, they could be placed and moved around the map. Finally, texture was added to those imported elements by dragging a color/texture onto the element.

b. Downloading asset "Tree Creator", from Unity Asset Store.

For the trees, we download the "Tree Creator" asset form the Asset Store. When the importation was done, we clicked on "Tree Creator" in our asset, than "branch construction" and selected the "brach master". We drag and drop the "branch master" trees on the map.