Skip to content

New engine

So I’m do something very ambitious I’m building very own game engine from scratch and was just wondering if C# would be a good language for that. BTW it’s a simple 2D game engine not much in it maybe a basic physics engine and animations of course but that and the other things need for a very basic game.

Update: thanks for all your help I’ve decided to make a game with unity to get experience with C# then make my custom game engine thanks for all your help.

Edited 18 Oct 2019. We only hold this version.

4 points11 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
4 · 100% up
Kind
Text
ID
dh7c61

Author

3
posts
4
comments
0
media
View profile

11 comments

If you don't know if c# is a good language for it, I'd recommend not trying to make an engine. or if you do note people typically either make a game or a well supported engine. That said yes c# is fine. My first game was with a framework and it's kinda it's own engine but engine kinda implies a lot more than just built for one specific game. This is why l recommend focusing on game creation if that's your end goal. Otherwise it's a great way to learn the ins and outs.

4 points

Hmm, I thought about downvoting this but upon consideration I can understand you are trying to be helpful. Many people make games and game engines. Space Engineers, Factorio, Limbo, and plenty more! As a solo endeavor, making a game with a custom game engine is a great learning experience.

I know a lot of people give up or loose focus. Its easier to pick some off the shelf engine and build something and rapidly iterate over various ideas. You can't really do that in the same timeframe if you are also building the engine at the same time as the game.

However, with all that said, if you want to build a game engine and use C#, there is no technical reason not to. The previously mentioned Space Engineers is written in C# in a custom engine. You'll need to keep an eye on your object life cycle in order to manage the garbage collection overhead, but that's easily done with the proper design patterns.

My recommendation is to pick an off the shelf engine, prototype what you want to build, then build the engine afterwards once you have a solid target to reach for.

2 points

Like I said my first game was with a game framework. Although besides space engineers I'd say those games don't use game engines but instead frameworks formed for the specific game. Additionally none of the games you mentioned are solo devs.

Lastly I'm saying because the person doesn't know if c# works for a game engine that they aren't at the skill level to do a game and engine at the same time.

1 points

If it is just simple 2d stuff without 1,000,000 particles on screen, c# is fine. But if you want to venture into 3d graphics or do stuff more complicated than sprites and simple physics, I'd recommend using c++ or using an engine that already exists

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.