在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):antirez/load81开源软件地址(OpenSource Url):https://github.com/antirez/load81开源编程语言(OpenSource Language):C 59.0%开源软件介绍(OpenSource Introduction):READMELoad81 is an attempt at creating a Codea-inspired environment to teach children how to write Lua programs. It features a graphical programming environment and a Commodore-64 style integrated editor so that the programmer is confined into a friendly environment with a simple editor: The following is a screenshot of the running program (examples/asteroids.lua). The programmer can currently switch between edit and play mode pressing the ESC key. Load81 is written in ANSI C and uses The coordinate system and the basic drawing functions are compatible with Codea (check http://twolivesleft.com/Codea/ for more information), but there is no support for stroke. There is no aim at Codea compatibility, but who is familiar with Codea should feel at home with Load81 in terms of API and structure of the program. I wrote it mainly because I and my children have fun with Codea but we don't have an iPad at home, and using a real keyboard sometimes can be less frustrating. The name Load81 originates from the fact that in popular Commodore home
computers the command USAGEStart Load81 with:
To switch between program and editor mode press the ESC key. Check the "examples" folder for small examples. PROGRAMMING INTERFACEDrawing functions:
Control functions:
KEYBOARD EVENTSTo check if a key 'a' is pressed use:
SDL Key symbol names are used. You can easily find how a given key is called using the following Lua program:
(You can find this program under the examples folder). LOW LEVEL KEYBOARD EVENTSIt is also possible to trap low level SDL events accessing keyboard.state and keyboard.key fields of the keyboard table. keyboard.state is one of:
keyboard.key is set to the key pressed or released when state is different than "none". MOUSE EVENTSmouse.x and mouse.y gives you the current mouse coordinates. To check if a button is pressed use:
Mouse buttons are called '1', '2', '3', ... and so forth. LICENSELoad81 was written by Salvatore Sanfilippo and is released under the BSD two-clause license, see the COPYING file for more information. The load81 project is dedicated to Jack Tramiel, founder of Commodore. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论