Difference between revisions of "uLove Compliance conf.lua"

(Added löve version to test its behaviour on the Snippets category page; also added notice that this isn't really relevant anymore; whether it gets purged or not is not up to me.)
m (removed LÖVE category, fixed properities.)
 
Line 1: Line 1:
{{#set:LOVE Version=0.6.x}}
 
 
{{notice|This page has no more real relevance to Löve.}}
 
{{notice|This page has no more real relevance to Löve.}}
 
==Introduction==
 
==Introduction==
Line 52: Line 51:
 
</source>
 
</source>
 
[[Category:Snippets]]
 
[[Category:Snippets]]
[[Category:LÖVE]]
+
{{#set:LOVE Version=0.6.x}}
 +
{{#set:Description=Obsolete conf.lua spec for uLove compliance.}}

Latest revision as of 00:39, 12 November 2016

O.png This page has no more real relevance to Löve.  


Introduction

This conf.lua file can be used to test minimal compliance with the proposed uLove standard.

This is by no means a complete workout of your code, and you should refer to the Standard itself to be sure your code is compliant. but this conf is a useful benchmark, if it runs with this, then you are in with a good shot.

uLove conf.lua

-- conf.lua
-- use this in place of your games normal conf.lua to see how it deals
-- with some common, or likely, limitations of uLove-targeted platforms.
--
-- Bare in mind, this is by no means a complete test, but its a minimal 
-- benchmark; if it can't run under this, then you are definitely going to
-- have problems.
function love.conf(t)
	t.title				= "uLove Minimal Compliance Test"
	t.author			= "Textmode (DMB)"
	t.version			= 60
	t.console			= false


	t.screen.width		= 320
	t.screen.height		= 240
	t.screen.fullscreen	= false						-- this is likely to be true
													-- on an uLove target, but few modern systems
													-- actually support this res ...so, yeah.

	t.screen.vsync		= true						-- actually could go either way on a uLove
													-- platform, but anything to bring your
													-- FPS down, lest you forget that most 
													-- uLove targets are likely to be sub-500MHz
	t.modules.joystick	= true
	t.modules.audio		= true
	t.modules.keyboard	= true						--  if you actually have a game pad, you 
													-- should make sure your game can be played
													-- *entirely* using that that. and no cheating with
													-- "pro" gamepads; we're talking one D-pad, A, B,
													-- R, L, Start, and Select. and that's generous.
	t.modules.event		= true
	t.modules.image		= true
	t.modules.graphics	= true
	t.modules.timer		= true
	t.modules.mouse		= false						-- there are far more portables without
													-- mouse-like input, than those with.
	t.modules.sound		= true
	t.modules.physics	= false						-- aw, you thought uLove platforms were powerful
													-- enough to run physics, that's cute ^_^
end