Featured image of post The Bucket – Flash Game

The Bucket – Flash Game

Use your bucket to carry a raccoon through a wasteland.

This was my first game that used Box2D physics. The concept was well suited, and the game turned out pretty great.

Level Editor

I wrote a level editor for the game. It has tiles on multiple layers and a path for the camera to follow.

Levels were serialized in xml and heavily optimized by combining rows of tiles that have the same type.

<level w='68' h='34'>
<t>0:51,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,0:42,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,0:42,27,28,27,28,27,28,27,28,27,28,35,19,23,19,23,19,23,19,23,19,23,19,36,28,27,28,0:33,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,35,32,0:11,29,27,28,27,0:33,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,30,0:12,29,28,27,28,0:33,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,30,0:12,29,27,28,27,0:29,29,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,35,23,19,23,32,0:12,29,28,27,28,0:29,29,28,27,28,27,28,35,19,23,19,23,19,23,19,23,19,23,19,32,0:16,29,27,28,27,0:29,31,23,19,36,28,27,30,0:28,29,28,27,28,0:32,31,36,28,30,0:22,7,11:2,12,0:2,29,27,28,27,0:33,29,27,30,0:22,29,28,27,30,0:2,29,28,27,28,0:33,29,28,30,0:22,29,27,28,30,0:2,29,27,28,27,0:33,29,27,30,0:6,7,11:5,9,12,0:8,29,28,27,30,0:2,29,28,27,28,0:23,87,0:9,29,28,30,0:6,29,27,28,27,28,27,28,30,0:5,7,11:2,34,27,28,30,0:2,29,27,28,27,0:21,7,9,11,12,0:8,31,23,32,0:6,29,28,27,28,27,28,27,30,0:5,29,27,28,27,28,27,30,0:2,29,28,27,28,0:21,29,28,27,30,0:17,29,27,28,27,28,27,28,33,11:2,10,11:2,34,28,27,35,23,19,32,0:2,29,27,28,27,0:8,67,0:12,29,27,28,30,0:17,29,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,30,0:5,29,28,27,28,0:3,7,10,11:2,9:2,11,10,12,0:9,29,28,27,30,0:17,29,27,28,27,28,27,28,27,28,35,19,23,19,23,19,23,32,0:5,29,27,28,27,0:3,29,27,28,27,28,27,28,27,30,0:9,29,27,28,30,0:17,29,28,27,28,27,28,27,28,35,32,0:12,29,28,27,28,10,9,11,34,28,27,28,27,28,27,28,33,9,10,11:6,9,34,28,27,33,11:3,9,11:3,9,11:4,10,11:2,9,11,34,27,28,27,28,27,28,27,30,0:13,29,27,28,27:2,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,30,0:13,29,28,27,28,19,23,19,23,19,36,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,35,23,19,23,36,27,28,35,19,23,19,23,19,23,19,23,19,36,28,27,28,27,30,0:13,29,27,28,27,0:5,31,23,19,23,19,23,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,35,32,0:3,31,36,35,32,0:9,31,36,28,27,28,30,0:13,29,28,27,28,0:11,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,30,0:5,29,30,0:11,29,27,28,27,30,0:8,7,10,11:2,9,34,27,28,27,0:11,28,27,28,27,28,35,19,23,19,23,19,23,19,23,19,23,32,0:5,29,30,0:11,29,28,27,28,30,0:8,29,27,28,27,28,27,28,27,28,0:11,27,28,27,28,27,30,0:16,29,30,0:11,31,23,19,23,32,0:8,29,28,27,28,27,28,27,28,27,0:11,28,27,28,27,28,30,0:16,31,32,0:24,29,27,28,27,28,27,28,27,28,0:11,27,28,27,28,27,30,0:24,87,0:14,7,11:2,34,28,27,28,27,28,27,28,27,0:11,28,27,28,27,28,30,0:24,86,0:14,29,28,27,28,27,28,27,28,27,28,27,28,0:11,27,28,27,28,27,30,0:24,86,0:14,29,27,28,27,28,27,28,27,28,27,28,27,0:11,28,27,28,27,28,30,0:3,68,0:11,7,11,9,12,0:5,86,0:14,29,28,27,0:20,27,28,27,28,27,33,11:10,9,11,10,9,11,34,27,28,33,11:7,9,11:4,9,11,10,11:5,34,27,28,0:20,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,0:20,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,27,28,0:9</t>
<a>30,4,79,28|27,1,79,26|29,3,79,24|28,2,126,19|30,4,126,21|31,5,126,23|27,1,126,25|29,3,126,27|30,4,126,29|27,1,115,10|28,2,117,10|30,4,119,10|29,3,100,53|30,4,98,53|27,1,96,53|28,2,94,53|31,5,69,55|28,2,67,55|30,4,58,30|28,2,60,30|27,1,60,32|29,3,58,32|27,1,62,30|30,4,62,32|29,3,60,28|27,1,58,28|31,5,62,28|29,3,63,45|28,2,61,45|30,4,59,45|31,5,89,45|28,2,73,45|30,4,103,39|31,5,105,37|27,1,119,33|27,1,107,7|28,2,127,7|30,4,97,15|31,5,73,17|28,2,65,21|30,4,63,19|30,4,47,23|31,5,47,21|28,2,47,19|28,2,79,30|27,1,47,25|32,1,35,37</a>
<b>9,16,19|33,9,16|34,6,16|35,5,16|2,19,19|4,27,19|1,29,19|1,31,19|1,40,19|1,39,19|1,46,12|1,59,9|9,53,31|2,45,31|7,18,31|32,22,30|33,23,30|34,19,30|35,18,30|7,2,19|7,0,19|5,4,19|1,11,17|17,6,17|16,10,17|16,1,19|19,18,19|18,20,19|20,14,19|5,22,15|19,30,19|17,26,19|19,36,19|20,34,19|8,35,19|5,43,13|19,45,12|19,47,12|16,49,12|7,57,13|1,56,13|5,52,16|19,54,15|17,51,15|17,61,9|16,60,9|16,63,23|8,62,23|1,60,23|1,58,27|1,55,31|3,47,31|7,57,29|7,39,31|7,37,33|7,23,33|16,34,30|2,33,30|19,35,30|21,30,31|19,27,31|3,25,31|19,49,31|20,43,31</b>
<p>8,12,2,0|17,15,2,0|23,13,2,0|30,16,2,0|37,16,2,0|40,10,2,0|49,10,2,0|59,6,2,0|62,6,2,0|62,20,2,0|57,20,2,0|53,28,2,0|45,28,2,0|40,27,2,0|27,27,2,0|20,27,2,0</p>
</level>

Video

Last updated on Dec 24, 2022 10:10 +0100
Built with Hugo
Theme Stack designed by Jimmy