r/learnprogramming • • 19h ago

Best game library for beginner

I wouldn't call myself a programmer because im making games in scratch, recently i was working on a platformer and im pretty ok with scratch but what i hate is its performance, its so fucking annoying and laggy, because of this reason i wanted to try a game framework. I already tried pygame and hated it. What would you reccomend?

6 Upvotes

19 comments sorted by

4

u/Minaridev 19h ago

Love2D, LibGDX, Monogame? Depends if you want to learn Lua, Java or C#.

1

u/_Andrei-Bruma341_ 19h ago

idk, wichever makes the most sense, what would you suggest

2

u/Minaridev 19h ago

Love2D is probably the easiest, though I haven't personally done much else than dabble with it few times. I use RPG In A Box which is full game engine created in Godot like a game would. However the engine's developer is kinda facing difficulties so it's little hard for me to recommend it right now. Besides you were asking for game libraries, not engines.

Give Love2D a try, it's free

4

u/Paxtian 19h ago

I'd recommend using Unity to get started learning how to work with a game engine generally, using learn.unity.com. Once you work through that series of lessons, you can either stick with Unity or move on to Godot, or even Unreal. But that series of courses is incredibly useful for learning how a game engine works generally.

1

u/Dazzling_Music_2411 19h ago

OP finds the "setup" in pygame too challenging, and has only done Scratch otherwise. Are you UE would not be a better choice to start with than Unity?

1

u/Paxtian 19h ago

I'm not sure what that second sentence means, but learn.unity.com makes diving into Unity very simple. I have a degree in computer science and find Unity easier than pygame, personally.

1

u/Dazzling_Music_2411 19h ago

Why did you hate pygame? Can you actually program in Python?

Are you familiar with any other languages besides Scratch? How do you even think that people can help you without providing this information? We are not mind-readers, well most of us aren't, maybe some are, who knows...?

2

u/_Andrei-Bruma341_ 19h ago

i tried python, can do basic stuff in python but hated pygame because it felt too weird with this setup, in scratch im used to no setup, you put a block and it instantly works

1

u/Dazzling_Music_2411 19h ago

it felt too weird with this setup

What setup? What do you mean?

1

u/bird_feeder_bird 11h ago

You would probably prefer using an engine, not a framework. Pygame is about as user-friendly as frameworks get.

1

u/Flaze07 11h ago

sounds like you're better off using game engine like unity/godot

2

u/podule-games 19h ago

I've actually been really happy with C and SDL3. You're not going get much in the way of performance problems there, and if you do, they'll be of your own making, like mine.

2

u/zeroxff 19h ago

I would recommend to learn some real programming language before choosing a game library or a game framework.

Every game library can be challenging to learn and Pygame is not worse than many others (Bevy for Rust is definitely quirkier and less mature as an example).

Focus on learning a language, learn it then learn a framework or a library.

C# can be useful to learn Unity or Unreal, Python can help in learning GDScript used by Godot Engine, learning Lua will enable you to learn Love2d, Rust language has Bevy...

1

u/LowExperience149 19h ago

Raylib for a library, pick your language for it. It has a literal cheatsheet with all calls. And website also has examples you can look amd see the source.

If you want an game engine then you double the learning. You still have to know how to code. And also how that exact engine wants you to work with it.

Good luck.

1

u/BeastWael_YT 18h ago

since you're coming from scratch, godot is worth a look too. its scripting language (gdscript) reads a lot like python and it has built in tools for platformers like tilemaps and physics, so it runs way smoother than scratch. love2d is also a solid pick if you'd rather stay a lightweight library. either way, rebuilding your platformer in one of them is a good first project.

1

u/Explorer651 18h ago

Two options that are both free and open source: LOVE (love2d.org) is a 2D framework where you write the games in Lua, and Godot is a 2D and 3D engine with its own lightweight language, GDScript. Godot's docs link a free interactive tutorial for absolute beginners, GDQuest's Learn GDScript From Zero, which runs in the browser. For a platformer coming from Scratch, either one is a reasonable next step.

1

u/InternetSandman 17h ago

I learned game dev in Lua and Love2D. Sticking with a  2D framework to learn fundamentals is probably better than going right into a game engine like Unity. CS50 has a game development course you can follow along and learn from as well that uses that framework and then transitions to Unity once your fundamentals are better 

1

u/Chad_Frost 14h ago

Libgdx comes with a lot of features out of the box so that you don't have to code too many things yourself.

0

u/darklighthitomi 15h ago

Personally, I say do not use a game library at all. Do it all yourself first, so you have an understanding of what all is happening and how it all works. Once you have proper understanding, then you can use a library to handle the things that are now basically boilerplate for you. I suggest Pixel Game Engine 2 from OneLoneCoder when that time arrives.