60 likes | 198 Views
Java. Animation. Animation is different. If the goal is animation, the emphasis is on the animated display, not the model To get the next animation frame, the View needs to control the Model The user has to control the Model indirectly, through the View
E N D
Java Animation
Animation is different • If the goal is animation, the emphasis is on the animated display, not the model • To get the next animation frame, the View needs to control the Model • The user has to control the Model indirectly, through the View • If the simulation is paramount, the animation needs to just do the best it can
Set initial position Move one step No collaborators… …but must allow access from the View Model II Model Same as before!
Take orders from the Controller Control the Model Display the Model Accept orders from Controller Give orders to Model Access state of Model View II View
Create Model Create View Give View access to Model Start and stop View Model (setup) View Controller II Controller