Ask coding questions

← Back to all posts
Can you code games with C# on repl.it?
Ohayou

I don't mean console games, I mean can you code an actual 2D or 3D game in C#? Even if there is no game engine

Answered by InvisibleOne [earned 5 cycles]
View Answer
Voters
skvbh
6JAppleby
Ohayou
Comments
hotnewtop
InvisibleOne

No, not on Repl. The graphics in c# on repl do not work very well. However, you can create games in a game engine called unity and then upload them to replit. But that isn't really making it on repl it since you are doing that actual coding on a game engine.

Ohayou

@InvisibleOne yeah ok, I use Godot with C# but I wanted to try C# game development on repl.

InvisibleOne

If your computer can run unity you should look into it. Sadly mine can't so I can't use it but it's a really cool game engine. @Ohayou

RYANTADIPARTHI

Yes. C# uses Unity. That's a game engine. You can cool 3D games with it. I think on repl.it too.

InvisibleOne

Unity is not on replit, it's a game engine and a lot different from Replit. You can upload your unity game with an HTML code it gives you @RYANTADIPARTHI

Ohayou
Coder100

what type of question is that?

Go make a terminal game lol

but no, technically in ambient contexts it isn't super simple nor practical to make games in C#. Use a game engine like unity

Ohayou

@Coder100 I CAN'T BELIEVE YOU REPLIED OMG, I use godot

Coder100

nice! @Ohayou

jemrules

@Ohayou you ok?

[deleted]

maybe you can but you can't make them as good

6JAppleby

Yeah, definitely. They might not be powerful, or fast as the games you might know, but browser games certainly.

jemrules

You can use a 2d array and print it out in the console. It's a bit laggy could it would work. You won't get any mouse controls but you can use Console.ReadKey(); learn more here: https://docs.microsoft.com/en-us/dotnet/api/system.console.readkey?view=net-5.0

HarperframeInc

Yes! But the engine your looking for may not work on repl.it. (The graphics system is very odd to some engines and may need configuration.)

Ohayou

@HarperframeInc Could repl.it add a game engine for C#, that would be cool!

HarperframeInc

@Ohayou Yes. Maybe you might want to try upvoting this language request (Unity Game Engine)

CSharpIsGud

@HarperframeInc You can make unity games on repl by just compiling them to webgl