seed-engine
Version:
A Lightweight 2D game engine using WebGL2. The engine is designed on the focus of creating a bridge between creating and publishing games to the Seed Network as modules.
561 lines • 11.5 kB
JSON
{
"type": "File",
"start": 0,
"end": 111,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 111,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 42,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 42
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 19
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 19
},
"identifierName": "Renderable2D"
},
"name": "Renderable2D"
}
}
],
"source": {
"type": "StringLiteral",
"start": 25,
"end": 41,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 41
}
},
"extra": {
"rawValue": "./Renderable2D",
"raw": "'./Renderable2D'"
},
"value": "./Renderable2D"
}
},
{
"type": "ExportDefaultDeclaration",
"start": 44,
"end": 111,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 59,
"end": 111,
"loc": {
"start": {
"line": 3,
"column": 15
},
"end": {
"line": 5,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 65,
"end": 81,
"loc": {
"start": {
"line": 3,
"column": 21
},
"end": {
"line": 3,
"column": 37
},
"identifierName": "RenderableSquare"
},
"name": "RenderableSquare"
},
"superClass": {
"type": "Identifier",
"start": 90,
"end": 102,
"loc": {
"start": {
"line": 3,
"column": 46
},
"end": {
"line": 3,
"column": 58
},
"identifierName": "Renderable2D"
},
"name": "Renderable2D"
},
"body": {
"type": "ClassBody",
"start": 103,
"end": 111,
"loc": {
"start": {
"line": 3,
"column": 59
},
"end": {
"line": 5,
"column": 1
}
},
"body": []
},
"leadingComments": [],
"trailingComments": []
}
}
],
"directives": []
},
"comments": [],
"tokens": [
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 0,
"end": 6,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Renderable2D",
"start": 7,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 20,
"end": 24,
"loc": {
"start": {
"line": 1,
"column": 20
},
"end": {
"line": 1,
"column": 24
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./Renderable2D",
"start": 25,
"end": 41,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 41
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 41,
"end": 42,
"loc": {
"start": {
"line": 1,
"column": 41
},
"end": {
"line": 1,
"column": 42
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 44,
"end": 50,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 6
}
}
},
{
"type": {
"label": "default",
"keyword": "default",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "default",
"start": 51,
"end": 58,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 14
}
}
},
{
"type": {
"label": "class",
"keyword": "class",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "class",
"start": 59,
"end": 64,
"loc": {
"start": {
"line": 3,
"column": 15
},
"end": {
"line": 3,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "RenderableSquare",
"start": 65,
"end": 81,
"loc": {
"start": {
"line": 3,
"column": 21
},
"end": {
"line": 3,
"column": 37
}
}
},
{
"type": {
"label": "extends",
"keyword": "extends",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "extends",
"start": 82,
"end": 89,
"loc": {
"start": {
"line": 3,
"column": 38
},
"end": {
"line": 3,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Renderable2D",
"start": 90,
"end": 102,
"loc": {
"start": {
"line": 3,
"column": 46
},
"end": {
"line": 3,
"column": 58
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 103,
"end": 104,
"loc": {
"start": {
"line": 3,
"column": 59
},
"end": {
"line": 3,
"column": 60
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 110,
"end": 111,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 111,
"end": 111,
"loc": {
"start": {
"line": 5,
"column": 1
},
"end": {
"line": 5,
"column": 1
}
}
}
]
}