I worked on coding the ardunio in tinkercad aswell as figuring out how to use a mosfet to control electronics that are powered with high voltage and how to analog read potentiometers to control the high power electronics through the mosfets
I worked on coding the ardunio in tinkercad aswell as figuring out how to use a mosfet to control electronics that are powered with high voltage and how to analog read potentiometers to control the high power electronics through the mosfets
I worked on fixing the shop ui, added a new upgrade the (carbon burner), added some devtools and fixed some bugs/made sure everthing coded so far was working well.––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– I changed the shop Ui by making each item have a diffirent colours based on the ratio of the materials used to make it I also made it obvious what material each upgrade needed by colour coding.{the next step to improve the UI is to add mouse clicks instead of clicking keys on the keypad}.————————————————————————————————————— I added the carbon burner to the game (im still working on the name) it burns carbon with oxygen to make carbon dioxide which can be used later in game as a component of methane.–––––––––––––––––––––––––––––––––––––––––––––––––I added devtools to do things like changing the type of asteriod, speed of the laser beem,giving you infinte materials, ect{ mynext step is to make it more user friendly by adding a guide of the shortcuts for dev mode}———————————————————————————————––I also fixed some things eg. When the water storage is destroyed the oxygen an hydrogen tanks are destroyed aswell because they are on the waterstorage. Before I fixed they just kinda floated in space ect.–––––––––––––––––––––––––––––––––––––––––––––––––here is a video showcasing the new shop UI and the carbon burner(video starts at 40 seconds)
I added electrolysis to the game. To do this I added three new upgrades that are needed to proform electrolysis. a wire, an oxygen tank and a hydrogen tank. when you have all three aswell as (water storage) and a power source(solar panel). you can then click H to do electrolysis which turns one water into two hydrogen and one oxygen. which can then be used later in the game as a component of a fuel/power source. I also added an animation of the oxygen and hydrogen tanks filling up with gas as electrolysis is happening.–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––here is video that showcases how a playthrough might go now with the new upgrades.
I worked on fixing some minor bugs such as misspelt variables ect added new materials added gases and moved parts over to make room for new upgrades. aswell as adding a hydrogen and oxygen tank. i will edit later
I worked on designing two more upgrades
I worked on cleaning up my code –––––––––––––––––––––––––––––––––––––I removed redundant parts of my code that were not being used or could be simplfied, I added notes so I know what each part of my code does, I fixed some minor bugs ect. I also fixed the power system so when you are idle you use less energy then when you are shooting laser beems. I did this because as I was playtesting I found out that the battery ran out too quickly and there was nothing you could do about it. So now to maintain sufficent power you have to use the laser beem wisely eg not shooting a asteriod that is too far, too large or not the type you need ect.———————————————————————————————————————– here is a sped up video of how a typical play through would go thus far.––––––––––––––––––––––––––––––––––––––––––– PS I am planing to add more room to the side and/or more turrets in newer updates.
I added a screen at the begining of the game explaining the controls. I also added a dev mode shortcut to give infinte material (D&M keys) I also worked on the solar pannel adding a destruction animation as well as fixing some minor bugs caused by it. I also added a time variable that keeps track how many seconds pased from the start of the game I plan to utlize this to cause events or increase difficulty over time.—————————————————————————————This video showcase the starting screen and the Devmode’s infinte materials additonly it shows the solar panel damage effect which I think is the best slow destruction of any upgrade yet.
I worked on making an animation of the power going down as well as as making a new “upgrade” the solar panel it slowly adds to your total power. as you have set amount of power when you start that starts running out. This video showcase the damage system as well as the power system.
I made a power a stat in the game. Without power your turret cant move but you can still shoot. you start with a certin amount of power but can gain power by making things such as solar pannels ect. I have no video of it yet but here is a image of the new design of the turret . I also added sulfur to the game.
I added a damage system to the game. If your upgrades are hit by a asteriod they lose health and if their health goes to low they disapear. I also made it that you can repair the upgrades using your materials to bring their health back. I also worked on the exit menu a bit adding some colours ect.
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.