• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

最近发现一个有意思的lua游戏引擎,名字叫love2d

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

Hi there! LÖVE is an *awesome* framework you can use to make 2D games in Lua. It\'s free, open-source, and works on Windows, Mac OS X, Linux, Android and iOS.

Open Source

LÖVE is licensed under the liberal zlib/libpng license. This means that:

  • It costs nothing.
  • You can use it freely for commercial purposes with no limitations.

The source can be found on Bitbucket.

Community

If you get stuck, many friendly people are ready to help you at the forums. Be warned, however, that it sometimes gets too friendly.

People also post their games and projects on the forums, so it\'s a nice way of exploring what LÖVE can do. Or at least what people choose to use it for.

There is also an IRC channel: #[email protected].

Examples

It’s pretty easy to get started with LÖVE, just check out these code snippets.

Drawing text
function love.draw()
    love.graphics.print("Hello World!", 400, 300)
end
Drawing an image
function love.load()
  whale = love.graphics.newImage("whale.png")
end
function love.draw()
  love.graphics.draw(whale, 300, 200)
end
Playing a sound
function love.load()
    sound = love.audio.newSource("music.ogg")
    love.audio.play(sound)
end

 

Check out some more tutorials on the wiki.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
luapackagepath设置方法发布时间:2022-07-22
下一篇:
Lua学习笔记(十一)元表与元方法发布时间:2022-07-22
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap