Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
External BD level
{
"name" : "External Level",
"images" : {
"slider_inactive" : "resources/images/slider_inactive.jpg",
"slider_active" : "resources/images/slider_active.jpg",
"ball" : "http://momchil-atanasov.com/favicon.ico",
"brick_green" : "resources/images/brick_green.jpg",
"brick_red" : "resources/images/brick_red.jpg",
"brick_grey" : "resources/images/brick_grey.jpg"
},
"types" : {
"border" : {
"location" : {},
"collision" : {
"deflection" : 1.0,
"friction" : 0.0,
"shape_rectangle" : {}
}
},
"brick" : {
"location" : {},
"collision" : {
"deflection" : 1.0,
"friction" : 0.1,
"shape_rectangle" : {
"width" : 75,
"height" : 40
}
},
"sprite" : {
"width" : 75.0,
"height" : 40.0
}
},
"green_brick" : {
"sprite" : {
"image" : "brick_green"
},
"destroyOnHit" : {},
"shouldDestroy" : {}
},
"red_brick" : {
"sprite" : {
"image" : "brick_red"
},
"destroyOnHit" : {},
"shouldDestroy" : {},
"spawnOnDestroy" : {
"definition" : {
"types" : ["brick", "green_brick"]
}
}
},
"grey_brick" : {
"sprite" : {
"image" : "brick_grey"
}
},
"ball" : {
"location" : {},
"motion" : {},
"collision" : {
"deflection" : 0.9,
"friction" : 0.0,
"shape_circle" : {
"radius" : 13.5
}
},
"sprite" : {
"width" : 28,
"height" : 28,
"image" : "ball"
}
},
"slider" : {
"location" : {},
"collision" : {
"deflection" : 1.0,
"friction" : 0.1,
"shape_rectangle" : {
"width" : 50.0,
"height" : 18.0
}
},
"sprite" : {
"width" : 50,
"height" : 18,
"image" : "slider_inactive"
},
"mouseBound" : {
"axisX" : true,
"axisY" : false
},
"locationBound" : {
"minX" : 55.0,
"maxX" : 545.0
},
"bounceTogglable" : {
"activeImage" : "slider_active",
"inactiveImage" : "slider_inactive",
"deflection" : {
"x" : 2.0,
"y" : 8.0
}
}
}
},
"entities" : [
{
"types" : ["border"],
"location" : {
"x" : 300,
"y" : -10
},
"collision" : {
"shape_rectangle" : {
"width" : 600,
"height" : 20
}
}
},
{
"types" : ["border"],
"location" : {
"x" : 300,
"y" : 418
},
"destroyOnHit" : {},
"shouldNotDestroy" : {},
"collision" : {
"shape_rectangle" : {
"width" : 600,
"height" : 20
}
}
},
{
"types" : ["border"],
"location" : {
"x" : -10,
"y" : 204
},
"collision" : {
"shape_rectangle" : {
"width" : 20,
"height" : 408
}
}
},
{
"types" : ["border"],
"location" : {
"x" : 610,
"y" : 204
},
"collision" : {
"shape_rectangle" : {
"width" : 20,
"height" : 408
}
}
},
{
"types" : ["brick", "green_brick"],
"location" : {
"x" : 37.5,
"y" : 20.0
}
},
{
"types" : ["brick", "green_brick"],
"location" : {
"x" : 37.5,
"y" : 60.0
}
},
{
"types" : ["brick", "green_brick"],
"location" : {
"x" : 37.5,
"y" : 100.0
}
},
{
"types" : ["brick", "green_brick"],
"location" : {
"x" : 37.5,
"y" : 140.0
}
},
{
"types" : ["brick", "green_brick"],
"location" : {
"x" : 37.5,
"y" : 180.0
}
},
{
"types" : ["brick", "green_brick"],
"location" : {
"x" : 112.5,
"y" : 20.0
}
},
{
"types" : ["brick", "green_brick"],
"location" : {
"x" : 112.5,
"y" : 100.0
}
},
{
"types" : ["brick", "green_brick"],
"location" : {
"x" : 112.5,
"y" : 180.0
}
},
{
"types" : ["brick", "red_brick"],
"location" : {
"x" : 187.5,
"y" : 60.0
}
},
{
"types" : ["brick", "red_brick"],
"location" : {
"x" : 187.5,
"y" : 100.0
}
},
{
"types" : ["brick", "red_brick"],
"location" : {
"x" : 187.5,
"y" : 140.0
}
},
{
"types" : ["brick", "red_brick"],
"location" : {
"x" : 262.5,
"y" : 20.0
}
},
{
"types" : ["brick", "red_brick"],
"location" : {
"x" : 262.5,
"y" : 180.0
}
},
{
"types" : ["brick", "red_brick"],
"location" : {
"x" : 337.5,
"y" : 60.0
}
},
{
"types" : ["brick", "red_brick"],
"location" : {
"x" : 337.5,
"y" : 140.0
}
},
{
"types" : ["brick", "grey_brick"],
"location" : {
"x" : 412.5,
"y" : 60.0
}
},
{
"types" : ["brick", "grey_brick"],
"location" : {
"x" : 412.5,
"y" : 180.0
}
},
{
"types" : ["brick", "grey_brick"],
"location" : {
"x" : 487.5,
"y" : 20.0
}
},
{
"types" : ["brick", "grey_brick"],
"location" : {
"x" : 300.0,
"y" : 20.0
}
},
{
"types" : ["brick", "grey_brick"],
"location" : {
"x" : 300.0,
"y" : 60.0
}
},
{
"types" : ["brick", "grey_brick"],
"location" : {
"x" : 300.0,
"y" : 100.0
}
},
{
"types" : ["brick", "grey_brick"],
"location" : {
"x" : 300.0,
"y" : 140.0
}
},
{
"types" : ["ball"],
"location" : {
"x" : 200,
"y" : 240
}
},
{
"types" : ["slider"],
"location" : {
"x" : 245,
"y" : 397
},
"locationBound" : {
"maxX" : 245
}
},
{
"types" : ["slider"],
"location" : {
"x" : 355,
"y" : 397
},
"locationBound" : {
"minX" : 355
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.