# Daddo2^0 Platformer

**URL:** <https://forum.makecode.com/t/daddo2-0-platformer/3741>\
**Category:** Game Design\
**Tags:** game\
**Created:** [October 2, 2020, 5:33pm UTC](https://forum.makecode.com/t/daddo2-0-platformer/3741 "2020-10-02T17:33:22Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew-ski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrew-ski/32/1774_2.png) [@andrew-ski](https://forum.makecode.com/u/andrew-ski)\
**Post date:** [October 2, 2020, 5:33pm UTC](https://forum.makecode.com/t/daddo2-0-platformer/3741/1 "2020-10-02T17:33:22Z")

</div>

Hello World,

I recently stumbled on make code arcade via micro:bit coding. It has been a while since I’ve played many games but I have to admit that this is pretty addictive.

I watched and followed Daryl’s(sp?) cat platformer and built off that design so the first few levels may feel like a clone. There are four levels in total, so it’s pretty short. I would love to hear feedback on any part of the visual, audio or gameplay.

Here’s a link to the game/code:

> **[Daddo2^0](https://arcade.makecode.com/77875-74833-80473-98589)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Two initial questions that linger are on code optimization and SVG paths. I would like to add additional levels but I feel like my code optimization is poor(trash). It feels like level 3 and 4 slow down a bit. Would it help to create separate functions for each level? Maybe someone has a link to best practices?

Daryl mentioned SVG paths in the cat platformer and after messing around I thought there could be some great functionality in boss fights, but I couldn’t find many other references to them in makecode. I did a bit of digging through HTML guides and was able to find [SVG Path Generator](https://jxnblk.github.io/paths/?d=M40%2062%20L62%2062%20L62%2050%20L52%2044%20L40%2050%20Z) to generate a path. The path I generated was basically a triangle, but I did try with more complicated shapes and it seems to work… except it was not sticking to the spawn point I gave it. It seems like with the cat platformer svg path it is tied to where the sprite is when it starts the animation, but with the path I generated it uses the absolute coordinates? Any way to fix that or am I going about this the wrong way?

---

<div class="post-metadata">

**Author:** ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)\
**Post date:** [October 2, 2020, 6:43pm UTC](https://forum.makecode.com/t/daddo2-0-platformer/3741/2 "2020-10-02T18:43:16Z")

</div>

The art is epic!

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [October 3, 2020, 12:19am UTC](https://forum.makecode.com/t/daddo2-0-platformer/3741/3 "2020-10-03T00:19:09Z")

</div>

The art is great and I played this over 100 times. Nice art and physics!!

---

<div class="post-metadata">

**Author:** ![andrew-ski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrew-ski/32/1774_2.png) [@andrew-ski](https://forum.makecode.com/u/andrew-ski)\
**Post date:** [October 3, 2020, 2:15am UTC](https://forum.makecode.com/t/daddo2-0-platformer/3741/4 "2020-10-03T02:15:46Z")

</div>

Awesome! The art and animation is a lot of fun.  
Did you notice lag on the boss level?

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [October 3, 2020, 11:22am UTC](https://forum.makecode.com/t/daddo2-0-platformer/3741/5 "2020-10-03T11:22:09Z")

</div>

It was so hard, I didn’t get to the boss level since I was focused on trying to get all the points. I’ll try speedrunning it. And yes, I realized that there was so much lag. That means that there is a lot of code.

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [October 3, 2020, 11:28am UTC](https://forum.makecode.com/t/daddo2-0-platformer/3741/6 "2020-10-03T11:28:35Z")

</div>

ok so I tried the boss battle and it was super laggy. too hard to see. but i love the game!! Gg

---

<div class="post-metadata">

**Author:** ![andrew-ski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrew-ski/32/1774_2.png) [@andrew-ski](https://forum.makecode.com/u/andrew-ski)\
**Post date:** [October 3, 2020, 7:47pm UTC](https://forum.makecode.com/t/daddo2-0-platformer/3741/7 "2020-10-03T19:47:03Z")

</div>

> **[Daddo2^0](https://arcade.makecode.com/73686-23865-47003-78543)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Okay, I found the main issue with the lag on the last level was actually with the audio on game update 1000ms. I had multiple blocks trying to play audio at the same time. I cut that down to one block and we’re in good shape.

I also messed around with cleaning up the code so monsters and items that aren’t necessary in the last level don’t get loaded. Hopefully this is better. I may do some additional clean-up and bug fixes later.

---

<div class="post-metadata">

**Author:** ![andrew-ski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrew-ski/32/1774_2.png) [@andrew-ski](https://forum.makecode.com/u/andrew-ski)\
**Post date:** [October 3, 2020, 7:47pm UTC](https://forum.makecode.com/t/daddo2-0-platformer/3741/8 "2020-10-03T19:47:30Z")

</div>

Thanks for the feedback! I just posted an update with the lag fix. Let me know if that works for you.

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [January 18, 2021, 4:58pm UTC](https://forum.makecode.com/t/daddo2-0-platformer/3741/9 "2021-01-18T16:58:23Z")

</div>

So hard on mobile 😭

---

<div class="post-metadata">

**Author:** ![ggiscool](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ggiscool/32/3431_2.png) [@ggiscool](https://forum.makecode.com/u/ggiscool)\
**Post date:** [January 20, 2021, 6:48pm UTC](https://forum.makecode.com/t/daddo2-0-platformer/3741/10 "2021-01-20T18:48:27Z")

</div>

so hard every where

---

<div class="post-metadata">

**Author:** ![ggiscool](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ggiscool/32/3431_2.png) [@ggiscool](https://forum.makecode.com/u/ggiscool)\
**Post date:** [January 22, 2021, 4:18pm UTC](https://forum.makecode.com/t/daddo2-0-platformer/3741/11 "2021-01-22T16:18:54Z")

</div>

![Screenshot (37)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/05db2d313fc0ded2197e60f15f6eeb0019ad2816.png)  
😌 😭 😭 😭

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [January 22, 2021, 4:19pm UTC](https://forum.makecode.com/t/daddo2-0-platformer/3741/12 "2021-01-22T16:19:06Z")

</div>

Completed! Just lost the screenshot. Found a bug @andrew-ski. If you hit him with all the lasers in a row, he gains one health, then looses 5 afterward, Don’t know why that happens.

---

<div class="post-metadata">

**Author:** ![andrew-ski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrew-ski/32/1774_2.png) [@andrew-ski](https://forum.makecode.com/u/andrew-ski)\
**Post date:** [January 22, 2021, 6:18pm UTC](https://forum.makecode.com/t/daddo2-0-platformer/3741/13 "2021-01-22T18:18:31Z")

</div>

Nice! That bug is a little strange. The only thing I can imagine is that it’s lag related.

This was my first game and I probably did a poor job with optimizing memory leaks. I also had a bunch of sound effects occurring at the same time in the original version, which causes issues. I think there are probably some poorly executed pause commands, too. I know the second version had some fixes for the sound issue and then I went back and fixed the character sprite a while later, but it’s definitely not optimal.

The most up-to-date version is on my github:  
[![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/e855957de3a1b946afec92b25f56532b7ea8ca4b.png)](https://andrew-ski.github.io/daddos-escape/)

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [January 26, 2021, 5:13pm UTC](https://forum.makecode.com/t/daddo2-0-platformer/3741/14 "2021-01-26T17:13:21Z")

</div>

Found it really easy with a PS4 controller. May remix this like I did with the Adventures of Sam and Nate by @jacob_c. @andrew-ski could you please post the latest as a makecode link too?

---

<div class="post-metadata">

**Author:** ![andrew-ski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrew-ski/32/1774_2.png) [@andrew-ski](https://forum.makecode.com/u/andrew-ski)\
**Post date:** [January 26, 2021, 10:17pm UTC](https://forum.makecode.com/t/daddo2-0-platformer/3741/15 "2021-01-26T22:17:06Z")

</div>

Nice! I also liked playing with the arcade controller!

Here’s the link to the updated copy:

> **[Daddo2^0](https://arcade.makecode.com/62464-17181-71827-40245)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

You can always create a copy with the edit button on the github copy.

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/e2ddfa9f588bc61c0f1f4dfbe5d03407ad9fcf7d.png)
