Salutations
we need some help…
We want in teaching purposes write small games with two cannons. The main problem now is how to do correct animation with loaded images ?
We want that children draw two cannons and background. Than we scan this pictures, extract background and canons and put in into Kojo scene.
So the problems:
1. every drawn image overlaps the image we want to draw at runtime (example below)
2. we have original canon image that is paralel to X axis, and we want to rotate it in absoulte manner like "rot(13) -> im", but not in reference manner like in example below.
3. how correctly we should draw the scene (possibly using picture stack)
- draw background
- above background should place two cannons
- than print wind/gravity/velocity/other data
import Staging._
import Staging.{animate, wipe}
cleari
val im = PicShape.image("/home/alex/circle.png") // small picture about 60x60 pixels
val ang=1;
animate{
wipe
im.rotate(ang).realDraw()
line(0,0,200,200)
}