We've spent months researching methods to implement a cross-platform and cross-language graphics engine in Repl.it. With our Explorer's help, we've explored different ways of doing graphics -- some of you even built amazing things on it! However, the time has finally come to start rolling out our graphics system. It's still buggy and requires some more work but it works. Some of you might have even already discovered it.
While we intend to roll this out to all our languages we're starting with a few specific environments and we'll generalize from there:
Here is a taste of what the development environment might look like:
Some limitations and known issues:
- The graphics window is shared across clients. I.e. if you share your repl with someone they'll be able to interact with the same window you're interacting with. It
- You have to fork someone's repl before seeing the result.
- Sound sadly doesn't work yet
We're hoping to fix these pending issue in the next week.
[TO TRY IT FORK AND FUN] I pulled a few examples from the web for you to check out.
Oddly enough, GFX does not work for me. I simply get the loading wheel in where the graphics should be outputted, and it never loads.
Huge fan of these improvements for GUI interfaces! Love the current developments and
I'm excited for the future of repl.it!
This is very cool. I hope you add PySDL2 for Python (since pygame is still based on deprecated SDL 1.2) and SDL2 for C/C++. Or can you already use PySDL2 through the package manager it just doesn't have a dedicated "language" yet?
This is super exciting and the 3rd time that you guys have pushed out an update literally as my programming class would begin to start needing it. Is there a reason you called the language tkinter instead of python (with tkinter)?
In Java Swing my application may load once. If I close the application then I just get a loading wheel (or sometimes a black screen with a black x for a mouse cursor) and can't run it a second time. Really looking forward to this feature though!
@amasad The second time I run it the nohup.out files has the following at the bottom. The screen looks like the attached picture.
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
after 12840 requests (12840 known processed) with 0 events remaining.
Any other information you need?
Portability from desktop to here is amazing, even when it's using images! This my first PyGame game ever and it is the exact same as my laptop, here it is! https://repl.it/talk/share/Connect4-PyGame-Edition-8-Bit-Graphics/11772
You've done an amazing job on the repl.it GFX! Keep going with amazing implementations like these!
-- It can't transfer capital-letter keypresses (it interprets them as lowercase)
-- Fonts don't work right with
This is an amazing feature though
Good job repl.it team
Neat; this looks like it's running an X server and sending that out via the browser? Does it support OpenGL etc? Am hoping this will allow Pyxel (8bit games in python https://github.com/kitao/pyxel ) in the browser :)
I got SFML to work on here using this feature (you can see the repl at https://repl.it/talk/share/SFML-on-replit-POC/11619) and it's working pretty smoothly. Good job on this one.