There's 'lua.unserialize()' now, probably instead of textutils API. Also, there's a 'device' API which works similarly to the peripheral API, but instead you get more of the hardware stuff, like:
local gpu = device.get("gpu")
local keyboard = device.get("keyboard")
local speaker = device.get("speaker")
gpu has different functions for maps and images and it can (or must) draw to an image:
gpu.setTarget(window.getImage())
Looks like the 'window' API has replaced the 'term' API.
local screenWidth, screenHeight = window.getSize()
window.setFullscreen(true/false) --# (?) hides/shows the top bar (multishell tabs)
Speaker (unconfirmed documentation):
speaker.play(parameters : table, channel : number)
parameters = {
volume : number;
attack : number;
sustain : number;
decay : number;
frequency : number;
frequencySlide : number;
frequencyAccel/frequencyAcceleration : number;
vibratoDepth : number;
vibratoFrequency : number;
}
The speaker probably has different set of channels and you can only play one sound on one channel at a time, but this is only speculation.
More info might be coming later..
Creator, on 13 October 2015 - 03:28 PM, said:
Also, will we have the same fs api?
Probably, but it will use the more Lua OOP standard way:
CraftOS 2.0:
file:close()
CraftOS 1.x:
file.close()