Skip to content

Commit

Permalink
Initial game setup
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelrudolf committed Aug 25, 2020
1 parent d726306 commit 080abe0
Show file tree
Hide file tree
Showing 18 changed files with 865 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"liveSassCompile.settings.formats": [
{
"format": "expanded",
"extensionName": ".css",
"savePath": "/styles"
}
],
"liveSassCompile.settings.excludeList": [
"**/node_modules/**",
".vscode/**"
],
"liveSassCompile.settings.generateMap": false,
"liveSassCompile.settings.autoprefix": [
"> 1%",
"last 2 versions"
]
}
76 changes: 76 additions & 0 deletions assets/atlas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"frames": {
"curiosity-back-drive.000": {
"frame": {
"x": 1,
"y": 1,
"w": 48,
"h": 48
},
"rotated": false,
"trimmed": false,
"sourceSize": {
"w": 48,
"h": 48
},
"spriteSourceSize": {
"x": 0,
"y": 0,
"w": 48,
"h": 48
}
},
"curiosity-back-drive.001": {
"rotated": false,
"trimmed": false,
"sourceSize": {
"w": 48,
"h": 48
},
"spriteSourceSize": {
"x": 0,
"y": 0,
"w": 48,
"h": 48
},
"frame": {
"x": 51,
"y": 1,
"w": 48,
"h": 48
}
},
"curiosity-back-drive.002": {
"frame": {
"x": 101,
"y": 1,
"w": 48,
"h": 48
},
"rotated": false,
"trimmed": false,
"sourceSize": {
"w": 48,
"h": 48
},
"spriteSourceSize": {
"x": 0,
"y": 0,
"w": 48,
"h": 48
}
}
},
"meta": {
"app": "https://www.codeandweb.com/texturepacker",
"version": "3.0",
"image": "atlas.png",
"format": "RGBA8888",
"size": {
"w": 150,
"h": 50
},
"scale": 1,
"smartupdate": "$TexturePacker:SmartUpdate:9530fc4aaaa628a69bd1e6db347a326c:81f7af523aff777a2955ac66cafca4e5:cbce6b53f0f49e0bf15173c25c41f876$"
}
}
Binary file added assets/atlas.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/mars-surface-tiles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
144 changes: 144 additions & 0 deletions assets/mars-surface.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
{ "compressionlevel":-1,
"height":25,
"infinite":false,
"layers":[
{
"data":[20, 17, 18, 1, 6, 1, 17, 17, 1, 18, 20, 18, 20, 5, 18, 5, 18, 6, 6, 20, 3, 5, 3, 20, 5, 17, 3, 20, 3, 6, 20, 6, 6, 3, 20, 17, 5, 1, 3, 18, 6, 1, 3, 6, 5, 18, 18, 18, 18, 17, 5, 3, 20, 18, 17, 3, 18, 3, 20, 17, 17, 6, 3, 3, 3, 18, 18, 20, 3, 20, 5, 20, 3, 18, 18, 17, 6, 1, 18, 20, 5, 20, 5, 18, 1, 1, 20, 6, 6, 5, 3, 18, 1, 17, 1, 6, 20, 3, 6, 20, 1, 18, 1, 6, 1, 17, 5, 20, 1, 18, 1, 3, 3, 17, 6, 5, 3, 5, 3, 6, 6, 3, 6, 20, 1, 1, 18, 20, 3, 6, 1, 1, 18, 1, 17, 18, 5, 18, 18, 6, 20, 5, 5, 17, 1, 17, 20, 3, 6, 1, 20, 3, 20, 1, 5, 3, 5, 18, 1, 1, 5, 20, 5, 17, 3, 5, 17, 1, 20, 18, 5, 1, 3, 3, 3, 6, 6, 3, 17, 6, 1, 17, 18, 18, 20, 17, 1, 20, 1, 3, 6, 20, 6, 6, 3, 6, 18, 1, 5, 3, 1, 5, 17, 5, 17, 17, 3, 6, 3, 6, 18, 5, 3, 5, 3, 6, 20, 1, 1, 17, 17, 5, 3, 20, 3, 3, 20, 6, 6, 1, 1, 1, 1, 6, 6, 20, 3, 1, 17, 5, 20, 1, 18, 1, 18, 17, 3, 18, 3, 1, 1, 6, 6, 5, 3, 3, 1, 1, 3, 6, 6, 18, 20, 20, 20, 20, 17, 3, 3, 20, 17, 6, 6, 20, 18, 1, 17, 1, 3, 18, 3, 18, 17, 1, 6, 6, 18, 5, 20, 20, 3, 17, 6, 3, 1, 18, 5, 1, 18, 18, 5, 3, 5, 17, 3, 3, 18, 5, 18, 5, 18, 5, 17, 3, 3, 1, 6, 5, 3, 6, 5, 5, 3, 18, 20, 18, 3, 6, 5, 18, 3, 20, 17, 20, 3, 18, 1, 5, 20, 18, 20, 3, 3, 1, 18, 17, 6, 18, 18, 17, 20, 6, 3, 6, 18, 20, 3, 20, 20, 18, 5, 6, 1, 20, 6, 3, 18, 3, 20, 17, 18, 1, 17, 20, 5, 20, 17, 5, 1, 6, 5, 1, 1, 6, 1, 1, 6, 17, 17, 6, 6, 5, 17, 3, 6, 20, 20, 5, 5, 3, 20, 17, 6, 3, 20, 17, 3, 1, 5, 18, 20, 1, 18, 20, 1, 3, 5, 3, 6, 18, 18, 5, 5, 20, 18, 5, 1, 3, 6, 6, 1, 18, 5, 3, 20, 17, 5, 20, 20, 20, 18, 17, 1, 1, 6, 5, 1, 18, 20, 20, 6, 5, 18, 20, 6, 18, 1, 5, 17, 3, 5, 6, 3, 20, 5, 18, 5, 6, 18, 5, 18, 6, 18, 1, 1, 6, 17, 3, 5, 1, 6, 1, 6, 6, 3, 20, 20, 6, 3, 6, 1, 1, 6, 20, 1, 5, 6, 3, 18, 20, 5, 3, 5, 1, 5, 6, 5, 1, 20, 18, 20, 3, 3, 5, 18, 17, 5, 6, 5, 3, 18, 3, 20, 1, 5, 18, 1, 17, 17, 18, 1, 17, 17, 6, 5, 20, 5, 5, 3, 1, 5, 5, 3, 5, 1, 3, 20, 20, 17, 18, 17, 6, 17, 20, 20, 18, 3, 18, 20, 17, 18, 20, 3, 6, 3, 1, 1, 6, 17, 17, 18, 3, 17, 20, 3, 6, 5, 18, 6, 5, 5, 18, 3, 3, 6, 17, 5, 18, 3, 17, 3, 6, 6, 17, 18, 3, 3, 6, 3, 5, 1, 17, 20, 3, 6, 20, 18, 6, 18, 5, 5, 6,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}],
"nextlayerid":6,
"nextobjectid":1,
"orientation":"orthogonal",
"renderorder":"right-down",
"tiledversion":"1.4.2",
"tileheight":16,
"tilesets":[
{
"columns":8,
"firstgid":1,
"image":"..\/..\/..\/pixel-art\/mars-game-assets\/mars-surface-tiles.png",
"imageheight":128,
"imagewidth":128,
"margin":0,
"name":"mars-surface-tiles",
"spacing":0,
"tilecount":64,
"tileheight":16,
"tiles":[
{
"id":21,
"properties":[
{
"name":"collides",
"type":"bool",
"value":true
}]
},
{
"id":29,
"properties":[
{
"name":"collides",
"type":"bool",
"value":true
}]
},
{
"id":33,
"properties":[
{
"name":"collides",
"type":"bool",
"value":true
}]
},
{
"id":34,
"properties":[
{
"name":"collides",
"type":"bool",
"value":true
}]
},
{
"id":38,
"properties":[
{
"name":"collides",
"type":"bool",
"value":true
}]
},
{
"id":39,
"properties":[
{
"name":"collides",
"type":"bool",
"value":true
}]
},
{
"id":41,
"properties":[
{
"name":"collides",
"type":"bool",
"value":true
}]
},
{
"id":42,
"properties":[
{
"name":"collides",
"type":"bool",
"value":true
}]
},
{
"id":46,
"properties":[
{
"name":"collides",
"type":"bool",
"value":true
}]
},
{
"id":47,
"properties":[
{
"name":"collides",
"type":"bool",
"value":true
}]
}],
"tilewidth":16
}],
"tilewidth":16,
"type":"map",
"version":1.4,
"width":25
}
19 changes: 19 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rovey</title>
<!-- font-awesome, google-fonts, adobe-typekit -->
<script src="script.js" defer></script>
<link rel="stylesheet" href="styles/style.css">
</head>

<body>

</body>
<!-- jquery -->
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"></script>

</html>
Loading

0 comments on commit 080abe0

Please sign in to comment.