GithubHelp home page GithubHelp logo

roll-a-ball's Introduction

Roll_a_Ball

The Unity3D initial tutorial done in Arcadia.

Background

Unity3D is a game engine with a freely downloadable editor and IDE. The first tutorial is here https://unity3d.com/learn/tutorials/projects/roll-ball-tutorial and is a game where you roll a ball around an environment and pickup squares.

Arcadia is an extension to Unity3D that allows you to write your game in Clojure on the CLR.

This repo is the Roll a Ball tutorial in Unity written in Arcadia, with as much a one to one mapping so you can follow it along.

How to get running

  1. Download and install Unity -> https://store.unity.com/
  2. Clone this repo -> git clone https://github.com/mlakewood/roll-a-ball roll-a-ball
  3. Install Arcadia -> $ cd roll-a-ball; ./install_arcadia.sh
  4. Start Unity3D and open the roll-a-ball project.
  5. Navigate to the project view and open the Roll a Ball scene. You should see a number of game objects including a StartObject
  6. Once Arcadia has started connect the Arcadia Repl.
  7. Import the rollball.core namespace and evaluate.
  8. Run the following code:
rollball.core=> (require '[arcadia.core :refer [hook+]])
nil
rollball.core=> (def start-object (first (objects-named "StartObject")))
#'rollball.core/start-object
rollball.core=> (hook+ start-object :start #'start)
#unity/Object 9812
rollball.core=> 
  1. Press the Play button in Unity and you should get the playfield up and be able to move the ball around with the arrows.

roll-a-ball's People

Contributors

mlakewood avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

roll-a-ball's Issues

Unity 5.6.1f ArgumentException

Unity 5.6.1f reports an error when evaluating (hook+ start-object :start #'start) in the repl:

System.ArgumentException: No implementation of method: :gobj of protocol: #'arcadia.core/ISceneGraph found for class: nil

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.