# Crossy Roads Optimizations

**URL:** https://forum.makecode.com/t/crossy-roads-optimizations/1276
**Category:** Arcade
**Tags:** game
**Created:** [February 25, 2020, 11:43pm UTC](https://forum.makecode.com/t/crossy-roads-optimizations/1276 "2020-02-25T23:43:57Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [February 25, 2020, 11:43pm UTC](https://forum.makecode.com/t/crossy-roads-optimizations/1276/1 "2020-02-25T23:43:57Z")

</div>

Hello there!

I attempted to recreate a version of Crossy Roads as close as possible to the real version. After several hours spread over about a week, I present a 16-tile-long Crossy Roads!

Click [here for Crossy Roads v1](https://makecode.com/_ar7i7Cc2A3UR) or import the repository from [github.com here](https://github.com/UnsignedArduino/crossy-roads)

There are quite a lot of bugs, and the code is very messy and I’ve used a lot of code to check for mis-placed sprites, so things like trains and logs may not appear at the right time. I appreciate any help optimizing it or squashing bugs! 😄

---

<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: [February 26, 2020, 12:21am UTC](https://forum.makecode.com/t/crossy-roads-optimizations/1276/2 "2020-02-26T00:21:28Z")

</div>

I love the train! Such a cool effect

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [February 26, 2020, 12:50am UTC](https://forum.makecode.com/t/crossy-roads-optimizations/1276/3 "2020-02-26T00:50:32Z")

</div>

Thanks. On a real device, I think it looks even better!

---

<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: [February 28, 2020, 5:43pm UTC](https://forum.makecode.com/t/crossy-roads-optimizations/1276/4 "2020-02-28T17:43:18Z")

</div>

@UnsignedArduino in MakeCode in the github page, click on “Create Release” after commiting your changes. It will upload a pre-compiled version of your game to GitHub pages.

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [February 28, 2020, 9:06pm UTC](https://forum.makecode.com/t/crossy-roads-optimizations/1276/5 "2020-02-28T21:06:29Z")

</div>

@peli, are you asking me to do so?  
I can do it if you want to see it, but I am making version 2 that allows the game to go on forever since the original version was limited by the size of the tilemap.

Version 2 uses arrays to store the tilemap, and should considerably reduce memory usage compared to version 1.

See [Crossy Roads 2 v0.1.0 here](https://makecode.com/_JFFh0kD8Y6CY) or the [Github repository here](https://github.com/unsignedarduino/crossy-roads-2).

You can only really look at it though since I only started this a couple of days ago. 🤷‍♂️ 😐

---

<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: [February 28, 2020, 9:22pm UTC](https://forum.makecode.com/t/crossy-roads-optimizations/1276/6 "2020-02-28T21:22:19Z")

</div>

You can keep using the same repo for all your versions :). Once you have commited your changes, you can click on “Create Release”.

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [February 28, 2020, 9:37pm UTC](https://forum.makecode.com/t/crossy-roads-optimizations/1276/7 "2020-02-28T21:37:51Z")

</div>

I would have kept using the same repo but I really wanted a clean slate.

Now that I think about it, it seems unnecessary that I created a new repo.  
Thanks for telling me 🙂

Also, I’m not using the TypeScript editor (Using blocks 🙂), so it doesn’t pop up when I click the button to commit to Github. I will just upload a UF2 file and a PNG file.  
(BTW, the PyGamer UF2 is the same for the PyBadge and EdgeBadge right?)

See [Crossy Roads 2 v0.2.0 here](https://makecode.com/_D0b5A1bu21e4) - You can now control the chicken! 😄  
See [Crossy Roads 2 v0.3.0 here](https://makecode.com/_ATucmtR9JbxX) - There are moving cars!  
See [Crossy Roads 2 v0.4.0 here](https://makecode.com/_KjLKr1FErEEb) - You can die from idling. (Here comes the eagle)

---

<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: [February 29, 2020, 1:13am UTC](https://forum.makecode.com/t/crossy-roads-optimizations/1276/8 "2020-02-29T01:13:56Z")

</div>

Try again on [https://arcade.makecode.com/beta](https://arcade.makecode.com/beta) for the latest GitHub support

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [February 29, 2020, 3:22am UTC](https://forum.makecode.com/t/crossy-roads-optimizations/1276/9 "2020-02-29T03:22:04Z")

</div>

I’ve figured out how to make a release.

Thanks @peli

You can see it [here](https://github.com/UnsignedArduino/Crossy-Roads-2/releases)

---

<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: [February 29, 2020, 6:17am UTC](https://forum.makecode.com/t/crossy-roads-optimizations/1276/10 "2020-02-29T06:17:44Z")

</div>

Did you make the release from the [GitHub.com](http://GitHub.com) web site? MakeCode should have done it automatically for you 🙂

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [February 29, 2020, 5:48pm UTC](https://forum.makecode.com/t/crossy-roads-optimizations/1276/11 "2020-02-29T17:48:20Z")

</div>

I made the release from the Github website myself.

I’ll try again from the computer when I can

I also got Crossy Roads 2 v1.0.1 out [here](https://makecode.com/_MK8emx5Xuaki)

---

<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: [March 2, 2020, 5:01pm UTC](https://forum.makecode.com/t/crossy-roads-optimizations/1276/12 "2020-03-02T17:01:01Z")

</div>

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