Love 0.9.2变化(相对于0.9.1)

Additions

  • Added Lua 5.3’s UTF-8 module, via utf8 = require(“utf8”).
  • Added Shader:getExternVariable.
  • Added several new Canvas texture formats.
  • Added love.graphics.getCanvasFormats.
  • Added love.graphics.getCompressedImageFormats.
  • Added ParticleSystem:setQuads.
  • Added ParticleSystem:setLinearDamping.
  • Added ParticleSystem:getLinearDamping.
  • Added SpriteBatch:flush.
  • Added love.graphics.getStats.
  • Added mirroredrepeat WrapMode.
  • Added love.audio.setDopplerScale and love.audio.getDopplerScale.
  • Added optional duration argument to Joystick:setVibration.
  • Added love.joystick.loadGamepadMappings and love.joystick.saveGamepadMappings.
  • Added Joint:setUserData and Joint:getUserData.
  • Added Joint:getBodies.
  • Added GearJoint:getJoints.
  • Added Body:getWorld.
  • Added Body:getJointList.
  • Added Contact:getFixtures and Body:getContactList.
  • Added Body:isDestroyed, Fixture:isDestroyed, Joint:isDestroyed, and World:isDestroyed.
  • Added love.mousemoved event callback.
  • Added love.mouse.setRelativeMode and love.mouse.getRelativeMode.
  • Added love.keyboard.getKeyFromScancode and love.keyboard.getScancodeFromKey.
  • Added love.window.getDisplayName.
  • Added love.window.minimize.
  • Added love.window.showMessageBox.
  • Added love.window.toPixels and love.window.fromPixels.
  • Added love.window.setPosition and love.window.getPosition.
  • Added x and y fields to the flags table in love.window.setMode and
    love.window.getMode, and to the t.window table in love.conf.
  • Added refreshrate field to the table returned by love.window.getMode.
  • Added love.filesystem.isSymlink, love.filesystem.setSymlinksEnabled, and love.filesystem.areSymlinksEnabled.
  • Added love.filesystem.getRealDirectory.

Deprecations

  • Deprecated SpriteBatch:bind and SpriteBatch:unbind.
  • Deprecated all uses of the name ‘FSAA’ in favor of ‘MSAA’.
  • Deprecated the hdrcanvas GraphicsFeature constant in favor of
    love.graphics.getCanvasFormats.
  • Deprecated the dxt and bc5 GraphicsFeature constants in favor of
    love.graphics.getCompressedImageFormats.
  • Deprecated love.window.getWidth, love.window.getHeight, and
    love.window.getDimensions in favor of the love.graphics equivalents or love.window.getMode.

Renamed APIs

  • Renamed all cases of FSAA to MSAA. The FSAA names still exist for
    backward-compatibility.

Fixes

  • Fixed crashes when LÖVE objects are garbage-collected in multiple
    threads simultaneously.
  • Fixed love.filesystem.setIdentity breaking in some situations when
    called multiple times.
  • Fixed the default love.filesystem identity when in Fused mode in Windows.
  • Fixed love.system.openURL sometimes blocking indefinitely on Linux.
  • Fixed love.joystick.setGamepadMapping.
  • Fixed the order of vertices in ChainShapes.
  • Fixed love.mouse.getPosition returning outdated values if love.mouse.setPosition was used in the same frame.
  • Fixed love.graphics.newFont to error when given an invalid size
    argument.
  • Fixed the file name, line number, and backtrace given if
    love.graphics.print errors.
  • Fixed a small memory leak if love.graphics.newCanvas errors.
  • Fixed Shader:getWarnings returning unnecessary information.
  • Fixed a potential crash when Shader objects are garbage collected.
  • Fixed a potential small memory leak triggered when love.graphics.newShader errors.
  • Fixed love.graphics.newMesh(vertexcount, …) causing the Mesh to do instanced rendering.
  • Fixed Mesh:getVertexMap.
  • Fixed Image:refresh generating mipmaps multiple times if mipmap
    filtering is enabled.
  • Fixed Image:setMipmapFilter to not keep bad state around if it
    errors.
  • Fixed Mesh:setDrawRange when the Mesh has a vertex map set.
  • Fixed internal detection of the ‘position’ and ‘effect’ shader
    functions.
  • Fixed some cases of noncompliant shader code not properly erroring on
    some nvidia drivers.
  • Fixed Texture memory leak when Meshes are garbage collected.
  • Fixed the default line join mode to be ‘miter’ instead of an undefined value.
  • Fixed Canvas:getPixel to error if the coordinates are not within the
    Canvas’ bounds.
  • Fixed detection of compressed textures to work regardless of the
    file’s extension.
  • Fixed the default error handler screen’s text size when highdpi mode is enabled on a Retina monitor in OS X.
  • Fixed the default error handler background color when sRGB mode is enabled for the window.
  • Fixed the state of wireframe mode when love.window.setMode is called.
  • Fixed love.window.setMode to fall back to the largest available mode if a width or height greater than the largest supported is specified and exclusive-fullscreen mode is used.

Other Changes

  • Updated the Windows executable to always prefer the higher
    performance GPU on nvidia Optimus systems.
  • Updated the –console command-line argument in Windows to open the console before conf.lua is loaded.
  • Updated t.console and the –console command-line argument in Windows to use the existing console window, if LÖVE was launched from one.
  • Updated the love executable to verify that the love library version matches before using it.
  • Updated the Lua wrapper code for modules to avoid crashes when the module’s instance is created, deleted, and recreated.
  • Updated internal code for handling garbage collection of love objects to be more efficient.
  • Updated love’s initialization code to trigger a Lua error if love.conf has an error in it.
  • Updated love.filesystem.getSaveDirectory and friends to strip double-slashes (“//”) from their returned paths.
  • Updated the error message when love.filesystem.write or File:open fails because the directory doesn’t exist.
  • Updated error message when love.math.setRandomSeed(0) is attempted.
  • Updated the error message when invalid UTF-8 strings are used in love functions that expect UTF-8.
  • Updated love.physics.newChainShape to error if the number of
    arguments is invalid.
  • Updated love.physics.newPolygonShape and love.physics.newChainShape to accept a table of vertices.
  • Updated love.thread.newThread to accept a literal string of code.
  • Updated love-created threads to use names visible in external debuggers.
  • Updated SpriteBatch:unbind / SpriteBatch:flush to use less VRAM if
    the SpriteBatch has the static usage hint.
  • Updated love.graphics.newImage, love.image.newImageData, etc. to leave less temporary Lua-owned memory around.
  • Updated love.graphics.push to accept different stack types to push.
    Current types are “transform” and “all”.
  • Updated love shaders to accept GLSL ES precision qualifiers (lowp,
    mediump, and highp) on variables, although they do nothing.
  • Updated the error message for love.graphics.newShader to be less
    cryptic if an invalid filename is given.
  • Updated compressed texture loading code to support BC6 and BC7
    compressed textures (if the graphics driver supports them.)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
《LÖVE for Lua Game Programming》 开源游戏引擎love2d综合教程。 love2d 是一款备受欢迎的开源2D视频游戏引擎框架,其可以让你借助简便的 Lua 脚本语言在游戏原型开发中变得又快又简单。Love2d 拥有强大和活跃的社区来使其成为一个有效的游戏开发框架。Love2d 成就了世界上许多不同年龄段的独立游戏开发者,让他们有机会接触到商业视频游戏的机会。 Love2d的简单和“write less build more”的特点使得它在经验丰富的老人和刚入行的新人都很容易上手。 本书是一本展示 Love2D 大部分综合功能的教程。它将带领你通过创建一个原型来快速用Love2d快速打包。 本书所涵盖的内容 第一章:开始Love2d。下载,安装,Lua框架,运行 Love2d 游戏 第二章:Love2d 走起!带领你学会绘制2D对象,移动游戏对象,并赋予一个游戏角色生命。 第三章:创建游戏之前。带你了解开发一个游戏所必备的游戏知识。 第四章:创建你的第一个游戏。这章带领你设计和加载游戏关卡,并设置管理你的游戏角色和资源。 第五章:更多游戏制作。介绍你一些游戏物理如碰撞,重力对游戏对象的影响,来帮助你更好的创建角色动画。 第六章:遇见坏蛋。描述怎么创建敌人角色。 第七章:存档,UI和声音。 第八章:打包和部署你的游戏,描述怎么打包和部署你的游戏到各个平台上,现在你的游戏已经面世了。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值