Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show upcoming/next block #2

Open
bramus opened this issue Jan 19, 2015 · 9 comments
Open

Show upcoming/next block #2

bramus opened this issue Jan 19, 2015 · 9 comments

Comments

@bramus
Copy link

bramus commented Jan 19, 2015

The original Tetris show the upcoming/next block somewhere. Didn't see it immediately in the demo or options.

@sbehrends
Copy link
Contributor

+1

5 similar comments
@Oceanswave
Copy link

👍

@brubrant
Copy link

+1

@lttin0912
Copy link

+1

@alakotko
Copy link

+1

@ydogus
Copy link

ydogus commented Jan 24, 2016

+1

@zfbx
Copy link

zfbx commented Nov 20, 2016

Almost 2 years later I assume there's not going to be a preview added?

@RobertoGonzalez
Copy link
Member

@zfbTony Probably not, but we'd be happy to accept a PR with that feature!

@netinhoteixeira
Copy link

On file blockrain.jquery.src.js, at line 35, add:
// When next shape is generated
onNext: function(next){}

and at line 755, add:
game.options.onNext.call(game.element, this.next);

On constructor, add a method:
onNext: function (next) {
console.log(next.blockType)
}

So you can use it to your preview.

Powell-v2 added a commit to Powell-v2/blockrain.js that referenced this issue Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants