Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

RubyDevil/Starblast.io-Exode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED: NO UPDATE WILL BE MADE IN THE FUTURE

Exode

Note: Exode is currently in .Beta and can sometimes be in maintenance. @Unstable
@Status: .custom_background unoperative

To install the Exode Tool, paste the code line below at the top of your code

`$.ajax("https://raw.githubusercontent.com/RubyDevil/Exode_OSM/main/Exode.js")
.done(data => eval(data)).fail(err => console.log(err))`

Features

Custom Editor

Exode allows you to customize your interface as you like. To perform modifications to the style of your editor, follow the example, and use options in the table below.

Editor = {
    option: value
}
Setting Description Options
custom_background Alter the background of the main canvas URL | Code: (1-40)
centerize_canvas Avoid the canvas from exceeding window limits True | false
text_color Set the main text color Any CSSList
italic Set the main text style to italic True | false

Open Source Models

# In progress...

Array Methods

The following methods are extended to Array.prototype, and can be used like the example below.

[1,2,3,4].add(2) // => [3,4,5,6]
Method Description
.add(x) Augment each number in the array by x (negatives = reduce)
.mult(x) Multiply each number in the array by x
.div(x) Divide each number in the array by x
.min(x) Set the minimal value of each number in the array
.max(x) Set the maximal value of each number in the array
.flat() (width or height) Flatten the object to a 2D plane
.ignore([x]) Ignore all given values and set them to 0 (x is Array)
.replace(x,y) Replace all given values x by the value y
.cleanTex() Prevent all Textures 0 from rendering as a different Texture
.baseTex(Tex) Force all Textures 0 to render as Texture Tex
.step(s) Details Comming soon
.infuse(v,l) Details Comming soon
.copy(ID) @save_system create a save ID of the array
.paste(ID) @save_system load the save ID of an array

Object Methods

The following methods are extended to Object.prototype, and can be used like the example below.

{ Brackets } need to be added to use Object Methods
bodies:
  main:{
    ...
  }.size(1.5)
Method Description
.reflect() Reflects/Reverses the object
.size(x) Scales the object to the given size x
.auto() Bypasses the necessity of declaring properties
(e.g. You can have the offset property with only y and without x and z)
The script will generate the properties you omit

About

An advanced custom ship editor for starblast.io

Topics

Resources

Stars

Watchers

Forks