Microsoft MakeCode

Bloons Tower Defense v1.6rev3

Version 1.6rev3: Let’s give the monkeys some (more?) education by teaching them which Bloons are closest to the end!


Yay, a tower defense game!

Press A to place a monkey for 50$. ̶P̶r̶e̶s̶s̶ ̶A̶ ̶o̶n̶ ̶a̶ ̶m̶o̶n̶k̶e̶y̶ ̶t̶o̶ ̶r̶o̶t̶a̶t̶e̶ ̶i̶t̶.̶ Hover over a monkey to display what will be upgraded. Press A on a monkey to upgrade it. Press B on a monkey to sell it for $30.

Thanks (hmmm…who made the path finding extension…just kidding) @jwunderl for those a* path-finding improvements!

Issues
  1. ̶̶̶T̶̶̶h̶̶̶e̶̶̶ ̶̶̶o̶̶̶n̶̶̶l̶̶̶y̶̶̶ ̶̶̶p̶̶̶r̶̶̶o̶̶̶b̶̶̶l̶̶̶e̶̶̶m̶̶̶ ̶̶̶I̶̶̶ ̶̶̶h̶̶̶a̶̶̶v̶̶̶e̶̶̶ ̶̶̶i̶̶̶s̶̶̶ ̶̶̶t̶̶̶h̶̶̶a̶̶̶t̶̶̶ ̶̶̶w̶̶̶h̶̶̶e̶̶̶n̶̶̶ ̶̶̶t̶̶̶h̶̶̶e̶̶̶ ̶̶̶m̶̶̶o̶̶̶n̶̶̶k̶̶̶e̶̶̶y̶̶̶s̶̶̶ ̶̶̶m̶̶̶o̶̶̶v̶̶̶e̶̶̶ ̶̶̶o̶̶̶u̶̶̶t̶̶̶ ̶̶̶o̶̶̶f̶̶̶ ̶̶̶c̶̶̶a̶̶̶m̶̶̶e̶̶̶r̶̶̶a̶̶̶ ̶̶̶f̶̶̶o̶̶̶c̶̶̶u̶̶̶s̶̶̶ ̶̶̶(̶̶̶w̶̶̶h̶̶̶e̶̶̶n̶̶̶ ̶̶̶y̶̶̶o̶̶̶u̶̶̶ ̶̶̶n̶̶̶o̶̶̶ ̶̶̶l̶̶̶o̶̶̶n̶̶̶g̶̶̶e̶̶̶r̶̶̶ ̶̶̶s̶̶̶e̶̶̶e̶̶̶ ̶̶̶t̶̶̶h̶̶̶e̶̶̶m̶̶̶)̶̶̶,̶̶̶ ̶̶̶t̶̶̶h̶̶̶e̶̶̶y̶̶̶ ̶̶̶s̶̶̶t̶̶̶o̶̶̶p̶̶̶ ̶̶̶s̶̶̶h̶̶̶o̶̶̶o̶̶̶t̶̶̶i̶̶̶n̶̶̶g̶̶̶ ̶̶̶d̶̶̶a̶̶̶r̶̶̶t̶̶̶s̶̶̶.̶̶̶ ̶̶̶I̶̶̶ ̶̶̶t̶̶̶h̶̶̶i̶̶̶n̶̶̶k̶̶̶ ̶̶̶t̶̶̶h̶̶̶e̶̶̶ ̶̶̶m̶̶̶o̶̶̶n̶̶̶k̶̶̶e̶̶̶y̶̶̶s̶̶̶ ̶̶̶a̶̶̶c̶̶̶t̶̶̶u̶̶̶a̶̶̶l̶̶̶l̶̶̶y̶̶̶ ̶̶̶d̶̶̶o̶̶̶ ̶̶̶s̶̶̶h̶̶̶o̶̶̶o̶̶̶t̶̶̶ ̶̶̶t̶̶̶h̶̶̶e̶̶̶ ̶̶̶d̶̶̶a̶̶̶r̶̶̶t̶̶̶s̶̶̶ ̶̶̶b̶̶̶u̶̶̶t̶̶̶ ̶̶̶t̶̶̶h̶̶̶e̶̶̶y̶̶̶ ̶̶̶a̶̶̶r̶̶̶e̶̶̶ ̶̶̶i̶̶̶m̶̶̶m̶̶̶e̶̶̶d̶̶̶i̶̶̶a̶̶̶t̶̶̶e̶̶̶l̶̶̶y̶̶̶ ̶̶̶d̶̶̶e̶̶̶s̶̶̶t̶̶̶r̶̶̶o̶̶̶y̶̶̶e̶̶̶d̶̶̶ ̶̶̶b̶̶̶e̶̶̶c̶̶̶a̶̶̶u̶̶̶s̶̶̶e̶̶̶ ̶̶̶t̶̶̶h̶̶̶e̶̶̶y̶̶̶ ̶̶̶a̶̶̶r̶̶̶e̶̶̶ ̶̶̶n̶̶̶o̶̶̶t̶̶̶ ̶̶̶i̶̶̶n̶̶̶ ̶̶̶t̶̶̶h̶̶̶e̶̶̶ ̶̶̶c̶̶̶a̶̶̶m̶̶̶e̶̶̶r̶̶̶a̶̶̶.̶̶̶ ̶̶̶W̶̶̶o̶̶̶u̶̶̶l̶̶̶d̶̶̶ ̶̶̶t̶̶̶u̶̶̶r̶̶̶n̶̶̶i̶̶̶n̶̶̶g̶̶̶ ̶̶̶o̶̶̶f̶̶̶f̶̶̶ ̶̶̶a̶̶̶u̶̶̶t̶̶̶o̶̶̶ ̶̶̶d̶̶̶e̶̶̶s̶̶̶t̶̶̶r̶̶̶o̶̶̶y̶̶̶ ̶̶̶w̶̶̶o̶̶̶r̶̶̶k̶̶̶?̶̶̶
    ̶I̶t̶ ̶d̶o̶e̶s̶n̶’̶t̶ ̶s̶e̶e̶m̶ ̶t̶o̶ ̶h̶a̶p̶p̶e̶n̶ ̶a̶n̶y̶m̶o̶r̶e̶.̶
    Thanks @jwunderl for clearing that up!

Github repository:

The real challenge is trying to figure out how to not crash your device :wink:

8 Likes

wow, awesome! i love how you solved the problem of setting the bloon paths. it would be cool to see a version with different path layouts as you progress too :smiley:

1 Like

Thanks. :slight_smile:

The real game does have different paths you can choose, and I was thinking we could just allow you to select a tilemap and use the a* pathfinding extension (I can’t remember who made it, this quarantine stuff is killing me) so the Bloons can find a way.

Also, I’m kind of confused by this message. Does the system consider me spamming or something like that?

I made that one :slight_smile: Daryl’s been doing some updates to it as well (i think he had a game he was planning on using it in?), its

Also, the reason the arrows were disappearing is because they were projectiles - those start with the AutoDestroy flag set to on, so if you don’t want that you need to turn it off.

That’s what I thought :slight_smile:
But in version 1.4, it doesn’t seem to be happening to me. :confused:

Yes, it looks like you changed the darts to just be regular sprites in 1.4 instead of using the create projectile from block - normal sprites have autodestroy off by default ~

Oh yes, I remember doing that!

But now I’m confused on how the darts are still popping the Bloons.

Better go look back again…

You can make regular sprites of kind Projectile - sprites created with the projectile blocks are just projectiles by default.

Just looked back, saw that it’s a regular sprite of kind projectile.

Well, probably should go edit my post again…

1 Like

This is awesome! Very charming theme. I love how you announce waves. One thing I noticed is that I think you can use the “screen relative” flag to keep the narrator in the screen instead of setting it based on camera position:

1 Like

But it doesn’t seem to work for me. I think you mentioned it in the stream where you made a customizable not racing game

And is there a way to set the Z flag of the text, because the monkeys seemed to be layered over it. I tried setting the monkey’s Z to like, 10 but that made it worse, so half of the monkeys still get layered over the text.

You’re right, my bad, there’s a bug with relative-to-camera not working for sprite say.

I’ve been working on an extension to make it easier to add text as sprites to games: https://github.com/darzu/arcade-text
This would definitely let you set z index and use camera-relative, and also change the font size.

Example: https://makecode.com/_bFXY1U7ALMfK

It’s still changing quite a bit as I work out the design we want, but it might be useful already.

1 Like

That bug is fixed on beta!

1 Like

Coooooooooool prototype, well-written code with great readability.

Managed to introduce enemy hit points feature in a few minutes. I can see great potential for educational purpose.

Thank you for sharing!

1 Like

Thanks :slightly_smiling_face:

I always try to strive for readability, and I have been thinking about adding upgrades for the monkeys and more Bloon colors other than red.

I’ll welcome suggestions!


Maybe less abllons cause look at the fps…

1 Like