Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement word wrapping #22

Closed
haroldo-ok opened this issue Sep 21, 2022 · 7 comments
Closed

Implement word wrapping #22

haroldo-ok opened this issue Sep 21, 2022 · 7 comments
Labels
enhancement New feature or request

Comments

@haroldo-ok
Copy link
Owner

No description provided.

@haroldo-ok haroldo-ok added the enhancement New feature or request label Sep 21, 2022
@zartan9
Copy link

zartan9 commented Oct 19, 2022

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

@haroldo-ok
Copy link
Owner Author

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
Copy link

zartan9 commented Oct 26, 2022

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
Copy link
Owner Author

haroldo-ok commented Oct 26, 2022

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
Copy link

zartan9 commented Oct 26, 2022 via email

@haroldo-ok
Copy link
Owner Author

haroldo-ok commented Oct 26, 2022

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

@zartan9
Copy link

zartan9 commented Oct 26, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants