OurWorldOfPixels Docs
- Who made this? SuperOP535 smh I have no life lol
- Is this still updated? As of 3rd July (2018), yes
- Notice (17 August, 2018): This documentation is no longer active, although it should work for a long time new stuff will probably not be added!
Protocol Docs
Coming soon | Meanwhile you can check this and this
API Docs
- All variables are present through
OWOP.<category>.<variable>
for example OWOP.options.movementSpeed
- (noedit) means that you cannot/nothing will happen if you edit the value
Quick-navigate
Camera
- isVisible(): some function
- x: X coordinate of the most top-left pixel (noedit)
- y: Y coordinate of the most top-left pixel (noedit)
- zoom: the zoom (def 16)
Options
- backgroundUrl:
- chunkBugWorkaround:
- defaultWorld: default world (noedit) (def 'main')
- defaultZoom: default zoom (noedit) (def 16)
- enableSounds: wheter to play sounds like drawing (def true)
- fallbackFps:
- maxChatBuffer:
- minGridZoom:
- movementSpeed: speed of arrow keys (min 0, def 1, max 100)
- serverAddress: some array
- tickSpeed:
- toolSetUrl:
- unloadDistance:
- unloadedPatternUrl:
- zoomLimitMax: maximum zoom (used by tools and Camera#zoom)
- zoomLimitMin: minimum zoom (used by tools and Camera#zoom)
- zoomStrength: amount to zoom when using + and - keys (also used by zoom tool but with a different calculation)
World
- getPixel(x, y, chunk): returns [r, g, b] colors of specified pixel (chunk not needed)
- setPixel(x, y, rgb, noUndo): updates specified pixel with [r, g, b] color array
- undo(): undoes last pixel update
- unloadFarChunks(?): args unknown | function broken?
Chat
- recvModifier: modifier for received messages (first arg e.g.:
123: hello!
)
- sendModifier: modifier for messages before they're sent (first arg e.g.:
hello!
)
- local: show a message (not send) in chat
- clear: removes all messages from chat
Mouse
This can be a bit confusing because there are many X and Y values, please read the line twice to make sure to not confuse them.
- x: X coordinate of the mouse on the screen
- y: Y coordinate of the mouse on the screen
- lastX: the last (screen^) x the mouse was down at
- lastY: the last (screen^) y the mouse was down ay
- worldX: X coordinate of the mouse on the world
- worldY: Y coordinate of the mouse on the world
- mouseDownWorldX: the last worldX the mouse was down at
- mouseDownWorldY: the last worldY the mouse was down at
- tileX: X coordinate of the tile the mouse is pointing at
- tileY: Y coordinate of the tile the mouse is pointing at
- buttons: MouseEvent#buttons (0: none, 1: left, 2: right)
- validTile:
- insideViewport:
- touches:
- cancelMouseDown(): makes OWOP think that your mouse is no longer down (cancels normal drawing etc.)
- validClick:
Events
Warning: use these as OWOP.<function>
- emit(eventId, [arguments]): emits an event
- on(eventId, function): listen to an eventId
- once(eventId, function): listen to an eventId but only ONCE
WindowSys