asteroid hunter
Hardware- 14 Devlogs
- 19 Total hours
a pixel art video game about defending your planet from asteroids as well as mining asteriods
a pixel art video game about defending your planet from asteroids as well as mining asteriods
tbd
I made the water storage upgrade also need a copper pipe connected to the turret for it to work. I also made it that when you have water in the water storage you can hold down the up key to speed up your laser beems as without the water as coolant the turret would over heat. code wise I made a clock so I can regulate parts of the game in universal time and not just a delay. here is link to test https://microstudio.io/layerbylayer/astreroidhunter/2MSZECRK/ E for exit mode R for resume left. right arrows to aim. space to shoot. while in exit mode to puchase upgrades click the first letter of its name on your keyboard
I added copper to the game aswell as animating the water storage to visualy fill up as you harvest more water from asteriods––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––ps I acdently recorded an extra half hour and dont know how to remove it
I made the home screen of the game show the amounts of each material you have as well as making the first upgrade I haven’t made it do anything yet but the idea would be that this upgrade called water storage could be used to cool down the turret which would increase fire rate as well as allowing other upgrades such as stronger laser two barrels ect
I added 5 materials you can get from asteriod carbon,water,silicon,iron,gold. I set the amounts each asteriod should get though I haven’t made a proper display yet. I also fixed some minor bugs IF you have any suggestions for materials to add feel free to share.
I made diffrent types and sizes of asteriods take diffrent amounts laser beem shots to break. I also locked down the pivot of the turret while the laser is in flight to stop the player from being able to control the laser beem midflight as this will be a upgrade added later in the game
I fixed the bug with the rare metalic asteriod and added it back to the game. the problem was the first sprite for the animation of the asteriod blowing up was named (metalic_asteriod_rare1) but the program called for (metalic_asteriod_rare)
I made animations for all the asteriods I also fixed the size of the play area I tried to fix a bug where the rare metalic asteriod animation wouldn’t play but couldn’t figure it out so I removed the rare metalic asteriod I also added a exit button E to stop the meteor shower and a resume button R also here is link to try game thus far https://microstudio.io/layerbylayer/astreroidhunter/2MSZECRK/ (left and right arrow to aim and space to shoot)
I made the size of the asteriods hit box change to match the visual size. I also made it that when you hit an asteriod your laser beem disapears with the asteriod. I also animated one of the types of asteriod “destruction” animation ps be aware that because I haven’t animated the other asteriod there is lag before they disapear.
The collsions work now :) the laser beem still has trouble hitting larger asteriods even if it looks like it is touching this is because I haven’t made the hit box fit with the size yet.
I worked on collisions got no real progress on the actual code but I am figuring out how to add collisions I also organized my code a bit by putting realted variables into objects.
I made a turret which can angled by the← and → arrow keys and use the space key to shoot a projectile that follows the angle it was shot in . next I think I will work on collisions
I added randomness to the type of asteriod It can now be one of these four types a carbonaceous asteriod (the most common one), a stony asteriod(uncommon but not rare), metalic asteriod(rare) and metalic asteriod with ore vein (the rarest asteriod thus far) I also added random sizes. Larger asteriods will be harder to stop but give more materials and vice versa.—————————————————————————————————————————–PS {now the asteriod comes from a random direction not just from the middle ◝(ᴖᗜᴖ)◜}
I started this project by making some sprites for the diffrent types of asteriods and started trying to make some basic code. currently the asteriods follow the same path every time so not very fun:(