Giter Club home page Giter Club logo

tutorial-dart-treasure-hunt's Introduction

Dart Treasure Hunt

Build Status

This is an example implementation of a treasure hunt game in Dart. It is meant for educational purposes to learn programming in Dart.

Demo

You can try the following example application in your browser:

Treasure Hunt Demo

Features

  • Predefined treasure destinations (in latitude and longitude). User can choose a destination.
  • Uses HTML5 Geolocation API (GPS, etc.) to get the position of the user.
  • Calculates distance between user and destination.
  • Displays a compass to indicate the direction of the destination.
  • If supported by the device, the compass is turned to always face the magnetic north.
  • When close enough (e.g. 30m) to the destination, a message and an imaage is displayed.

Alternative Scenarios

The treasure hunt app could easily be changed into various other scenarios:

Known Limitations

  • In iOS Safari the compass points in an arbitrary direction. North will point in the direction the device is facing when the app was loaded. This will be resolved when [Dart Issue 19119](is fixed).

Further Infos

tutorial-dart-treasure-hunt's People

Contributors

marcojakob avatar

Watchers

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