Skip to content
Sign UpLog In
Profile icon

Matthew Guillaume

@mattman101
Repls
Community
mattman101
mattman101
shared a Post
2 years ago
snake game
this is a repost because i was hoping more people could give me suggestions
snake 2.0
Python
Brendan23
Brendan23
can you make it so the "snake" is always moving, even when the player isn't pressing anything?2 years ago
mattman101
mattman101
shared a Post
2 years ago
is there any way to have music playing?
dance
Python
RYANTADIPARTHI
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
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
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
mattman101
mattman101
shared a Post
2 years ago
this is very basic but i made it so you can move around the map
snake 2.0
Python
RhinoRunner
RhinoRunner
I like it, but when I kept going and got an apple I died for some reason2 years ago
mattman101
mattman101
shared a Post
2 years ago
I have this game and i feel like the game field is too small. is there anyway to make it bigger?
snake 2.0
Python
RYANTADIPARTHI
RYANTADIPARTHI
you can't change font size in the python console. Maybe try using ascii letters.2 years ago
SixBeeps
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
GABELACANLALE
GABELACANLALE
for i in range(0,10): for i in range(0,20): print('□') print('') `2 years ago
mattman101
mattman101
shared a Post
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
letter tester
Python
RYANTADIPARTHI
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
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
mattman101
mattman101
shared a Post
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
letter tester
Python
RYANTADIPARTHI
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
mattman101
mattman101
shared a Post
2 years ago
try to type the letter that shows up for points. comment your high score
letter tester
Python
btfuss
btfuss
how did you connect this to a website2 years ago
mattman101
mattman101
shared a Post
2 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
letter tester
Python
mesquite2234
mesquite2234
from getch import * thing = getch() if thing == other_thing; #stuff 2 years ago
InvisibleOne
InvisibleOne
Personally, I use getch2 years ago
KingsleyDockeri
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
mattman101
mattman101
shared a Post
2 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
zombies run
Python
RYANTADIPARTHI
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
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
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
mattman101
mattman101
shared a Post
2 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
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
mattman101
https://repl.it/@mattman101/pong#main.py, I did it after a lot of coping and editing.2 years ago