Skip to content

Conversation

@zabidenhtf
Copy link

No description provided.

@petitlapin
Copy link
Owner

petitlapin commented Jan 13, 2026

Thanks for the PR (and the other one in Li-ri-devel). As said in another issue, bumping the year is clearly not the most important for now (as there is no release planned for now).
I'll keep them open and will merge them later when I plan to do a release.

How much do you want to work on improving the game? On my side, I mostly plan to only do minor changes and keep it alive and up-to-date, so I don't have big plans to add new features or major improvements. I've opened a few ideas that could help with the maintenance (such as using sdl_ttf for the texts instead of images, because as you saw, generating the data is complicated and if we want to add languages, it will not be easy or more easy or having the option to not have the human rights questions). Is it something you'd like to work on?
Because if that's the case, I can see to prioritize on my side to fix the issues of non English texts which are blockers to contribute.

@zabidenhtf
Copy link
Author

Yes, I’m interested in helping in Li-Ri project. I see potential in this project. :D

@zabidenhtf zabidenhtf changed the title Update copyright's to 2026 Update copyright's to 2026 and renamed some stuff in code Jan 14, 2026
@zabidenhtf
Copy link
Author

Hello, I have a small question would you be able to merge my PR?

@petitlapin
Copy link
Owner

Hello, I have a small question would you be able to merge my PR?

Regarding the copyright, I think I'll prefer to do it myself when I'll want to create a new release: the main point is that for the image you didn't use the same font, so I would like to ensure I use the same one as before.
Can you please rename this PR only for renaming and delete the commit regarding the copyright? Then, I'll be able to review it (and please, note it may take some time, I'm working on multiple projects and in real life so I don't have a lot of time for Li-Ri)

src/utils.h Outdated

static bool LoadPref(); // Load preferences
static void SauvePref(); // Save preferences
static void SavePref(); // Save preferences
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would go with SavePreferences() and remove the comment (ideally same for LoadPreferences above)

src/main.cc Outdated
Level level; // Gère les niveaux
Sprite *Sprites = nullptr; // Sprites pointer
int NSprites = 0; // Number of sprites in memory
Screen Ec; // 2 Video buffer pointer TODO: RENAME
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice if we can remove the TODO. Maybe call it screens (Ec is short for Ecran which is a screen in English)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and in my opinion will be good rename this object to screenObj

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does the "Obj" suffix bring?
Also, it would be better to avoid using acronyms or abbrevations if possible because the code is more often read than written, so even if you gain a few seconds by not typing the full word, people who will read the code will lose more time trying to understand its meaning

@zabidenhtf
Copy link
Author

Ok, I'm will fix my errors

@zabidenhtf
Copy link
Author

Fixed

@zabidenhtf zabidenhtf changed the title Update copyright's to 2026 and renamed some stuff in code Rename code on english Jan 15, 2026
@zabidenhtf
Copy link
Author

Hello, im removed copyright update from repository.

@zabidenhtf zabidenhtf changed the title Rename code on english Translate code on english Jan 15, 2026
src/audio.cc Outdated
return;
}
MemoHorloge = Horloge;
MemoHorloge = currentTime;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can MemoHorloge be renamed memorizedTime?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, sure :D

src/sprite.cc Outdated
if (AfficheC == true) {
Hor = SDL_GetTicks();
i = (Hor / (1000 / 25)) % Sprites[chargeur].N; // Calcule le numéro su sprite à afficher
i = (Hor / (1000 / 25)) % Sprites[digits].N; // Calcule le numéro su sprite à afficher
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be loading here and everywhere below where it was chargeur (I don't add a comment for each, please double check all the file :))

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opps, im fix it

@zabidenhtf
Copy link
Author

Fixed bug. now there no errors (and im fix critical bug with loading screen)

@zabidenhtf
Copy link
Author

Hello, im have small question: when will be merged my PR?

@petitlapin
Copy link
Owner

petitlapin commented Jan 18, 2026

Hello, im have small question: when will be merged my PR?

I'm copying what I wrote above: "please, note it may take some time, I'm working on multiple projects and in real life so I don't have a lot of time for Li-Ri"

You have to consider:

  • I have a life aside of the project so I don't have as much time as you would expect. So it may take a day or a week depending on what I have to do aside.
  • You probably did most of the change with an AI or an automatic translator (because you're Ukrainian and the probability of not being fluent in both English and French is really high 😄) but on my side I have to check every translation one by one and ensure there is no regression and it's really the initial meaning (which may be difficult to understand too). And reviewing this number of change takes time.
  • I have to consider how much strict I am with the changes: there are some small mistakes, do I take the time to ask you to change all of them (which will bore you at some point), do I merge the PR with these issues, do I want to fix them myself later?

So please, don't get me wrong, I really like your enthusiasm and willingness to improve this game and I hope you will be patient enough to let me the time to review the change and we can discuss the future of the game!

@petitlapin
Copy link
Owner

Can you please apply the attached patch? The small changes are:

  • comply with clang-format (change in game.cc)
  • fix the translation in menu.cc (I guess you changed all the "affiche" to "draw" but it was also used on comments and the remaining part of the sentence was kept in French)
  • rename DrawL to shouldDrawLoading, this way we don't need to find what is "L" and there is no more comment needed as the variable is self-explanatory.

To apply the patch, copy the file in the root folder and run: git apply patch.diff
patch.txt

Once applied, I'll run again the CI, clang-format should be green, and I'll squash and merge the PR :)

@zabidenhtf
Copy link
Author

Ok, sure, but later

@zabidenhtf
Copy link
Author

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants