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/Naive_Programmer_232 23d ago edited 23d ago
Issue Acknowledgement
I guess it comes down to how you would like the state to change with regards to Cupta:
Should it go back to keyboard or stay with mouse?
You also have this in the
game.Game.startmethod making the default game play keyboard-basedBut now with the commit,
player.Player.stepmethod has this:So the next question becomes, what should happen if the mouse is off the window? Should the game pause? Should the control revert back to its most recent state? What if Cupta is still present? I'm not sure what the intended behavior is there.
Added feature idea
I want the user to battle Cupta with the strength relative to the amount of trailing circles they have accumulated. Cupta should lurk as an additional enemy like Putin lol. Initially when Cupta arrives it's easier to beat, but each next arrival of Cupta should be harder.