haroldo-ok / choice4genesis

A ChoiceScript clone that generates SGDK-compatible C source for the Sega Genesis
https://haroldo-ok.itch.io/choice4genesis
MIT License
19 stars 2 forks source link

Implement word wrapping #22

Closed haroldo-ok closed 1 year ago

zartan9 commented 1 year ago

cant wait :) will the text be automatically justified/hypenated too? Im chipping away at adding text 👍

haroldo-ok commented 1 year ago

It may be a good idea to add the capability of setting alignment/justification; not sure if it would be possible to add hyphenation, but that could be looked into.

zartan9 commented 1 year ago

works! But now pictures not showing?

rc/generated_scripts.c: In function 'VS_startup': src/generated_scripts.c:14:6: warning: variable 'VL_localInt' set but not used [-Wunused-but-set-variable] int VL_localInt = 2; ^~~ src/generated_scripts.c: In function 'VS_gen19a': src/generated_scripts.c:190:19: error: 'g19v1_png' undeclared (first use in this function) VN_background(&g19v1_png); ^~~~~ src/generated_scripts.c:190:19: note: each undeclared identifier is reported only once for each function it appears in make: *** [out/src/generated_scripts.o] Error 1 rm res/sprite.rs SGDK compiler exited with code 2

haroldo-ok commented 1 year ago

From this line:

src/generated_scripts.c:190:19: error: 'g19v1_png' undeclared (first use in this function)
VN_background(&g19v1_png);

It looks like it is not finding "g19v1.png"; please try checking if the name given on the script file is the same as in the image file.

For now, the transpiler isn't checking this (see #67), so, if there's a typo on the image name, it will only be noticed on the compilation phase.

zartan9 commented 1 year ago

It looks the same and it's a png hmm.

Sent from the all new AOL app for Android

On Wed, Oct 26, 2022 at 5:03 AM, Haroldo de Oliveira @.***> wrote:

From this line: src/generated_scripts.c:190:19: error: 'g19v1_png' undeclared (first use in this function) VN_background(&g19v1_png);

It looks like it is not finding "g19v1.png"; please try checking if the name given on the script file is the same as in the image file.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

haroldo-ok commented 1 year ago

I see... could you please attach the project so that it could be analised and to reproduce the bug?

zartan9 commented 1 year ago

ok  i added it on github its a big file thank you

-----Original Message----- From: Haroldo de Oliveira Pinheiro @.> To: haroldo-ok/choice4genesis @.> Cc: zartan9 @.>; Comment @.> Sent: Wed, Oct 26, 2022 12:45 pm Subject: Re: [haroldo-ok/choice4genesis] Implement word wrapping (Issue #22)

I see... could you please attach the project so that the bug can be reproduced?— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>