Code Monkey home page Code Monkey logo

mydots's Introduction

“MyDots” was created with Unity 2018.2.17.

The game supports PC inputs. Click and drag to connect the dots and press Escape to end the game.

In the Unity editor, there are numerous attributes that can be tweaked to modify the experience. Some fun ones to play with include:

- WIDTH (Dots Game Manager): Number of columns

- HEIGHT (Dots Game Manager): Number of rows

- Available Colors (Color Pool): Adjustable length array of possible dot colors

- Initial Dot Color Strategy (Dots Game Manager): Reference to a concrete subclass of “BaseDotColorStrategy.” This enables custom logic to be defined for initial dot color assignment. It defaults to “RandomDotColorStrategy,”, which simply picks a random color for each dot.

- Refill Dot Color Strategy (Dots Game Manager): Same as “Initial Dot Color Strategy”, but applies to every dot after the initial set. Also defaults to “RandomDotColorStrategy.”

To customize the dot color strategies:
1) Add a component to “DotsGame” that derives from “BaseDotColorStrategy.” There are a few sample scripts in the “Assets/Scripts/DotColorStrategies” directory you can play with, and it’s easy to write your own!
2) Drag the component into the appropriate attribute in the “Dots Game Manager” (“Initial Dot Color Strategy” and/or “Refill Dot Color Strategy”).

Enjoy!

mydots's People

Contributors

vthomas2007 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.