tur-learning / CIS1051-python

Intro to Problem Solving & Programming in Python
https://tur-learning.github.io/CIS1051-python/
MIT License
0 stars 0 forks source link

Make the Spaceship gun rotate with mouse pointer #23

Open andreagalle opened 1 year ago

andreagalle commented 1 year ago

The Spaceship can rotate according to the mouse pointer, this will decide which direction the gun points too.

Concerning thr spaceships displacement, THIS will always be unrelated to the orientation itself, i.e. independetly from the orientation the spaceship will always move the direction the arrow key are pressed.

dario-abbondanza commented 1 year ago

A cool solution would be to have two different sprites, one on top of the other. I'm thinking of a gun sprite on top of the spaceship sprite, the former can rotate whereas the latter cannot. In this way the game would be more visually intuitive. The gun always points in the direction of the mouse.

andreagalle commented 1 year ago

Good idea, rotating the spaceship itself or the map beneath would be much less intuitive or even make the player go crazy.

@ben-vanzyll-temple we could plan this issue as soon as the #21 and #22 (plain space exploration features) are closed! Maybe iteration 3?