Hi all,
I just finished an ebook demo and got some questions.
Please take a look this screen record:
https://youtu.be/T-dhP8G2nW0
The entire picture book are 30 pages. I connected 6 pages so far and I have a concern. Now each page have 3 buttons, Left goes to the previous page, Right goes to the right page, and one Replay button to replay the story voice. The Do, Re, Mi sounds are just placeholders. I did all 3 buttons on page2.lua (as you can see the light purple page number at the bottom of each page). Then I duplicated it to be as page3.lua, page4.lua, page5.lua, … etc, and then go inside each lua to change background image, buttons, and page numbers… etc. Here are my concern. What if I finished all 30 pages and then I need to change the format/font of text, or add/moving a button? I wonder if any way I can make something like “main template” to place the buttons/ page text/ setting fonts (kinda like a concept of main layout?).
So far I only can think of that, the things aren’t change often can be placed in main.lua, or not destroyed by Composer. However, I have just learned lua and Corona SDK 1 month. Would you give me an idea if this could be implemented or quite impossible? Or an idea that how I could implement it?
I would also like to know if I cannot find any soultions and, will the build crash if I do include 30 .lua files? :lol:
In case you need to check my very newbie code, you can download it here.
(I changed asset file name into an order, and include a few assets for asking question purpose. )
I modified it from Corona Simulator>New Project > eBook template.
Thanks for your help in advance!
Olina