app :: App :: frame_core
This method should be redefined by user modules to customize the behavior of the game.
	# Core of the frame logic, executed only when the display is visible
	#
	# This method should be redefined by user modules to customize the behavior of the game.
	protected fun frame_core(display: GamnitDisplay) do end
					lib/gamnit/gamnit.nit:71,2--74,56
				
	redef fun frame_core(display)
	do
		# Check errors
		assert glGetError == gl_NO_ERROR
		# Update game logic and set sprites
		perf_clock_main.lapse
		var dt = clock.lapse.to_f
		update dt
		frame_dt = dt
		sys.perfs["gamnit flat update client"].add perf_clock_main.lapse
		# Draw and flip screen
		frame_core_draw display
		display.flip
		# Check errors
		assert glGetError == gl_NO_ERROR
	end
					lib/gamnit/flat/flat_core.nit:499,2--517,4
				
	redef fun frame_core(display)
	do
		super
		# Invalidate the selection values
		selection_calculated = false
	end
					lib/gamnit/depth/selection.nit:136,2--142,4