Matthew Guillaume
@mattman101
Brendan23 can you make it so the "snake" is always moving, even when the player isn't pressing anything?2 years ago
RYANTADIPARTHI Solution
read this docs. And you will know how to play music in repl.it
https://docs.repl.it/repls/audio2 years ago
Bookie0 Click me and you'll be astonished to find out how to play music, audio, or other audio-related things on repl.it! :)))2 years ago
Bookie0 Yes, you can have audio playing on your repls. There are already libraries made with repl.it audio for python and javascript, but you can make your own for other languages.
Full tutorial here.
Also, for audio to work, you most likely need to be an explorer. For that, go to your account:
image
Scroll down to roles:
Screen Shot 2021-01-22 at 1.02.01 PM
And check 'explorer':
Screen Shot 2021-01-22 at 1.02.31 PM
Then you'll have the explorer role!
Basically, in python, play an audio file, d2 years ago
I have this game and i feel like the game field is too small. is there anyway to make it bigger?
Python
RYANTADIPARTHI you can't change font size in the python console. Maybe try using ascii letters.2 years ago
SixBeeps There's no changing the font size, but you can zoom in on your browser and the terminal will scale reasonably well.2 years ago
i have this code where you have to type the right letter to get points. is there a way i to set a timer, lets say 60 secs, and when it is over the cod
Python
RYANTADIPARTHI Solution
use the time module. It works perfectly.
import time
start = time.time()
end = time.time()
if start - end > 60:
exit()
like that. It stops the code
It should work2 years ago
robowolf I would look into Multi Threading to do that. But to make it simple you can get do something like
import time
start = time.time()
input('?')
end = time.time()
if (start-end)>5:
print("you lose")
`2 years ago
i have this code and i would like to have it so that you only have a certain time to see how many points you can get. is there any way to do this
Python
RYANTADIPARTHI Solution
try the time module. HEre's an example
import time
d = input('what is 2 + 2 ? ')
time.sleep(5) # waits 5 seconds
print('you lose') # example after 5 seconds
so like, if they wait for 5 seconds, they lose. You can modify with if statements and all.
That should work2 years ago
I'm making a project where it gives you a letter and you have to press it in order to get a point. does anyone know how to detect which key is being p
Python
KingsleyDockeri I recommend Pynput. Here's a tutorial of a simple keylogger: https://www.bing.com/videos/search?q=key+logger+python+tech+with+tim&&view=detail&mid=C45BAA84C64ED9013203C45BAA84C64ED9013203&&FORM=VRDGAR2 years ago
I am wanting to import images to acompany a story. I have tryed metpoint lab and PIL. metpoint stops my code and PIL dosn't display the image. What ca
Python
RYANTADIPARTHI You cannot display images in the console, but if you want it in pygame, or in HTML, css, or js. Try these links:
https://www.geeksforgeeks.org/python-display-images-with-pygame/
https://www.w3schools.com/html/html_images.asp2 years ago
Coder100 You can't display images in the console, but you can do two things:
ASCII art.
https://fsymbols.com
Pygame
You could technically also use this2 years ago
SUHASTADIPARTH1 If you are writing a story, and you want images to accompanied with, you might want to use HTML, CSS, and JS2 years ago
I do python 2.7 and i'm wanting to make an easy and impressive game to impress my crush who is into coding, anything?
BhushanVerma Make a pong game or something. It’s easy (but not impressive, too easy).fortnite accounts
buy cod accounts
csgo prime accounts
buy forza horizon 5 accounts7 months ago
mattman101 https://repl.it/@mattman101/pong#main.py, I did it after a lot of coping and editing.2 years ago