# Tiny Soccer Cars

**URL:** https://forum.makecode.com/t/tiny-soccer-cars/2053
**Category:** Show & Tell
**Tags:** game, featured-game
**Created:** [May 12, 2020, 6:31am UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053 "2020-05-12T06:31:01Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![theCobolKid](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thecobolkid/32/742_2.png) [@theCobolKid](https://forum.makecode.com/u/theCobolKid)
#### Post date: [May 12, 2020, 6:31am UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/1 "2020-05-12T06:31:01Z")

</div>

> **[TinySoccerCars](https://arcade.makecode.com/01346-85066-80974-51935)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

**Tiny Soccer Cars** is a retro version of a modern favorite.  
Learn the controls and build your skills in Practice Mode.  
Play against the AI opponent and score the most points by the end of the match to win!

Have fun!!!

> **[tinysoccercars](https://thecobolkid.github.io/tinysoccercars/)**

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [May 12, 2020, 8:36am UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/2 "2020-05-12T08:36:28Z")

</div>

Wow! The game dynamics are incredible!

---

<div class="post-metadata">

### Author: ![ractive](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ractive/32/928_2.png) [@ractive](https://forum.makecode.com/u/ractive)
#### Post date: [May 12, 2020, 9:09am UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/3 "2020-05-12T09:09:47Z")

</div>

Very nice! The physics feels great.

---

<div class="post-metadata">

### Author: ![Jernau](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@Jernau](https://forum.makecode.com/u/Jernau)
#### Post date: [May 12, 2020, 12:54pm UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/4 "2020-05-12T12:54:27Z")

</div>

This is mind blowing! It feels amazing to play (and I’m a Champ 3 in the real version of this game)! 🙂

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [May 12, 2020, 3:04pm UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/5 "2020-05-12T15:04:58Z")

</div>

@theCobolKid your games deserve a home in github! It’ll give a home web page that loads much faster.

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [May 12, 2020, 4:25pm UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/6 "2020-05-12T16:25:20Z")

</div>

WOW! The attention to detail is amazing, I love the shadow of the soccer ball!

---

<div class="post-metadata">

### Author: ![darzu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/darzu/32/1882_2.png) [@darzu](https://forum.makecode.com/u/darzu)
#### Post date: [May 12, 2020, 4:55pm UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/7 "2020-05-12T16:55:09Z")

</div>

This is incredibly fun!

After making this game, are there any libraries or editor changes that would have made this easier or more enjoyable to make?

Also it might be useful to know that you can have multiple .ts files:

 ![2020-05-12 09.54.16](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/ae56ed5bca655b0e484dc56f90a18b522fdb0bc2.gif)

---

<div class="post-metadata">

### Author: ![centigradeclemensP](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/centigradeclemensp/32/754_2.png) [@centigradeclemensP](https://forum.makecode.com/u/centigradeclemensP)
#### Post date: [May 12, 2020, 5:29pm UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/8 "2020-05-12T17:29:36Z")

</div>

Wow, that’s your third great game!  
Thanks a lot I’m mostly here to learn some game development, but these games you build are really fun to play!  
And they all work on the Meowbit!

---

<div class="post-metadata">

### Author: ![jacob\_c](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jacob_c/32/1532_2.png) [@jacob\_c](https://forum.makecode.com/u/jacob_c)
#### Post date: [May 12, 2020, 5:54pm UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/9 "2020-05-12T17:54:03Z")

</div>

This is _so_ impressive.

My kids also wanted me to share that they thought it was incredible too. … I think you just knocked one of my games off our meowbit. 😅

One of our favorite details was way you replicated the exploding goal mechanic… such a delightful moment recognizing that nod to the original.

---

<div class="post-metadata">

### Author: ![theCobolKid](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thecobolkid/32/742_2.png) [@theCobolKid](https://forum.makecode.com/u/theCobolKid)
#### Post date: [May 13, 2020, 3:44am UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/10 "2020-05-13T03:44:40Z")

</div>

I created a github release for the game! It took a few tries before I noticed the /beta in the how-to video I was following. And now I’m all set for next time. Thanks!

---

<div class="post-metadata">

### Author: ![theCobolKid](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thecobolkid/32/742_2.png) [@theCobolKid](https://forum.makecode.com/u/theCobolKid)
#### Post date: [May 13, 2020, 4:43am UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/11 "2020-05-13T04:43:49Z")

</div>

Thanks @darzu! And thanks for the tip about multiple files, I didn’t realize that was possible. I’m a complete java noob. I switched from blocks to java script pretty late in development and all the code was in a single file and I didn’t even think of breaking it up.

One feature that would have saved some development time would have been some sort of picture menu, something that would provide the functionality of the Select Mode screen in Tiny Soccer Cars. I didn’t find anything like this, and I could have used the existing “ask for number” dialog, but I wanted something more visual.

---

<div class="post-metadata">

### Author: ![theCobolKid](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thecobolkid/32/742_2.png) [@theCobolKid](https://forum.makecode.com/u/theCobolKid)
#### Post date: [May 13, 2020, 5:58am UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/12 "2020-05-13T05:58:09Z")

</div>

I just saw a pop-up recommendation about not replying to multiple individual posts, and that makes sense…still learning how to navigate all of this.

Thanks to everyone for all of the positive comments and feedback. And I’m so glad you’re all getting a kick out of the game! @ractive, @peli, @richard, @darzu

@Jernau, that’s a high rank…respect! Hopefully hard mode is at least a little bit challenging for you. 😬

@centigradeclemensP, you’re right, this is my 3rd game in makecode arcade. I’m flattered that you know that, and I’m glad you enjoy them all. I love this platform! It’s a a perfect pixelated continuation to the TI-86 calculator I used for making BASIC games years ago. I’m also glad to know about the Meowbit compatibility, I was considering picking one up.

@jacob_c, thank you for the kind words. And thanks sharing your kid’s comment. 😁 I’m delighted but also a bit sad for your meowbit library that they like it so much. 😳

---

<div class="post-metadata">

### Author: ![otorp2](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/otorp2/32/940_2.png) [@otorp2](https://forum.makecode.com/u/otorp2)
#### Post date: [May 13, 2020, 12:23pm UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/13 "2020-05-13T12:23:05Z")

</div>

awesome!

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [May 13, 2020, 2:13pm UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/14 "2020-05-13T14:13:10Z")

</div>

You can also store your game in GitHub which will help with versioning and give it a glorious landing page.

---

<div class="post-metadata">

### Author: ![Adri314](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/adri314/32/182_2.png) [@Adri314](https://forum.makecode.com/u/Adri314)
#### Post date: [May 13, 2020, 3:53pm UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/15 "2020-05-13T15:53:39Z")

</div>

This game is terrific! The physics are incredible!

---

<div class="post-metadata">

### Author: ![Blobiy](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Blobiy](https://forum.makecode.com/u/Blobiy)
#### Post date: [May 17, 2020, 11:57pm UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/16 "2020-05-17T23:57:57Z")

</div>

this is amazing, i love how the graphics work, also the 3 d is insane, i did not know you could do that!!!  
how did you do the AI? i’m quite confused as to how this all works. thanks for this experience.

---

<div class="post-metadata">

### Author: ![theCobolKid](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thecobolkid/32/742_2.png) [@theCobolKid](https://forum.makecode.com/u/theCobolKid)
#### Post date: [May 18, 2020, 4:46am UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/17 "2020-05-18T04:46:54Z")

</div>

Thanks Blobiy,

The AI was one of the last parts I made for the game. At that point in development I had plenty of experience driving the red car around the field and scoring goals. I stepped back and thought about what my strategy was when I was playing and it was very simple; drive towards the ball and try to hit it!

So what I do for that AI algorithm is set a target location for the opponent vehicle to drive to (which is usually the right side of the ball), then adjust the velocity of the opponent vehicle accordingly to reach the target. There is also some conditional logic that has been added to accommodate the different difficulty levels, but that is the basis for the AI algorithm.

---

<div class="post-metadata">

### Author: ![theCobolKid](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thecobolkid/32/742_2.png) [@theCobolKid](https://forum.makecode.com/u/theCobolKid)
#### Post date: [May 20, 2020, 7:39am UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/18 "2020-05-20T07:39:34Z")

</div>

@Blobiy, if you are interested in how the “3D” aspect of this game works, check out this post:

> [@Using z(depth) to create a "3D" scene](https://forum.makecode.com/t/using-z-depth-to-create-a-3d-scene/2152):
>
> I just wanted to share what I’ve learned about using a sprite’s z(depth) property in makecode arcade for allowing characters to move in front of and behind objects within a scene. I’ve used this concept in each of the games I’ve worked on so far, but the concept is buried in a lot of other code. I made this simple scene “BlueOx 3D-Scene” to show the inner workings that may otherwise be difficult to track down. The onStart block in “BlueOx 3D-Scene” contains two boolean variables that can be…

---

<div class="post-metadata">

### Author: ![kartik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kartik/32/1017_2.png) [@kartik](https://forum.makecode.com/u/kartik)
#### Post date: [June 1, 2020, 6:05pm UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/19 "2020-06-01T18:05:57Z")

</div>

its a amazing game i loved it ⚽ ⚽ ⚽

---

<div class="post-metadata">

### Author: ![MopishCobra75](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mopishcobra75/32/2992_2.png) [@MopishCobra75](https://forum.makecode.com/u/MopishCobra75)
#### Post date: [November 2, 2020, 10:09pm UTC](https://forum.makecode.com/t/tiny-soccer-cars/2053/20 "2020-11-02T22:09:02Z")

</div>

This is THe best game on here

[Next page](https://forum.makecode.com/t/tiny-soccer-cars/2053.md?page=2)
