„README.md“ ändern
parent
f0b18e4976
commit
9999091b00
|
@ -31,6 +31,7 @@ if you want to control the hashtag use this code:
|
||||||
|
|
||||||
import time #imports the time module
|
import time #imports the time module
|
||||||
import main #imports the hashengine module
|
import main #imports the hashengine module
|
||||||
|
import keyboard #imports the keyboard module
|
||||||
game = main.game() # makes a variable with the game instance
|
game = main.game() # makes a variable with the game instance
|
||||||
box = main.object("#", y=10, gravity=0.1, antixforce=1) # creates the box antixforce selects the braking gravity selects the gravity y selects the y start position x selects the x start position character selects what character the object should be in our case a hashtag just experiment with the settings and you may programm something cool!
|
box = main.object("#", y=10, gravity=0.1, antixforce=1) # creates the box antixforce selects the braking gravity selects the gravity y selects the y start position x selects the x start position character selects what character the object should be in our case a hashtag just experiment with the settings and you may programm something cool!
|
||||||
game.addobj(box) # adds the box to the game so the game knows that it exists
|
game.addobj(box) # adds the box to the game so the game knows that it exists
|
||||||
|
|
Loading…
Reference in New Issue