fuzzyworld

godot-shooter / change-html-template / files / Player.gd

Branch change-html-template · default branch · all branches

Player.gd

Commits that changed this file, newest first · file

2023-11-07da9d123Stop hiding the mouse, and create enemies slightly farther off-screen.Pavel Safronov
2023-11-06a670e30Pause game on death.Pavel Safronov
2023-11-06969fd5aA number of changes: - bullets last longer - player now has a shooting range, which defines how far away an enemy has to be to be targeted - changed how the Enemy animation works, fixed it and separated some actions - implemented a scheme in World where items (enemies, health and speed powerups) will replace themselves when one of them leaves - if any items are too far from the player (screen radius * 2), then that item will be removed, and due to the above scheme, it will be replaced with a closer versionPavel Safronov
2023-11-0657783b1Speed up the player.Pavel Safronov
2023-11-06f3af995Show mouse once the player dies.Pavel Safronov
2023-11-0609081ceTurn rate and move speed are now both taken into account when turning, so the turning radius stays the same, even if we increase the speed.Pavel Safronov
2023-11-06d8d02b3Added speed powerups, which can actually make the game more difficult, because with a faster speed, the turns become much wider. Might need to change the turn rate to account for this.Pavel Safronov
2023-11-06eb5388aAdded health powerups to the map, these restore 1 health for the player.Pavel Safronov
2023-11-06e496c54Player and enemies now turn slowly toward their goals: destination for player, player for enemies. Also removed some logging calls.Pavel Safronov
2023-11-055222000A few tied-up changes: - added pause functionality, though there's no background in the pause screen yet, for some reason - once an enemy is killed, its collision shape is disabled - moved some code around from the world to the HUD, so restart and exit will continue to work even during pause - added Utils.filter to filter an array of items - closest living enemy is now targetedPavel Safronov
2023-11-04d99ccd2Add player invincibility.Pavel Safronov
2023-11-024872f90Slow down player shooting.Pavel Safronov
2023-11-02748f09dSlowed things down, removed the debug label from the HUD, changed the background to a nice blue.Pavel Safronov
2023-11-018c2ffd3Fixed some errors about variable usages. Adding a debug label, so it's possible to get some debug info on mobile.Pavel Safronov
2023-11-01a261d90Fix issue where enemies were only taking 1 HP from player on collisions. Made the shooting slower.Pavel Safronov
2023-11-01f398dcbShip is now shooting automatically at the closest enemy. Enemies now hurt the player for 2 points and self destruct when they contact the player.Pavel Safronov
2023-11-01236d167Added a small explosion that appears when a bullet hits a body and does damage.Pavel Safronov
2023-10-31c7a3444Add health to player.Pavel Safronov
2023-10-31d9bff51Enemies follow player.Pavel Safronov
2023-10-3159b480f"Escape" in web games will just restart the game.Pavel Safronov
2023-10-31f1a0defAdding a pop-up to show when exiting from a non-OSX device.Pavel Safronov
2023-10-31614e7fbSlightly reworked bullet and how it flies. Adding a Utils script that can be used to log time-stamped messages.Pavel Safronov
2023-10-29b856550Initial commit of Godot 3 game where you can pilot a starship and shoot down enemies. Those are all the current features.Pavel Safronov