I have to create a game for one of my assignments in python, using pygame. I'm considering developing an InkBall type game (InkBall can be found in Windows Vista), however, I cannot seem to find any information on how to get the user interface to recognise when the mouse has drawn a line. I just can't seem to figure it out.
I would like to be able to hold down the left button on the mouse and draw a line anywhere in the game area, just like InkBall, but I can't figure this out anywhere.
I'm not experienced in this as we haven't been doing python long and I haven't really created any games yet.
If anybody could help me at all, I would really appreciate it :)
Question
Calum Veteran
I have to create a game for one of my assignments in python, using pygame. I'm considering developing an InkBall type game (InkBall can be found in Windows Vista), however, I cannot seem to find any information on how to get the user interface to recognise when the mouse has drawn a line. I just can't seem to figure it out.
I would like to be able to hold down the left button on the mouse and draw a line anywhere in the game area, just like InkBall, but I can't figure this out anywhere.
I'm not experienced in this as we haven't been doing python long and I haven't really created any games yet.
If anybody could help me at all, I would really appreciate it :)
Thanks in advance.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts