Giter Club home page Giter Club logo

phaser-kinetic-scrolling-plugin's Issues

Looking collaborators!

Hi guys!

This beautiful project needs collaborators, Do you want to apply?
Let me know your JS projects to check your code, if you want to be a Phaser developer to help the community with this amazing project! ๐Ÿ’ฏ

Best regards, Nicholls

Auto scroll activated

Hi,

I faced a bug I guess. When I enter a state and activate the kinematic scrolling plugin for the first time, everything is fine. When I leave the state and reenter it, the scrolling is activated which means the camera is scrolling although I haven't clicked yet.
Of course I call this.game.kineticScrolling.stop(); when I shutdown the state.

Multidirectional scrolling support

I know it's probably outside the scope of this project right now, but supporting multidirectional scrolling would be a nice feature to have. Currently scrollwheel support is enabled by setting either verticalWheel or horizontalWheel to true. However, setting both to true has some pretty unexpected behaviour, especially using a Macbook touchpad.

Add TypeScript support

my code where my game starts looks like this
`///
///

class SimpleGame
{
game:Phaser.Game;
constructor()
{
//setup the game
// load scroll plugin
//
this.game = new Phaser.Game(800, 600, Phaser.AUTO, 'content');
this.game.state.add("MenuScreenState", MenuScreenState , false);
this.game.state.add("RunningState", RunningState , false);
this.game.state.add("ShopState", ShopState , false);
this.game.state.start("RunningState",true,true);
}
}

// when the page has finished loading, create our game
window.onload = () => {
var game = new SimpleGame();
};
`
and it does not allow
this.game.kineticScrolling = this.game.plugins.add(Phaser.Plugin.KineticScrolling);
ive got no idea how to proper load your plugin..

Disable body while dragging map around

Body is always following sprite in phaser. At low speed of map dragging it is not visible, but at higher speed body get compertely seperate from sprite. Sometimes body collided with game objects and false collision occures. So is it possible to disable body when I drag map?
(I can record video if issue is not clear from my description)

Scrolling large bodies of text within a group

I am wondering if this plugin would work for this use case.

I have a panel I made, say:

    // Tall panel
    var panelTall = this.game.add.bitmapData(250, 500);
    panelTall.ctx.fillStyle = '#5a6772';
    panelTall.ctx.strokeStyle = '#31363a';
    panelTall.ctx.lineWidth = 5;
    panelTall.ctx.fillRect(0, 0, 250, 500);
    panelTall.ctx.strokeRect(0, 0, 250, 500);
    this.game.cache.addBitmapData('panel', panelTall); 

And then I instantiate it in a group:

    this.stableGroup = this.game.add.group();
    this.stableGroup.position.setTo(25, 250);

    this.stableBody = this.stableGroup.addChild(this.game.add.image(0, 0, this.game.cache.getBitmapData('panel')));

Now within this I want to populate it with text objects vertically, and have it scrollable vertically at the borders roughly of the panel. Every comment thread seems to have you posting this library as an example but I can't seem to figure out how it would work like this.

Phaser CE

Since Phaser2 is no longer being maintained, the production dependency should be switched from phaser to phaser-ce

1.0.3 missing from npm

I just ran npm install phaser-kinetic-scrolling-plugin and version 1.0.2 was installed

Destribution with npm is not working

Can't download plugin with npm.

Getting error:

Hostname/IP doesn't match certificate's altnames: 
"Host: registry.npmjs.org. is not in the cert's
altnames: DNS:a.sni.fastly.net, DNS:a.sni.global-ssl.fastly.net"

don't want to use brew only for one library and would be nice to keep track of versions so getting directly from github is also not the best solution
Thanks

select element

Hello,
Nice plugin, but I'm encountering some troubles to select an element.
Say I wanna select a rectangle in your example, how can I achieve that ?

Thanks :)

Resolved : I did that by storing the mouse position when it's down, so when it's up I compare the new value with the old one, if it's the same position, I fire up the click event..

Publish package to npm

Hi, could you publish this package to npm please?
I am using npm as a dependency manager and this would help me a lot.
It's really easy since you already have a package.json :) More info here.
Great plugin by the way!
Thanks!

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.