@UberGoober I may have a different version but it looks like you are basing the font size for the instructions on the value HEIGHT * 0.07
What I was suggesting was to keep my original hard coded value and multiply it by the ratio of the device width (WIDTH) divided by the hard coded width value from the device it was developed on (1366) and do it consistently for all the fontsize calls. You have done a width multiplier in one place and a height multiplier in another.
Regardless the rescaling you have done has fixed it for the iPhone but broken it on my iPad
@West Iām sorry, I didnāt understand, I see what you mean now.
I based everything off of HEIGHT because I assumed the game was meant to be played in portrait mode; on my iPhone 8 you canāt even see the lizards in landscape mode so I thought it wasnāt supposed to be played that way.
This scaling works on my iPad in portrait mode, just not in landscape; it seems like once the font gets over a certain size in iPad landscape mode all the info text vanishes, Iām not sure why.
@UberGoober it was written a while ago (quite possible before Codea was available on the iPhone) and was set up to run in landscape only mode (a deprecated function - very first command of the program - supportedOrientations(LANDSCAPE_ANY) - which forced Landscape only orientation)
Yes, if text spills off the edges of the screen it wonāt render at all. Iām not sure why either.
Portrait mode would be even harder to play in 2 player mode - each player gets a half of the screen with a chameleon in it!
Addressing the forward compatibility issue is probably going to crop up a few times when revisiting old examples.
@West@UberGoober Iāve removed āPeople Popcorn+ā temporarily as it sounds like youāre hoping to get a single project running on iPad & iPhone? Give me a shout when itās ready to go and Iāll update the one on there already.
Iāll list the authors after as āWest ft. UberGooberā if thatās alright?
@Steppers I think you should just leave as is. Trying to make every project work in all four formatsāiPhone and iPad in both portrait and landscapeāwill make a person kooky-pants. I thought I just had to get the text working for iPhone portrait and all would be good, but it turns out to be much hairier than I expected.
@Steppers I am very excited by this; the more I use it, the more it seems like everything necessary to get people really starting to use each others code more often!
I recommend putting a little spinny wheel or some other activity monitor on the project listings as they load, because that will make it obvious what the green coloration means once the spinning is done.
I didnāt catch on to that for a while, and I know Iām not the quickest, but I think it would help other people too.
@UberGoober Iām glad to hear youāre enjoying it.
In the long run itād be great to see it grow into a default place for people to share projects alongside the forum.
Oh I know full well what you mean there. I port games to mobile for a living and having everything scale nicely to what seems like every screen dimension under the sun is a job and a half! Adjusting your entire UI to adjust for a notch as you rotate a device is an interesting one when the code youāre working with was written over 15 years agoā¦
As for loading and progress indicators itās definitely on my todo list amongst deleting projects, an additional information popup for projects and optional updates (possibly in the popup).
@Steppers - installed WebRepo 1, ran it, registered it and all I get, even after closing Codea and switching off my iPad, is a black screen. Pulling out the tools window shows a message that WebRepo is working as expected. Where do I go from there?
I can access it from a browser which gives a display of the files as folders with an image of what I thought was the interface. Advice please.
@skar - if you mean for the projects screen, when running your project press the camera icon on the screen in the bottom left. Then select project icon.
It should work as close to the original as possible and touch inputs, WIDTH & HEIGHT should all be adjusted automatically without any effort needed from anyone here
Obviously this will only take effect when the project is launched through WebRepo but I could potentially add a separate implementation for use in local development.
Checkout Westās āWell Racerā for an example of this in action.
@Bri_G Havenāt seen that one before. I may need to upload a more recent version then. Iām currently working on a supportedInterfaces implementation but once thatās done Iāll take a look at that.
As for the icons @skar , as the others have said. If youāre wanting to submit a project thatās the icon Iāll use otherwise Iāll generate one for you from a screenshot.
WebRepo:209: attempt to index a nil value (local āfileā)
stack traceback:
WebRepo:209: in upvalue ācallbackā
GithubAPI:85: in upvalue ācallbackā
URL:56: in function URL:41