Giter VIP home page Giter VIP logo

physics-after-dart's Introduction

Physics After Dart

This game is my Geeva Hackathon 2013 project in [Dart] 0 and [dartbox2d] 1.

It's a simple puzzle game based of physics. I managed to make only 3 levels during the hackathon and your goal is to help 3 or 5 balls to get to the white triangle. Pretty simple :).

[You can try live demo here] 2.

For best experience I recommend using Chrome or Chronium with native support for Dart. It works on Firefox as well, just framerate won't as good as in Chrome.

Screenshot #1 Screenshot #2 Screenshot #3 Screenshot #4

Known issues

There are some small issues right now:

  • Window size is fixed 1000x700, I think I should be easy to just scale canvas but I'm not sure how it's going to look like.
  • Shadow casting isn't very efficient. It's the most performance critical part of the game. Right now it's rendered in 500x350 canvas and then scaled to 1000x700. This helped a lot! On my MacBook Pro 2.5 GHz I have constant 60 fps in all levels. I think there's still a lot to improve.
  • By pressing 'd' key you can enable debug menu that I used to debug shadow casting and where you can disable textures or shadows. You can try it if you have problems with frame rate.

About

When I saw [indie game Thomas Was Alone] 3 I absolutely loved how each object casts shadow. It's such a simple effect but it enhances the entire game experience so much so I wanted to make something similar.
Well, I did although the algorhitm I'm using right now isn't very efficient. It's based on three canvases that has to be copied on the top of each other (there are some limitation by the canvas element itself). I belive that this part can be improved significantly. I'll try to explain how the shadow casting work on my blog soon.

I want to keep this game open source and maybe turn it into a Chrome App. Also, I was thinking about making a standalone PC/Mac/Linux game based on this project because still Dart isn't as efficient as a standalone game and it's actuallu limited only to Chtome uses. But I'll see :), don't want to promise anything right now.

I called this game "PhysicsAfterDark" first but I think this name is more stylish :).

Licence

Physics After Dart is licensed under the [Beerware license] 4.

The only things I didn't make on my own are [dartbox2d] 1 physics engine and box textures.

physics-after-dart's People

Contributors

martinsik avatar

Watchers

Adam Singer avatar James Cloos 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.