Git Product home page Git Product logo

rollaball's Introduction

Rollaball

A simple game in Unity to learn basics about this engine.

Setting up the game

Set up was interesting as it was my first ecounter with the editor. I tryed to set up the game so that I have a 'playing field' with walls all around to serve as a natural barrier of the playing field. As a player I created a ball to which I applyed a Rigidbody element to react to gravity. I also added a 'collectables' to act as game objects that the player will try to collect to win the game

Game mechanics

To make the ball move I used the InputSystem packege in Unity to take the inputs from a keyboard and transfer the movement onto the ball, I also multiplyed the value of the movement by a certain positive number to make the ball go faster. For the collectables I made them spin on the place to make the game more visual. I edited the PlayerScript file so that when the ball (player) would collide with the collectable it would dissapear and increas the overall count of collected items.

Some text to finish it up

To keep the player informed I added a text to the game that would display how many collectables the player already collected and if he would collect all of them a text saying 'You WIN!' would be displayed.

Playable version WebGL

Try out the playable version of this game here: Roll-a-ball

rollaball's People

Contributors

simonfrayer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.