Updates from the Repl.it team about the product

← Back to all posts
Repl.it GFX Public Beta: Build Games and GUI Apps
amasad (3553)

Hello everyone,

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:

  1. 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
  2. You have to fork someone's repl before seeing the result.
  3. 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.

MD_ItteshamItte (2)

@mat1 DO you know anything on how to code for games

h3xed (95)

@MD_ItteshamItte He's one of the featured coders. What do you expect?

theangryepicbanana (1710)

Can't wait for official support for more languages!

eankeen (2257)

Huge fan of these improvements for GUI interfaces! Love the current developments and
I'm excited for the future of repl.it!

XavierDD (98)

Nice. I love this feature but could it be opened up in a new tab like repl.run?

paul_craven (3)

How are you doing graphics support? As the author of the Arcade library http://arcade.academy I wonder how easy it would be to get Arcade integrated as well?

randomlylelo (39)

Just in time for the Game Jam!

MD_ItteshamItte (2)

@randomlylelo Can you teach me how to code for gaming I can do regular coding but I don't understand how gaming works

mpwteach (2)

Thank you! Been waiting for this..I'm teaching AP Computer Science A and the ability to code graphic Java repls means we can use repl.it for the entire course.

Please allow classrooms to support Java Swing.

Thanks again!

mrsi (1)

and pygame!

Zavexeon (1166)

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.

mrsi (1)

When will you add them to Classroom?

derpdizzzzy (9)

What version of love2d are we using.love2d in repl doesn’t work with github modules.can you please fix this, also it has errors when I try to require love modules.It also has errors with the corrections I had tried to make from the Love2d forums.They also don’t work.Can you please fix this in the next update.if you want to check out the repl and find out on how to fix it basically click on @derpdizzzzy and click on book dizzy the movie noobalion rated elite.

MD_ItteshamItte (2)

CAn anyone teach me how to code for gaming

rswinkle (0)

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?

danieldiggs (1)

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)?

amasad (3553)

@danieldiggs awesome! Good point. Will rename it.

ChristianWillaum (0)

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 (3553)

@ChristianWillaum what happens when you run it the next time? A screenshot or some logs would help us debug. Thanks

ChristianWillaum (0)

@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?

HarveyH (224)

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!

amasad (3553)

@HarveyH yay 🙌 we're gonna make sharing easier too.

Btw, are you joining the game jam?

HarveyH (224)

@amasad yeh, y not? Can I use this cause it took less than a month to make (I might just modify graphics to fit theme if yes)

HappyFakeboulde (241)

More bugs:
-- It can't transfer capital-letter keypresses (it interprets them as lowercase)
-- Fonts don't work right with tkinter
This is an amazing feature though
Good job repl.it team

AleksandarZh (0)

@HappyFakeboulde Try also checking if 'SHIFT' is pressed. Maybe there is a system call to check if caps lock is on?

B0T (16)

that's dope

VictorRajewski1 (5)

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 :)

amasad (3553)

@VictorRajewski1 yes it supports opengl! Try a pygame opengl example. Try to get pyxel working

paul_craven (3)

@amasad Why won't it load additional libraries like Pyglet? https://repl.it/@paul_craven/Pyglet-example

amasad (3553)

@paul_craven You need to use the package manager. Right now it doesn't have the automatic package installer we have in regular python. Here is a gif

SPQR (597)

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.

evanzimmerman (50)

Can't wait to start experimenting!

seamuswalden3 (2)

WIll this be available for use in the upcoming Game Jam? Just wondering becuase I was going to do a text-based, but I know way more about Pygame.

amasad (3553)

@seamuswalden3 yeah. You can get started. Just pick "pygame" as a language.

PaoloAmoroso (192)

That's great, thanks!

TheDrone7 (2002)

I'll be waiting for more!