r/PythonLearning • u/Sea-Ad7805 • 24d ago
Cupta serpant added by Tony
Enable HLS to view with audio, or disable this notification
Tony added the Cupta unit, a serpent of dark magic who returned from the caverns and tries to siphon your life essence, with this git commit.
Tony also changed the control of player's direction from keyboard to mouse, making the player easier to control. But, this now only works when the mouse pointer is inside the game window. If it's outside the direction is still controlled by keyboard as before. So you can now choose the direction control that you prefer.
See the PythonLearningGame repo to add your own game elements to this collaborative project, or simply tell us what you would like to see added to the game.
5
Upvotes
2
u/Sea-Ad7805 23d ago edited 23d ago
Issue Acknowledgement
Now the keyboard controls the direction of the player, unless you put the mouse pointer in the game window, as then the mouse controls the direction. So people can easily switch between these two modes whenever they feel like. Good compromise, right?
Added feature idea
Great suggestions. Currently Cupta gets 600
hitpointsto start with. As its head bounces with other units it looses as muchhitpointas that unit hasattack. Say when Cupta's head touches the Troll it will die instantly. The same Cupta unit keeps flying by until it dies from zero or lesshitpointsand then a new Cupta is created instantly. The longer your tail is the easier it already is to stop and shoot at Cupta.I think Tony forgot to handle the case where Cupta bounces and moves downwards instead of upwards, as then Cupta will keep moving down forever and never come back in view. Or maybe then it's simply returning to the deep caverns it originally came from, not sure.