# 🎮 WDC #12 Let's Play Whac-a-Mole™️

**URL:** <https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774>\
**Category:** Teachers' Lounge\
**Tags:** wdc\
**Created:** [April 23, 2021, 4:46pm UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774 "2021-04-23T16:46:28Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [April 25, 2021, 9:49am UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/23 "2021-04-25T09:49:18Z")

</div>

> [@catsarisky](#):
>
> 83 blocks on the main screen

 ![Screenshot_20210425-103400](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/7/570c1725b53bf1074e506b1a9a481045975a2625.jpeg)

Really nice implementation (and theme) @catsarisky - I like how the characters moved around on the screen, it makes the game that bit more challenging. @christina_wong will be delighted to see this I think! 😃

* * *

> [@codeswept](#):
>
> Done with mine! It’s called _(drum roll)_ **GUAC-A-MOLE**

🎉 Brilliant, thanks @codeswept! I thought this might be a bit easier but the way the board gets reshuffled after every turn kept me clicking until the end.

I know you mention you’re planning a few updates, but one thing I noticed was that I ran out of numbers towards the end of the game.

 ![Screenshot_20210425-103244](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/7/275e55dee44741c5751e9917c586a6fc85152048.jpeg)

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [April 25, 2021, 10:33am UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/24 "2021-04-25T10:33:52Z")

</div>

Oh no! I’d just put until numbers until hundred for testing. Will change that immediately. Thanks for the note!

> [@domhnallohanlon](#):
>
> I thought this might be a bit easier

Everybody who tested the app were _not_ expecting it to be that confusing. Neither did I, as a matter of fact.

---

<div class="post-metadata">

**Author:** ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)\
**Post date:** [April 25, 2021, 11:14am UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/25 "2021-04-25T11:14:58Z")

</div>

I love the title screen. Super cute.

On my very small iPhone SE, it crashes a moment after I click the first tortilla. So I’ll have to try on a bigger screen instead, I think.

Updated: In Chrome, it crashes with an out of memory error. Did you accidentally add an endless loop when you fixed Dom’s missing numbers?

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [April 25, 2021, 12:07pm UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/26 "2021-04-25T12:07:03Z")

</div>

> [@catsarisky](#):
>
> Super cute.

Thanks!

> [@catsarisky](#):
>
> Did you accidentally add an endless loop

Oops, spot on 😬 Will try and fix it. I’m trying to see how I can get the game to carry on without either using the infinity math block OR getting undefined after some time.

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [April 25, 2021, 12:16pm UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/27 "2021-04-25T12:16:11Z")

</div>

Fixed it! Is it working now?

Now you can play forever, as long as you haven’t fed all the moles.

---

<div class="post-metadata">

**Author:** ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)\
**Post date:** [April 25, 2021, 12:17pm UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/28 "2021-04-25T12:17:36Z")

</div>

Yes! 12 seconds, but on 2+2. That reshuffle is evil.

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [April 25, 2021, 12:19pm UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/29 "2021-04-25T12:19:01Z")

</div>

That’s actually half of my lowest score on 2+2… Took me 24 seconds.

> [@catsarisky](#):
>
> That reshuffle is evil.

Hahaha… that’s my specialty.

---

<div class="post-metadata">

**Author:** ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)\
**Post date:** [April 25, 2021, 12:27pm UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/30 "2021-04-25T12:27:26Z")

</div>

When I slide the lower slider bar, for example, to try 3+3, it looks like the number of moles increases dramatically. Might have another bug to squash there.

I think I overshot and slid the slider backwards when the behavior happened? Maybe? The slider seems very sensitive - maybe the range is too big?

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [April 25, 2021, 12:28pm UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/31 "2021-04-25T12:28:53Z")

</div>

Uh oh… let me check that out.

> [@catsarisky](#):
>
> slid the slider backwards

No, you didn’t. I don’t like it either, but I increase the slider’s max value to multiples of the step by you selected. I’m going to change that- it’s confusing and annoying for the user. Thanks for reporting!

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [April 25, 2021, 12:31pm UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/32 "2021-04-25T12:31:19Z")

</div>

Fixed. It’s working at my side, is it working for you?

P.S: Thanks for all the bug alerts @catsarisky! They’re really helpful, and I’d have probably not noticed if you @domhnallohanlon hadn’t pointed them out.

---

<div class="post-metadata">

**Author:** ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)\
**Post date:** [April 25, 2021, 12:51pm UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/33 "2021-04-25T12:51:41Z")

</div>

Yes, working now! 3 + 4 in 23 seconds.

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [April 25, 2021, 1:33pm UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/34 "2021-04-25T13:33:22Z")

</div>

Oh wow! You’re really quick at that… 3+4 would probably take me 2-3 minutes.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 25, 2021, 4:10pm UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/35 "2021-04-25T16:10:32Z")

</div>

11 seconds for 2+2.

When I switch it to Step of 3, Start at 2, the lowest # tortilla is 6. Shouldn’t it be 5?

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [April 25, 2021, 4:12pm UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/36 "2021-04-25T16:12:37Z")

</div>

Let me try it at my end, and tell you the results.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 25, 2021, 5:04pm UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/37 "2021-04-25T17:04:14Z")

</div>

## Iced Tea Toss

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/a/2aa648f4154939c533d97c8d334b977d3f4df855.jpeg)

**Inspiration:** This is an homage to a game I used to enjoy as a kid, [Tapper](https://en.wikipedia.org/wiki/Tapper_(video_game)).

**How to play:** The idea is that customers are lining up at a bar to be served iced tea. You’re the bartender and you have to move up and down (arrow buttons) and serve iced tea (tea button) to each customer before they get to the end of the bar. But be careful! If you toss an iced tea and there’s no customer to catch it, the glass is going to break and you’ll be fired.

**Developer Experience:** I had a lot of fun making this and a fair amount of frustration. I understand the canvas components so much better now but [small math glitches](https://community.thunkable.com/t/0-1-0-1-0-010000000000002-error/1243946/4) are causing major problems in my game. The grid that the movement is based on is divided into 100 pixels but the math bugs alter that so that things go a bit haywire. You can even pitch a curve ball for some strange reason…

Regardless, I hope you enjoy it! I spent so much time trying to fix the math/movement that I didn’t get as far in the development as I wanted to. So there’s no game over screen ~~or restart button~~. But enough excuses!

**PLAYABLE DEMO** → **Web App:** [bit.ly/icedteatoss2](http://bit.ly/icedteatoss2)

_I recommend playing it on a mobile device._

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 25, 2021, 5:21pm UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/38 "2021-04-25T17:21:55Z")

</div>

@codeswept Love the word play theme, the graphics, the math aspect… very well done!

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [April 25, 2021, 5:33pm UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/39 "2021-04-25T17:33:27Z")

</div>

Thanks! Am trying the fix the 2+3= 6 issue.

---

<div class="post-metadata">

**Author:** ![Thg](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/thg/32/141360_2.png) [@Thg](https://community.thunkable.com/u/Thg)\
**Post date:** [April 25, 2021, 8:24pm UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/40 "2021-04-25T20:24:29Z")

</div>

**I tried to do this using a futuristic retro style**

 ![WhatsApp Image 2021-04-25 at 4.37.13 PM (3)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/3/435769ede8d83e6a42441742055ed08a3f38ee9c.jpeg) ![WhatsApp Image 2021-04-25 at 4.37.13 PM (2)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/e/8e805dd1e45031b6436371379ecb21d9cda3710b.jpeg) ![WhatsApp Image 2021-04-25 at 4.37.13 PM (1)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/b/bb0a240d3fe829dff286dafc8d3643dce344a6e2.jpeg) ![WhatsApp Image 2021-04-25 at 4.37.13 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/a/eac03fbfde6a7b1da0e363fb87641bfd53c04030.jpeg)  
Although I will give up (I’m using a browser + cable + mouse at home), I went ahead with some of them in the cyber café I created some sprintes with blender and the initial logic (in cyber they close early because of the pandemic, so the way is to use the cell phone + otg).  
in the browser it was a little better than in the app, app very slow and full of bugs  
 ![WhatsApp Image 2021-04-25 at 4.47.11 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/4/74e67893a394bd317cd3d80d53d519bcfc1b1999.jpeg) ![WhatsApp Image 2021-04-25 at 5.20.37 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/5/b5798a548b5f2948c554d0d2c30f068cdbac8abe.jpeg)  
It is the first time that I use the canvas and I had difficulties with some logic because the visualization of the web and the application behaved differently in the y, x axes. I spent many hours switching between the tabs of the android kkkk trying to find out. After adding more timers, it was very slow and acting differently from the initial one, (it may be because the sprintes are high resolution or additional timers, I don’t know, but this is very slow and full of kkk bugs).  
**But the WDC design I wanted to try was a futuristic retro style, thanks.**

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [April 26, 2021, 3:32am UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/41 "2021-04-26T03:32:46Z")

</div>

Wow! Really interesting game, and love the UI. Took me a while to figure out how the game worked, but after I did, I had a blast playing it. Just a question, though: When I was at the topmost bar, The iced tea got tossed down to the third-from top bar. Was that intentional?

Absolutely love the game, though! I played it seventeen times already!

Just a suggestion: Would it be possible for you to add a play again/reset option once we lose the game? Every time I lost, I’d have to cross out the tab, go back to Community, and click on the link again. It was kinda annoying. Otherwise, I’ve said it before, and I’ll say it again, it’s a marvel of an app. I played it on my tab, and the experience was great!

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 26, 2021, 3:47am UTC](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774/42 "2021-04-26T03:47:20Z")

</div>

Well thank you, I appreciate it! I was a little embarrassed to share it because it doesn’t work very well.

The “curve ball” you described is a bug related to a sprite’s y positioning. I mentioned it on the forums a day or two ago but just reported it on GitHub here: [Sprite's y position is altered · Issue #880 · thunkable/thunkable-issues · GitHub](https://github.com/thunkable/thunkable-issues/issues/880).

I think I’ll keep working on the game but honestly it’s a little distracting to have sprites end up in random positions. I have iced tea pitchers that are supposed to go on the right edge so it looks like the bartender/player is reaching for them and then tossing the glasses of iced tea. But when I add them to the canvas, they up in random positions. Same goes for the score which was supposed to be at the top. And the y=0 bug from the link above causes so many problems: the bar area doesn’t line up, the iced tea glasses get thrown below the bar, the customers don’t appear in the right place, on and on…

Anyway, I’m glad you like it and I’ll post an update when I have one!

[Previous page](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774.md?page=1)

[Next page](https://community.thunkable.com/t/wdc-12-lets-play-whac-a-mole/1241774.md?page=3)
