Oliver77

Retris[Phaser] - Tetris variant

8 posts in this topic

Hi i made a Tetris variant -  Tetris in reverse so iI called it Retris, u must sort the elements like shown in the screen.

The drag and drop is'nt the phaser default function because there are groups and not single sprites.

The grid/snap moving is a simple formula:

----

in the update function:

curMouseX = game.input.activePointer.x -difX;
rasterStepsX = Math.floor(curMouseX/gridTile) *gridTile;

puzzleTiles[actSprite].x = rasterStepsX;

--

gridTile are 32px so the Math.floor cuts the movement in steps just as simple as that.

So leave me some feedback if u want:

Retris

screen-retris.jpg

Share this post


Link to post
Share on other sites

Tried to play it a couple of times and I'm still confused about what should I do so some instructions at the start of the game would be nice. Also shouldn't the blocks on the left be snapped to the wiry rectangle on the left - it's strange that I can position them in the middle of the hole game. And why use different colors - they're just for visual candy or they have a role - because it's not very intuitive.

Still, the main issue it's not knowing what to do once I start the game - I'm just an average Joe but your target audience will be comprised mainly with average (and below average) Joe's [Is there a plural for a name in english?]. :)

Share this post


Link to post
Share on other sites

Hi ok a "how to play" has to be included yeah right. U can build this solid block everywhere and then the scipt let u drag the whole thing to the right place. It has just to look like the startscreen.

Share this post


Link to post
Share on other sites

Ok I try to explain:

On the left side falls a playstone, on the right side u have the other playstones or pieces whatever it's called.

u have to order the pieces  that it results in a solid rectangle block in which the falling stone fits!!

ORDER THE PIECES ON THE BOARD EVERYWHERE U WANT, if it is matching then u can dran drag THE WHOLE BLOCK to the left bottom side where the falling stone fits into,

u get points for every solution if u are quick and u use the arrow down symbol it falls very fast if it fits u get extra points.

Than randomly there will be created new stones do the same again, the stone on the left falls faster u further u come u play for the highscore.

Here a picture that explains it hopefully:

 

zhtml5.jpg

Share this post


Link to post
Share on other sites

I finally figured it out! I had no idea you could drag the pieces that appeared on the right! That changed everything. I thought they were just the pieces that would drop down next, like in normal Tetris.

For anyone else confused by this, once you get it, it's really damn fun. You need to use all the pieces on the right, drag them into the left-hand well and arrange them so they all fit perfectly PLUS the piece that is very slowly dropping from the top.

Share this post


Link to post
Share on other sites

lol never played something like it! ^_^

just found a bug though, there was a time where i already dragged a blue block from right to the left, then afterwards i was dragging a red block at right.. the blue one at left was the one being dragged instead of the red lmao 

Share this post


Link to post
Share on other sites

this is possibly the coolest thing I have seen so far this year in terms of 'concept'. You need a kickstarter :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.