RGB Invaders for 10K Apart
Continuing the baton started by whoozle and dima117 , I want to submit my work for the 10K Apart contest .
When I found out about the competition, I immediately decided - I need to write a variation on the theme of Space Invaders . Welcome under the cat to find out what I did :)
So, I managed to accommodate 10 kilobytes here (the picture is clickable):
Key features of my application:
And of course, I had to work on optimizing the rendering of a large number of objects on the canvas, since its performance in some situations leaves much to be desired.
If you get at least five habraly people who would be interested to know how all this works and works, I will gladly comment on the source code and tell you everything in a separate post.
And, yes, if you liked the result - please vote :)
UPD: Many expressed a desire to learn more, so in the next few days I will describe everything and post it in a separate post.
When I found out about the competition, I immediately decided - I need to write a variation on the theme of Space Invaders . Welcome under the cat to find out what I did :)
So, I managed to accommodate 10 kilobytes here (the picture is clickable):
Key features of my application:
- Independent from FPS speed of movement of objects on the scene;
- The exact algorithm for determining the collision of fast moving objects;
- Detailed animation of explosions;
- Animated placement of invaders in the ranks;
- Lack of third-party libraries, only pure JavaScript + canvas.
And of course, I had to work on optimizing the rendering of a large number of objects on the canvas, since its performance in some situations leaves much to be desired.
If you get at least five habraly people who would be interested to know how all this works and works, I will gladly comment on the source code and tell you everything in a separate post.
And, yes, if you liked the result - please vote :)
UPD: Many expressed a desire to learn more, so in the next few days I will describe everything and post it in a separate post.