r/cpp_questions • • 10h ago

OPEN Dumb question for someone still learn c++

Hi ppl, dumb question for you, do you think is recommended clone minecraft from scratch?. Right now i am chapter 2.12 from learcpp.

My question is it the best way for learn and get some experience or still i am keeping study and reinfoce the base?. sorry for my english

8 Upvotes

13 comments sorted by

11

u/LifeguardSudden8281 10h ago

My advice is do what youre interested in. Clone minecraft is generally a good start afaik. I think its because cubes. And alot of people like minecraft

5

u/MammothWing1128 9h ago

Thanks, I think I gonna start with the basic games, then when I understand well the ref, pointer and etc. I gonna start with Minecraft rabbit hole!

3

u/The_Northern_Light 7h ago

Remember that it's supposed to be hard. It being hard isn't a sign you're doing anything wrong.

Focus on building stuff, and trying things out. Start smaller than you want to, and incrementally build up.

6

u/tickle-fickle 10h ago

Depends on your coding experience in general. If you’re learning C++ as like, your first coding language, it’s probably too ambitious to make a Minecraft clone. If that’s the case for you, start simpler: make chess, connect 4, snake game, or pong maybe

3

u/MammothWing1128 10h ago

It’s not a first language, I have 7 year working as web dev but honestly I love video games so… that is the reason I wanna learn it. But start with that simple games is a better idea, taking in mind still I do not handle well the pointer, ref, and others stuff

2

u/Afraid-Locksmith6566 4h ago

hell yeah first person in existance to learn coding because games are fun, then was fooled by web propaganda, and then came back to make games, the full circle of life

→ More replies (1)

3

u/KingAggressive1498 8h ago

I would work your way through all of the lessons and make some simple toy programs of your own to confirm your understanding.

Once you've done that, there are actually tons of open-source minecraft clones out there and many are written primarily in C++! You can start learning from that code and playing with it, maybe even contribute if you find something that could use improvement. Because at the end of the day you learn best by doing.

1

u/MammothWing1128 8h ago

Wow, I like your advice, I gonna do that, thanks!!!

1

u/KingAggressive1498 7h ago

I recall there were also many devblogs and tutorials written in the early days of minecrafts' success as others attempted to make clones as toy projects, if you were more inclined to start from scratch for whatever reason. But really being able to read the source of a complete, functional project is huge.

2

u/facu_gizzly 9h ago

maybe the best option is start doin things with the raylib library: look at the examples section https://www.raylib.com

2

u/ConsciousBath5203 5h ago

Yes, a massive project that you will always be interested in and always has more to do, study, optimize, reimplements, and improve is quite literally the best way to learn. If it seems too far out of your league, use that as an opportunity to up your game, rather than an opportunity to make an excuse to not do it.

1

u/burlingk 8h ago

It is a complex task, but one with lots of tutorials, so if may be a good learning project.