Codea Scratchpad

How do you swipe back from a running project?

@Andrew_Stacey swipe from the left side of the screen to the right. The parameters need to be closed. You can also open parameters and click back.

@Simeon - Few bugs, First load I tried to run the flappy bird project. Got sound but the screen didn’t move. I cleared Codea SP from memory and tried again, it worked. Upon reloading Codea SP the projects changed locations on the screen. I ran Flappy bird again and when I closed it, I got the icon animation on the bouncy balls icon and not the flappy bird icon.

Looking good. It should really help Spread Codea and lua.

sounds awesome, can’t wait to have a look.

re keeping it secret: I saw it on Codea commits a bit back and I’m sure others did too so they may find out from there

loaded it up: I love the UI. in fact, I think it’d be nice to see this UI move to Codea Full (as well as the neat swipe back to the code)

first bug: the x button to close the create a project screen doesn’t work

What would be nice is once a program is started, there is a full screen for graphics, slide the screen to show a full screen for the parameters, slide the screen for a full screen for the print window, and slide the screen for the editor.

Okay, got it. A few things I should note:

  1. On the page about upgrading, you should add more things that ScratchPad can do or just make it a list of features when you upgrade. Just having one item on the list that says “yes” for Scratchpad looks weird.

  2. Opening and closing projects is being weird. When I open and close a project a different project shows up where I had previously pressed to open the editor, and the icon I had pressed before moves to some other location. Is this intentional?

  3. supportedOrientations() is in the documentation, even though it doesn’t do anything.

  4. Sound assets are in the documentation, even though you have none and can’t add any. In fact, why not just remove the “documents” in the sound/sprite pickers and jump straight into the sound generator?

  5. How about a TLL logo somewhere with credits and stuff?

Now for things from Scratchpad I really want in the full Codea:

  1. I love the project browser and I want it in my normal Codea. How about an option in the settings? Maybe for the full Codea, the examples are in a single-file line on the right side and have a bar in between them and yours. Either way, I like Scratchpad’s project browser and I want it.

  2. Why is the flappy bird example not in the full version? (Awesome job, by the way.)

  3. The “new project’s” menu is very nice. Can I have that in my normal Codea, too? Just maybe with the + icon slightly higher up, it’s touching the keyboard and my OCD is bugging me.

This is very, very cool. Here’s a few bugs:

  • If you bring up the keyboard in the editor, press the “+” in the top right, tap “Upgrade,” press “Done,” and then dismiss the popover, the editor still thinks the keyboard is active. The popover also has a weird bug with the arrow being white after dismissing the upgrade screen.
  • Pressing the back button from the code editor screen always shrinks into the “Animation” project.
  • The scrolling in the project navigator is not smooth on my iPad 3 (iOS 8.0.2). It seems to be when you’re dequeuing (if you’re using a UICollectionView) cells and loading the images for the projects.
  • The corners of the popover on the asset picker in the editor do not match, creating a white edge.
  • In iOS 8, Codea asks for the camera right as every project is run. This is very annoying, especially since apps like StackIt don’t the the camera at all, and it asks the user for it right away, which confuses users. I know this isn’t directly related to ScratchPad, but I though I might as well bring it up again.
  • The transition to the project play from the editor has some issues (it doesn’t completely disappear off the screen).
    I can’t applaud you enough for this. It’s super cool. Also, I’d suggest adding some complete projects off the forums. I’d be more than willing to share a special version StackIt for this. Or you could integrate Codea Community into this. If you were to simply integrate the most recent projects, that should be pretty easy, in my opinion.

@Briarfox you should be able to swipe while parameters sidebar is open — but if there are any parameter sliders (i.e., parameter.number / integer) then they will take preference. That’s weird about the icon issue — if you are able to trigger that bug consistently please let me know.

@JakAttak that “X” button is actually to clear the text field. You can tap anywhere else to close the new project screen (I might make the X button close the screen if the field is empty too).

@dave1707 that’s a really great idea, though I’m on a short time frame for the first version. I’d like to have it submitted by tomorrow. So this is it for 1.0 feature wise.

@SkyTheCoder

  1. good point, I agree.
  2. Yes, the project goes to the top after you open it (it’s sorted by recency).
  3. Yes there is now a note stating it is not operational in scratchpad — I think the documentation strings needs to be updated there.
  4. You could potentially add them through iExplorer or other but I agree with you, it’s confusing and should go.
  5. Hopefully this can make it in for 1.0

Regarding the full Codea

  1. The project browser will become the basis of full Codea — except with a search box where the “Upgrade” button is. I’m thinking in full Codea it will be sectioned by recency or some other organisational grouping. (Like folders, or "Recent, “Last Week”, “Older”). This will make it easy to manage large collections.
  2. @John just wrote it, so we’ll put it in the full one too.
  3. Thanks, I really like the way it turned out. It will come to Codea too.

I also like the undo button on the keyboard, any chance of that in full version?

EDIT: reproduced both of Zoyt’s bugs, shrinking into animation and the keyboard being in use but hidden off screen

@JakAttak yes, though where to move Find & Replace? I was thinking either have Find & Replace where documentation is, and a long-press brings up documentation. Or the other way around. What is used more: docs or find?

@JakAttak do you have any steps to reproduce the shrinking into animation?

Docs used more than find more me, idk about others.

It’s not always animation, just the project at the front of list. No steps, I just open a project and when I close it it moves to some new location and I am back at the very first project.

Potential hack to get around tab limitation: savsProjectTab still works.

@JakAttak when you close a project it is supposed to close back to the very first location, e.g.,

  1. Open Flappy
  2. Close Flappy — flappy icon should flip into the the first icon after the “+”

Is this correct for you? The icon you opened is the same as when you close the editor. You’re not having the icon change on you?

You can use saveProjectTab() however when you re-open the project it will strip all the extra tabs out again. It’s a fun hack but it would be too inconvenient to use in a lasting project.

@Simeon The entire project that was there before moves to a different location.

@SkyTheCoder a completely different location or just one spot further along?

Edit: to clarify

  • If I have Flappy, Animation, Mesh, Gravity
  • I open “Mesh”
  • Close “Mesh”
  • Order should be: Mesh, Flappy, Animation, Gravity
  • I open and close “Animation”
  • Order should be: Animation, Mesh, Flappy, Gravity

@Simeon Completely different.

Edit: odd, after using it for a while it seems to start working as you described, just moving the icon to the top.

@Simeon, huh hadn’t noticed that. Perhaps the tab limitation is not a very important one: you can still type as much as you want in the one tab, multiple tabs simply allow for organization. I don’t see that being a big driving force to upgrade vs the awesome functionality left out in scratchpad.

As Sky says, the project I opened doesn’t go the front, but it does correctly move me to the front.

@Simeon I emailed you videos of 2 of the bugs. Sorry I was too lazy to go re-download AirServer (my iPad doesn’t have a lightning cable, so I can’t use the new iOS 8 + Yosemite feature) and upload it. Anyways, I hope that clarifies what they are with you.

@JakAttak do you think Scratchpad is sufficiently limited?

@SkyTheCoder I think I know what the bug is now and should be able to fix.

@Zoyt thanks so much, that was really helpful