Ask coding questions

← Back to all posts
Highwayman (1357)

I’ve been totally lost lately on what to code, so I was wondering if anyone had some ideas on what to code in c++?

Answered by SPQR (533) [earned 5 cycles]
View Answer
SPQR (533)

It's possible to use's gfx with C++, using SDL or SFML libraries, via polygott. I can link some example repls if you like.

Highwayman (1357)

@SPQR yesss absolutely, that would be awesome!

SPQR (533)


You can just fork these if you like to make it easier :)
I'd recommend SFML since it's a much simpler interface.

Highwayman (1357)

@SPQR thank you so much, I think I’ll play around with these for a bit!

SPQR (533)

@Highwayman No problem :)
Here's the documentation for SFML to get you started:

MatthewDoan1 (325)

@SPQR Hm, now you've piqued my interest. What's polygott?

SPQR (533)

@MatthewDoan1 simply put, it allows you to run makefile scripts, allowing you to run anything on as it runs on Ubuntu Linux. makefile syntax is similar to bash, so I would recommend you familiarize yourself with that before you do anything too crazy. It's useful for changing compiler options, installing packages, etc.

eankeen (1325)

you can try a text based adventure game. if that is too simple, you can try to think of more complex game mechanics that will force you to improve your coding style or practices.

Highwayman (1357)

@eankeen the problem with games is more than just complexity and non-portability, inspiration has to be doable and even before that you have to actually HAVE inspiration for some sort of game. As of now all I have is @mwilki7 ‘s 'spelunky' game and though that is pretty good, it is also probably to hard. So. Yeah.

mwilki7 (1104)

spelunky but in the console

Highwayman (1357)

@mwilki7 too complex for me, besides nothing is really portable in terms of colors for the console. The minute you don’t use a video console, it colapses.