GuvaCode / Phoenix-Game-Framework

The Phoenix Game Framework is a set of classes for helping in the creation of 2D and 3D games in pascal.
Other
27 stars 5 forks source link

State.Update(Timer.FrameTime) in screens? #4

Closed MFernstrom closed 2 years ago

MFernstrom commented 2 years ago

I'm playing around with the Screens demo, adding an animation to the Main screen.

But following the tutorial here - http://phoenixlib.net/wiki/doku.php?id=tutorial:animation

How do I update State.Update(Timer.FrameTime) in TMainScreen.Update?

GuvaCode commented 2 years ago

I'm playing around with the Screens demo, adding an animation to the Main screen.

But following the tutorial here - http://phoenixlib.net/wiki/doku.php?id=tutorial:animation

How do I update State.Update(Timer.FrameTime) in TMainScreen.Update?

see demo 13.

procedure TGame.Update; begin Timer.Update; Input.Update;

Screens.Update (Timer.FrameTime);

Device.Update;

end;