![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Lua Player .20 released! within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Lua Player .20 has been released! new stuff: v0.20 ========== - updated for gcc 4.1 and Lua 5.1. Some things ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() ![]() Developer
|
Lua Player .20 has been released!
new stuff: v0.20 ========== - updated for gcc 4.1 and Lua 5.1. Some things you need to change for 5.1: - change table iteration code: "for i, value in someTable do" to "for i, value in ipairs(someTable) do" (but use "pairs" for tables like "t={foo=bar, foobar=99}" and "ipairs" for tables like "t={foo, bar}") - it's pure Lua 5.1: no binary operators and double as number type (e.g. now you can use one number for storing IP addresses) - Sound.load doesn't crash any more on invalid filenames - fixed problems with daylight saving time - Font:getTextSize fixed. Test case: proportional = Font.createProportional() proportional:setPixelSize s(0,8) test = proportional:getTextSize( 'some text') assert(test.width == 39) assert(test.height == 6) - blit operation from screen to image works now, e.g.: screen rint(10, 10, "hello", Color.new(255,255,255))image = Image.createEmpty(480, 272) image:blit(0, 0, screen, 480, 272, 480, 272, true) and now you have an "image" with the text "hello" - TTF font plotting to images now sets the alpha value to opaque, so you can write e.g. something like this for buffering texts in images: image = Image.createEmpty(400, 200) proportional = Font.createProportional() proportional:setPixelSize s(0, 16) image:fontPrint(proportio nal, 0, 20, 'Hello', Color.new(0, 255, 0)) screen:blit(0, 0, image) screen:blit(3, 3, image) - new function Image.loadFromMemory for loading images from memory: jpegFile = io.open("test.jpg", "rb") data = jpegFile:read("*a") jpegFile:close() image = Image.loadFromMemory(data ) PNG and JPEG is supported and autodetected - image-to-image blitting now uses alpha full blending [Callum Bethune] - System.rename(oldName, newName) for renaming files and directories get it from www.luaplayer.org
__________________
PSP Monopoly | PSP Tic Tac Toe | PSP eMail and SMS | Drag Mini | Block Dude http://www.cools.biaklan.com Currently Working on ????? Quote of the Week |
|
|
|
|
|
#2 |
![]() ![]() sceKernelExitGame();
|
sweet!!! this is gr8! is it compatible with 2.xx?
__________________
|
|
|
|
|
|
#3 |
![]() ![]() Developer
|
its still using prx's so i doubt it...
__________________
PSP Monopoly | PSP Tic Tac Toe | PSP eMail and SMS | Drag Mini | Block Dude http://www.cools.biaklan.com Currently Working on ????? Quote of the Week |
|
|
|
|
|
#5 | |
|
Guest
Posts: n/a
|
Quote:
|
|
|
|
|
#6 | |
![]() ![]() total-Z
|
Quote:
And I wonder why it is taking the front page soo long....I sent it to them at 7....
__________________
牧来栠摩琠敨映汩獥PSN: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth |
|
|
|
|
|
|
#7 | |
|
Guest
Posts: n/a
|
Quote:
What are you talking about? |
|
|
|
|
#9 | |
![]() ![]() OMFG
|
Quote:
What youresam said was fairly easy to understand. What was the point of asking "What?" other than to squeeze an extra post in. Last edited by Slasher; 06-03-2006 at 07:02 PM.. |
|
|
|
|
|
|
#10 |
![]() ![]() ...in a dream...
|
B10tch s1@pp3d mmmmmmmmmmmmmmmmmkay..... .
lol, anyway, i like new LuaPlayers, and since there apps adn games from them are usually open-source, i can see different technques and aspects of coding, but not having a Computer LUAplayer as same version ruins it for me...
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#12 |
![]() |
Judging by the changelog, this one should be a lot more stable.
Thanks for bearing with us guys, I'm not sure why this hasn't been front-paged yet. I was away yesterday at a football/soccer match - England v Jamaica. Quite eventful, England won 6-0! I've put it through now, should be on the front page soon.
__________________
[IMG]http://i26.tinypic.com/minfc3.jpg[/IMG] |
|
|
|
![]() |
| Tags |
| lua , player , released |
| Thread Tools | |
|
|