A great online book for new Codea users

One of the problems in learning Codea is having to learn so many other things as well, like physics, vectors, etc.

If this is still pretty new to you, and you want to understand it better, I thoroughly recommend reading this free online book. It clearly and simply explains all the math and formulae behind moving around on the screen, including writing your own physics code, as well as explaining Box2D (the physics engine inside Codea), making particles (a regular question on the forum), how to make one object follow another, and much, much more.

It also has some advanced topics, like oscillations, waves and springs; autonomous agents; evolutionary algorithms and neural networks.

It is actually written for a different language called Processing, but it is so similar to Codea that you will have no trouble reading and adapting the code.

And it is extremely well written. I have learned heaps from this book and refer to it often.


And for old ones too.

It demonstrates to me in relatively clear steps why I failed to understand machine code and in some respects it takes a ‘fun coder’ back a ‘bit’ too far.

@Steep - if you mean it’s too low level, skip to the parts on physics, attraction, steering behaviour, there is good stuff here

What I men Ignatz is that the introduction certainly opens up the world of coding. We have the problem of just where to start. I will certainly jump around what the book offers, as you say it is very well written. However, as a novice, looking at the Index, I find it hard to find details of what it is I want to do. At the moment I am playing around with numbers ‘teaching’ my iPad to count.
It’s relatively simple in decimal once you get the timing sorted out but it is somewhat more difficult in binary even though that is the iPad’s natural language, if you see what I mean. My long term ‘fun’ project will then be to teach it hexadecimal and then move on to the Alphabet, at the same time trying to get some idea of what is going on the the computers head.

@Steep - yep, it’s fun playing around. I recommend getting into the graphics, that’s what Codea is good at…

First things first Ignatz. I assume that IOS has taught the iPad to do quite a lot and between them Lua and Codea have imposed the way they want it done. Perhaps most of what I want to do is in the realms of Lua. I assume that there is a way to run Lua directly in Codea.

If you aren’t very interested in graphics, you might prefer Python (and the Pythonista app).

If you aren’t very interested in 3D graphics, you might prefer Python (and the Pythonista app).
Pythonista has great 2D graphics, and all usual data plots (mathplotlib)

I think it is also more intuitive if you come from a conventional programming background.

I take that

What I would really like is for Apple to open up the iPad to utilise their new Swift programming language. I will have a look at Pythonista.

I believe there is a Processing app for iOS as well, but it’s not that polished.

A good book?and I like the examples which can be run immediately ?

@Saturn031000 I have two processing apps, one of them is very good, its online help/tutorial/example something is better than Codea`s

@Saturn031000 - which app is that?

@Saturn031000 and @Ignatz This is the one:
“processing for dummie”

@binaryBlues very nice app, thanks for the link. And only 0.89€.

@binaryblues That’s a great app, I can’t believe I haven’t seen it before. I was talking about this, but the app which you found is better.

@Jmv38 Yes, it is a good app, especially the online help document.
Sometimes the “compiler” maybe crash, delete and reinstall it will make it ok. Enjoy it! :)>-

@Saturn031000 In fact, I have installed three Processing apps on my iPad, include the one which you were talking about. B-)