This is supposed to be for the scene set up. I just started learning Codea / Lua
Hi, - could you explain what you want to achieve, what you are trying to build ?
Just looking at this it feels like you are trying to set up a system and just put down the framework.
So what is Gameworld ?
Looks like you’re setting up a blank 2D scene there. Any more info on what you’re working on?
I was following this video: https://www.youtube.com/watch?v=CguINLVfsIo
I remember there being a description for gameWorld which I forgot, based on how it sounds, it might be the related to the space of the game’s world
It’s supposed to be a basic controller for a circle that will be added, the circle will be moved with the physical Apple keyboard controls. I only should have the scene with the colored background right now which appears black with error messages
Do you want to share the error messages here?
Line 8 has an error … you wrote clearcolor instead of clearColor
-- bad
gameWorld. camera:get (camera). clearcolor = color (134, 175, 220)
-- good
gameWorld. camera:get (camera). clearColor = color (134, 175, 220)
And physic2d needs to be world2d instead:
gameWorld.world2d.gravity = vec2(0,0)
Thank you, I was thinking about there being capitals / uncapitalized letters that needed to be fixed that I didn’t notice / _ \ Is there a way to spot this on Codea if you can’t find them with just the eye?
Also does Codea change their code over time or was it a mistake on the tutorial’s side?
@NightmareEngine43 - Codea is improving all the time so you always need to note any changes publicised by TLL. In this case it looks like a mistake in code either from the editor’s code(unlikely) or your own typing error (I’m constantly having to chase errors in my own code). Is your tutorial posted on the net ?
I posted the Youtube link a few responses above. Thank you for your help. I am very new to this application and I kinda expected to pretty much be Lua with slightly different controls
It’s a great tutorial, but yes, the renderer is changing a bit rapidly right now as we get it ready for its first main release in Codea 4.0 — apologies! If things change we will keep the docs updated, and always feel free to post here to ask

