[Cuis-dev] The Cuis Book for Cuis 6
Tommy Pettersson
ptp at lysator.liu.se
Sun Feb 13 14:47:58 PST 2022
Hi,
I'm not a frequent Cuis user, so I repeated the Spacewar!
exercise for Cuis 6, and got confused in chapter 4 where
SpaceShip>>#direction is defined using "location radians"
before Morphs are even introduced and the SpaceShip is still
using the "heading" instance variable, so I was expecting
"^ heading cos @ heading sin".
I also have a more dubious suggestion.
One reason I'm redoing the exercise is that the first time
around I was a bit anoyed that conservation of momentum was
overlooked, and I want to implement it for the fun of it.
The game already deviates from newtonian physics to be more
enjoyable -- torpedoes point in the direction of velocity --
but this is duely mentioned. My suggestion is to briefly
also mention that a spaceship brought to rotate would
continue rotating until stopped.
More information about the Cuis-dev
mailing list