Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

I'm using C++ and SFML. Is it okay if I modify framework code?

A topic by DevKage created May 07, 2020 Views: 153 Replies: 3
Viewing posts 1 to 4
Submitted

Okay so I've almost created my game using C++ and SFML. But the character counti is currently near 1500(including whitespaces).

Will it be okay if I modify some parts of SFML the framework I'm using?

Mostly I'll just be changing some method names to make them shorter. Like setMouseCursorPosition() will become sMCP() or probably just s(). And class names will be also shortened, like RenderWindow will become RW.

I'll not be adding any new functionality in the framework, but will just reduce the character count.

HostSubmitted(+1)

Hi Ryuzaki! That should be just fine. The key here is that you set some ground rules as a challenge for yourself, and stick with them the best that you can! We're not going to be sticklers if you stretch the rules a little bit. :)

Submitted

Heh, I could save 20-40 characters by altering the TIC-80 source to alter function declarations and names…hmmm…nah.

I have noticed that Pico-8 has a head start over TIC-80 for this challenge if only for the one-letter functions built in.

But one submitter managed <=560 chars in vanilla JavaScript, so I can’t complain much.

Submitted

Tried to reduce my C++ code as much as possible but still it was not good enough. So finally switch to Godot Engine. Here is my submission: https://itch.io/jam/tweettweetjam-4/rate/638865