Pentominos game

Show us your completed creations made in Construct 2

Post » Sun Oct 23, 2011 2:20 pm

Hi,

I've made a simple pentomino game : http://www.programaths.be/games/pentominos2/

Enjoy :-)
B
18
S
4
G
6
Posts: 17
Reputation: 4,353

Post » Sun Oct 23, 2011 2:44 pm

Pretty cool.
There's no "overriding" prevention, but as the level don't go to the next anyway in that case, it's not a big deal.

Well done !
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Fri Oct 28, 2011 4:34 pm

I did update it.
1)Space now flip the piece too.
2)The 3by3 L can be rotated once grabbed.

Thanks for comment ;)
B
18
S
4
G
6
Posts: 17
Reputation: 4,353

Post » Sun Oct 30, 2011 3:17 pm

Awesome! How did you snap the parts to a grid upon mouse release?
B
1
G
1
Posts: 5
Reputation: 485

Post » Thu Nov 10, 2011 7:42 pm

Hi,

Look bellow :


dragging is a global variable. That permit to not process sub event in case nothing is dragged.

As there is not familly "yet", I had to copy-past this for each shape.

The "magic" is done in "set position".

floor take the nearest integer to 0. So "3.5" become "3".
We want to map : "A.B" to cell "A". So, floor does it well.
B
18
S
4
G
6
Posts: 17
Reputation: 4,353


Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 10 guests