Making a game with #javascript : Part 2
▻https://hackernoon.com/making-a-game-with-javascript-part-2-8154bd6e2de1?source=rss----3a8144ea
Building the spaceshipCatching upHi everybody! This article is the second part of my tutorial to make a little game with Javascript. You can read Part 1 here.The full source #code of this tutorial can be found here.Creating the spaceshipNow that the background is done, we can finally start setting up our spaceship!Let’s create a Player.js file and add it to index.html as a script (same as CloudManager).Here is a (beautiful) spaceship designed in a few minutes that you can add to your assets folder and in the loader function of main.js:SpaceshipBasically, we want this ship to appear near the left border of the screen. We also need its anchor (position point of the object) to be in the center of the sprite, and because its maybe too huge, we can rescale (...)