🚀 A Starter Guide to Pygame 📀
posted to Tutorials by eankeen

The example works when I open it in your repl, but when I fork to my own it doens't work :-(
I wanted to test it because I find pygame and love2d kind of slow responding/ laggy when I move a picture around (with keyboard input)
Some of the error code:
Display is not capable of DPMS
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
^CTraceback (most recent call last):
File "main.py", line 25, in <module>
time.sleep(10 / 1000)
KeyboardInterrupt
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
after 123 requests (123 known processed) with 12 events remaining.
exit status 1

Game Jam FAQ
posted to Share by katyadee

@RoylatGnail Oh but something is coming ;-)
Well something is already here but is not officiel yet... And it feels a bit slow...

Using R libraries on repl.it
posted to Ask by timshelsteinbeck

I wanted to ask the same.
Wanted to learn shinydashboard for a webapp in R

Poetry invalid
posted to Ask by WikingGaffa

Thanks @HammadZaeem It worked by just deleting the packages files

How Did YOU Find Repl.it
posted to Ask by PYer

When I was learning Python I was looking for something online so I could write code when ever I had a bit of free time and I could work on the same code no matter if I was at work or at home, and I could easely share my code with a friend of mine who is a programmer... needed a lot of help from him in the beginning.
I was also frustrated that every time I needed to try something I need to download, install, update a bunch of things. With repl it is just new->code->stuff happens.

Hide console Tkinter
posted to Ask by WikingGaffa

@PYer Sorry I just edited my comment above with a link

Hide console Tkinter
posted to Ask by WikingGaffa

@PYer thanks for reply.
When I have an url like: https://repl.it/@WikingGaffa/tkinter-test?outputonly=1 I get the console and the gui window.
I could also get an url directly to a python console, (ends with .repl.run) I use that sometimes when people need to use my scripts but don't need to see the code.
But now with posibility of making tkinter gui and other I want to get an url that only shows the tkinter gui window and hides the rest.

python list question
posted to Ask by WikingGaffa

@AllAwesome497 thanks for pointing my to dictionary. I will use that for inventory in my game.
How ever for the specific question I think list is the way but append is not usefull
I want to draw some ascii art.
Line1 = ' '
Line2 = '*
'
Art = [Line1, line2]
For lines in art:
Print(lines)

Something like that simplified

Game Jam FAQ
posted to Share by katyadee

@seamuswalden3 Cool. I am thinking about using it for this game jam. I only use python for some simple work calculation stuff but think it could be a good way to get better at python

Game Jam FAQ
posted to Share by katyadee

@KatyaDelaney Py-what? :)

Game Jam FAQ
posted to Share by katyadee

Can you have more than one entry?

schedule run of repl
posted to Ask by WikingGaffa

@Vandesm14 Thanks for feedback.
Yes I will make the repl in python.
I will look into uptimerobot

How to count in python?
posted to Ask by Richard14

You need to be more specific. What is it you want to count?
There is propably better ways to do it, but here is two examples

mylist = ["item1", "item2", "item3"]
mytext = "item1 item2 item3"

#count instance in text
print(mytext.count("item1", 0, len(mytext)))

#count instance in list
counter = 0
for i in mylist:
  if i == "item2":
    counter += 1
print(counter)
Can't find search on Repl talk Ask
posted to Ask by WikingGaffa

@Babbel In the "old" feedback system there wasn't a searchbox, but when you began typing for making a new post it automatic tried to filter and show relevant posts. If you typed something with "Lua", it showed Lua related posts so you didn't have to ask it again if someone already had

HACKER PLAN
posted to Ask by spybrave

@hayaodeh Would you be able to hide repls and only people with a link could open it?
I am thinking, if I did a webapp and gave a link to the frontend (not able to see the code) to someone, only they can see and use the webapp.

Game
posted to Share by sj42

I wanted to see if I could build something with 2 wood and 2 stone. Turns out I needen alot more for crafting. There was no r for return or something like that so I hit Enter... And apperently that was a death sin :-(

but apart from that, it is a good base you can build upon.

90s WEBSITE (Pizza Fenzy)
posted to Share by Hariz_Hazril

Song is awesome

90s WEBSITE (Pizza Fenzy)
posted to Share by Hariz_Hazril

@harizhazril: I tried adding autoplay on my site but didnt get it to work. I might try again

Average 90's site
posted to Share by pacopako

Simple is good. like the rotating Netscape logo

90s Web -Pirates
posted to Share by WikingGaffa

@timmy-chen: thanks. It is 10 hour song for you to enjoy:). What do you think I have to improve?

Energycalculator
posted to Share by WikingGaffa

The end goal is to build a web app for calculating energy and cost saving when going from old heating methods in homes to new one.

What I am working on:
The field dos not accept decimal numbers ei. 10.5 etc. it need that for better calculations with different air mass

Energycalculator
posted to Share by WikingGaffa

@javatime: Thanks for feedback.
I also have a problem at the moment with empty strings.

Energycalculator
posted to Share by WikingGaffa

@heyitsmarcus: thanks. This web app is actually an adaptation of a javascript edition I build not long ago. I am learning the python framework Flask.
The error when hitting the button without input is something I am looking into. I have dome error handling that should catch it but I haven't solved that code doesn't trigger.

Energycalculator
posted to Share by WikingGaffa

@heyitsmarcus: Update: I solved the error with a user hitting the button without input. Now it generates a text "something went wrong" instead of breaking the app.
I also had an issue with one field should accept numbers like 1.2 not just whole numbers.