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

rxi/lovedos: A framework for making 2D DOS games in Lua

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

开源软件名称(OpenSource Name):

rxi/lovedos

开源软件地址(OpenSource Url):

https://github.com/rxi/lovedos

开源编程语言(OpenSource Language):

C 96.6%

开源软件介绍(OpenSource Introduction):

LoveDOS

A framework for making 2D DOS games in Lua. LoveDOS provides an API based on a subset of the LÖVE API.

screenshot

Getting started

You can download LoveDOS from the releases page. If you're not using DOS as your operating system then DOSbox can be used to emulate a DOS computer.

When you run love.exe it will expect its first argument to be your game's directory. The file main.lua will then be searched for and executed. If, for example, your project was in a directory named mygame you would run the following:

love mygame

A small example program which displays white text on a black background and exits when the escape key is pressed is as follows:

function love.draw()
  love.graphics.print('Hello World!', 20, 20)
end

function love.keypressed(key)
  if key == "escape" then
    love.event.quit()
  end
end

The doc/api.md file provides a reference and overview of all of the built-in LoveDOS modules, functions and callbacks.

The doc/packaging.md file provides instructions for packaging your game for distribution.

Building

Instructions for building the project from source can be found in the doc/building.md file.

License

This library is free software; you can redistribute it and/or modify it under the terms of the MIT license. See LICENSE for details.

LoveDOS includes Lua (MIT license). The full license for Lua can be found at the bottom of the src/lib/lua/lua.h file.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
actboy168/bee.lua: Lua runtime and toolset发布时间:2022-08-16
下一篇:
owenliang/redis-lua: 使用Redis+lua实现秒杀业务的DEMO发布时间:2022-08-16
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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