[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

sample[Love] hello world

We will change the draw callback to render #hello at the mouse location.
The old draw callback is saved to restore the application state after running this sample.
OldDraw := Love current on: #draw do: [
	SystemServer current step.
	Graphics print: #hello x: Mouse getX y: Mouse getY
].

To restore original draw callback we evaluate
Love current on: #draw do: OldDraw