šŸŽ® WDC #12 Let's Play Whac-a-Moleā„¢ļø

Cool, thatā€™s great! It was really brave of you and @catsarisky to use the canvas. Honestly, Iā€™m frightened about using the canvas, I donā€™t know a thing about it. Instead, for my Guac-A-Mole app, I used buttons for the tortillas.

@codeswept - wow! thatā€™s impressive - itā€™s such a simple concept but with clever use of sliders for difficulty level - not to mention the math and memory skills it develops in the player! i always enjoy looking at your code - so much to learn from. keep it up! thanks.

2 Likes

The canvas was a real learning curve but I feel empowered now (thanks, @domhnallohanlon, for the challenge!).

I added a restart button as you requested. Same link as before.

2 Likes

Wow, that was quick!

Agreeā€¦ Iā€™m just using canvas for drawing apps, and not gaming as intended.

Also, @tatiang, about the 2+3=6 issue, check my 3d screenshot in my original post. It has the same 2+3 level, but contains a 5, not 6.

@manyone Thanks for your nice wordsā€¦ Iā€™m also a big fan of your code, you make such impossible things with such neat code. I especially loved your CLIX converter. Are you going to participate in this WDC? Iā€™d love to see what youā€™ve got to share.

1 Like

iā€™m afraid not - there is so much for me to learn on clones, canvas and sprites - iā€™m so far behind all of you guys.

1 Like

@tatiang - i love the game! somehow my device isnt too responsive to the up/down keys to move the bartender - can you give an option to make them ā€œwrap aroundā€ ? bravo!

2 Likes

Thanks! The original Tapper game didnā€™t have wrap around so I donā€™t think Iā€™m going to make it an option but it would certainly make the game a little easier.

The up/down buttons work okay on mine but I think part of the problem is that Iā€™m constantly checking to see if the customers reach a certain x position to indicate game over and thereā€™s probably a much more efficient way to do that that doesnā€™t affect the game speed/responsiveness.

I also intend to make the customers speed up gradually. Still need to add that. They are supposed to spawn at x=0 (left edge of screen) but because of the position bug I keep mentioning, it doesnā€™t work that way and they get a head start.

1 Like

Canvas is a very weak spot of mine tooā€¦ I used the Any component blocks and Buttons.

Can you see if the current version is any better as far as the up/down buttons go? I replaced the x position checking blocks with a collision event block and Iā€™m hoping that helps.

2 Likes

the up and down buttons are more responsive now - but thereā€™s something about the y-pos of the bartender - sometimes it doesnā€™t ā€œline upā€ with bar - sometimes heā€™s lower (seems never higher) - and a new customer shows up not AT the bar but between 2 bars. also sometimes when the bartender is at the top bar, clicking the button will send the drink to the next bar below. (only happens occasionally when bartender is a top bar only). otherwise - it is a challenging game.

1 Like

YEP. Thatā€™s the positioning bug Iā€™m so annoyed by. The y positions donā€™t line up because when I set a spriteā€™s y position to 0, it ends up being like 10.98754331 or 22.68913123 or some crazy value.

The blocks I used just add or subtract 100 from the bartenderā€™s y position. So since the bartender starts at y=100, the position of that sprite should always be a multiple of 100. But it isnā€™t. :frowning:

So I canā€™t ensure that the bar is in the right place or the customer is or even the bartender/player. Itā€™s a mess. Once that bug gets fixed, my game should work perfectly. :slight_smile:

1 Like

By the way, I used https://www9.lunapic.com/editor to do quick opacity editing of images (for slightly transparent backgrounds, etc.).

2 Likes

i havenā€™t done sprite coding yet - but canā€™t you recompute sprite y as 100* (round(returned sprity-y / 100))?
you might have to add 1 (to avoid y=0)

btw - i canā€™t open your project - i get this message below.
ERROR for site owner:
Invalid domain for site key

My project is still private. But the playable web app is at http://bit.ly/icedteatoss2.

I thought about rounding but Iā€™m also hoping that this gets fixed so that a simple set y to 0 means that y is 0. Iā€™m not doing any math or using any variables. Just y=0.

Thanks!

1 Like

Updated my app to include:

  • Users can choose switch on and off a 30 second timer.
  • App now displays lapsed time.
  • Shows userā€™s fastest time taken.

Sounds effects and more coming soon.
You can try the new version using the same link.
Thanks!

2 Likes

So cool :slight_smile:

2 Likes

WHACK A BEAVER
By Abhijeet (@beepboopbopboom)

@domhnallohanlon PLEASE COUNT ME IN SORRY Iā€™M LATE

https://x.thunkable.com/copy/49979bcf6b9e09affbc9f83e4ea2cc43

https://x.thunkable.com/projectPage/608304e6acef240011b18f55

Screenshot 2021-04-26 1.34.52 PM Screenshot 2021-04-26 1.34.24 PM Screenshot 2021-04-26 1.33.19 PM

I only modified the UI, thatā€™s it. I changed the sprites too, but the UX and code were mostly the same. I did the canvas thing because Iā€™m good with the canvas. :blush:

Rules:
To win the game, you must tap the red beaver sprites and avoid tapping the white impostor beaver. You earn a point by tapping a red beaver sprite, and you lose a point by tapping a white impostor sprite. When you reach 10 points, you will receive a congratulations message. If you ever hit -5 points, you will receive another message.

You can notify me of any feedback that you have in the PM or right here. I will accept anything.

P.S. I also forgot to add that my original app and this remixed version were both inspired by the Mole Mash game by Mr. Wolber.

3 Likes

well i try to make my project but somewhy it does not work can someone help me - Thunkable

Great work all. I did think of an idea for a game. (sorry, have to concentrate on my project). Whac-a-Trump :rofl: And to spice it up, add the other presidents that come out of the white house and later, world leaders but you can only whac Trump. ps. I am not anti Trump, just thought he would be perfect.

1 Like