superretro v0.1.0
SuperRetro.js
There is no documentation yet.
Array
Array.orderBy()
Array.call(name)
Array.fire(name)
Array.fireCancelable(name)
Array.add()
Array.remove()
Array.removeAll(obj)
Array.setValue(name, value)
Array.select(queryList)
Array.selectTrue(name)
Array.selectFalse(name)
Array.selectE(name, value)
Array.selectNE(name, value)
Array.selectG(name, value)
Array.selectGE(name, value)
Array.selectL(name, value)
Array.selectLE(name, value)
class Debugger
Debugger.registerDebug(name)
class KeyboardDebugger
class MouseDebugger
class EngineObject
EngineObject.children
EngineObject.isDestroyed
EngineObject.className
EngineObject.destroy()
class DrawObject (extends EngineObject)
DrawObject.constructor(x, y)
DrawObject.drawAbsolute
DrawObject.layer
DrawObject.x
DrawObject.y
DrawObject.width
DrawObject.height
DrawObject.originX
DrawObject.originY
DrawObject.gridX
DrawObject.gridY
DrawObject.gridWidth
DrawObject.gridHeight
DrawObject.drawOffsetX
DrawObject.drawOffsetY
DrawObject.draw(sprite[, x, y, [width, height, [sourceX, sourceY, sourceWidth, sourceHeight]]])
DrawObject.drawRectangle(color, x, y, w, h)
DrawObject.drawFillRectangle(color, x, y, w, h)
DrawObject.drawEllipse(color, x, y, w, h)
DrawObject.drawFillEllipse(color, x, y, w, h)
DrawObject.drawText(color, x, y, text[, font, style])
DrawObject.drawTextRight(color, x, y, text[, font, style])
DrawObject.drawTextCenter(color, x, y, text[, font, style])
DrawObject.drawLine(color, x, y, x2, y2)
class Event
static Event.register(name, obj)
static Event.registerFunction(name, func)
static Event.unRegisterAll(obj)
static Event.fire(name)
static Event.fireCancelable(name)
static Event.list
class Font
new Font(id, count)
static Font.add(name, path)
static Font.list
mtime()
time()
round(i)
floor(i)
ceil(i)
max(a,b)
min(a,b)
minmax(a,v,b)
rand(a, b)
pointDistance(x1, y1, x2, y2)
pointInDirection(x, y, d, a)
pointRotate(px, py, cx, cy, a)
class Keyboard
event keyInput(input, inputDelete, inputBackspace)
event keyDown(keyCode)
event keyUp(keyCode)
static Keyboard.state
class Mouse
event mouseMove(dx, dy)
event mouseMoveGrid(dx, dy)
event mouseMoveGridAbolute(dx, dy)
event mouseWheel(delta)
event preMouseDown(button)
event mouseDown(button)
event mouseUp(button)
static Mouse.leftDown
static Mouse.middleDown
static Mouse.rightDown
static Mouse.x
static Mouse.y
static Mouse.gridX
static Mouse.gridY
static Mouse.absoluteX
static Mouse.absoluteY
static Mouse.absoluteGridX
static Mouse.absoluteGridY
static Mouse.hoversObj(obj)
class Sprite
new Sprite(id, gridWidth, gridHeight, chunkSizeWidth, chunkSizeHeight, chunk)
Sprite.id
Sprite.isSpriteChunk
Sprite.gridWidth
Sprite.gridHeight
Sprite.chunkSizeWidth
Sprite.chunkSizeHeight
Sprite.chunkWidth
Sprite.chunkHeight
Sprite.width
Sprite.height
Sprite.offsetX
Sprite.offsetY
static Sprite.add(name, path, chunkSizeWidth, chunkSizeHeight)
static Sprite.list
class SpriteChunk (extends Sprite)
new Sprite(id, gridWidth, gridHeight, chunkSizeWidth, chunkSizeHeight, chunk)
SpriteChunk.offsetX
SpriteChunk.offsetY
String
String.upperFirst()
String.lowerFirst()
class SuperRetro
global superRetro
global sr
SuperRetro.active
SuperRetro.width
SuperRetro.height
SuperRetro.step
SuperRetro.offsetX
SuperRetro.offsetY
SuperRetro.sprite
SuperRetro.font
SuperRetro.loadRequestCount
SuperRetro.loadCount
SuperRetro.node
event srOffsetMove(offsetX, offsetY)
event step()
event beforeDraw()
event draw()
7 years ago