GithubHelp home page GithubHelp logo

nachtfunke / phaser-solitaire Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 47 KB

Experimenting with game dev, by making solitaire in phaser

License: The Unlicense

HTML 0.49% TypeScript 29.31% JavaScript 67.90% CSS 2.30%
card card-game game-development javascript phaser3 solitaire

phaser-solitaire's Introduction

phaser-solitaire

Experimenting with game dev, by making solitaire in phaser

phaser-solitaire's People

Contributors

nachtfunke avatar

Watchers

 avatar

phaser-solitaire's Issues

Add Debugging Elements for the Drag Interactions

When a card is being dragged, there are some thresholds that are supposed to make the interaction nicer and more natural. There is a dragThreshold and a pointerThreshold. The dragThreshold decides how far the pointer must travel away from its original position, before actually handling the frag. When the drag is being handled, there is a calculation that determines, whether the pointer is within the middle of the card. And if not, it will play the snapToPointer animation on the card, to really snap it right there.

It is these thresholds I'd like to visualise properly, to better be able to finetune them.

Allow Cards to draw connection line and projection to its last position.

When a card is being dragged, I would like to see a little element that represents its original position, and see a line to that original position, as it is being dragged around.

The background for that, is that sometimes users will be draging cards onto a stack or another card that they cannot really place a card on. So if a card needs to snap back, there is a little indicator to show where it will snap back to.

And also because I think it may look fun.

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.