{"id":18086532,"url":"https://github.com/jugshaurya/mario","last_synced_at":"2026-04-17T03:02:57.616Z","repository":{"id":39418161,"uuid":"201586033","full_name":"jugshaurya/mario","owner":"jugshaurya","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-01T10:30:28.000Z","size":23926,"stargazers_count":2,"open_issues_count":23,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-06T00:44:28.244Z","etag":null,"topics":["babel","es6","phaser3","vanilla-javascript","webpack"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jugshaurya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-10T05:45:52.000Z","updated_at":"2020-04-11T10:31:48.000Z","dependencies_parsed_at":"2023-01-31T21:46:41.107Z","dependency_job_id":null,"html_url":"https://github.com/jugshaurya/mario","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jugshaurya/mario","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jugshaurya%2Fmario","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jugshaurya%2Fmario/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jugshaurya%2Fmario/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jugshaurya%2Fmario/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jugshaurya","download_url":"https://codeload.github.com/jugshaurya/mario/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jugshaurya%2Fmario/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31913078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babel","es6","phaser3","vanilla-javascript","webpack"],"created_at":"2024-10-31T16:08:26.183Z","updated_at":"2026-04-17T03:02:57.589Z","avatar_url":"https://github.com/jugshaurya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :octocat: mario Bros Lvl 1\n\n\u003cimg src=\"https://img.shields.io/badge/made%20with-phaser-blue.svg\" alt=\"made with phaser\"\u003e \u003cimg src=\"https://img.shields.io/badge/made%20with-vanillajs-yellow.svg\" alt=\"made with vanilla-js\"\u003e \u003cimg src=\"https://img.shields.io/github/last-commit/jugshaurya/mario\" alt=\"last-commit\"\u003e \u003cimg src=\"https://img.shields.io/github/languages/code-size/jugshaurya/mario\" alt=\"code-size\"\u003e\n\n## Resources\n\nhttps://www.valentinog.com/blog/webpack/\n\nWhat Is Webpack? - Module Builder\nWhat Is Babel? Transpiler\nWebpack takes all of your various project files, creates static assets, and Babel then transpiles those files for the vast majority of browsers to read.\n\n## Setup\n\nWebpack4\nbabel7 means for evry dependies there is a @ in front @babel/\n\nnpm init\nnpm install webpack webpack-cli webpack-dev-server --save-dev\nnpm install @babel/cli @babel/core @babel/node @babel/preset-env @babel/register --save-dev\nJS/JSX \u0026 CSS Loaders and plugin:\n\n---\n\nnpm install babel-loader html-loader style-loader css-loader html-webpack-plugin mini-css-extract-plugin --save-dev\n\n## plugin\n\n## add a .babelrc file with code:\n\n{\n\"presets\": [\n\"@babel/preset-env\",\n]\n}\n\nadd a file named webpack.config.js and see code in that file\n\nadd scripts in package.json\n\"scripts\": {\n\"start\": \"webpack-dev-server --mode development --open\",\n\"dev\": \"webpack --mode development\",\n\"build\": \"webpack --mode production\"\n},\n\n## Added copy-webpack-plugin for assets\n\nBootscenes\nGameScene\n\nMade level with tiled app in JSON format with tile-gutter from internet\n\n## Adding Mario\n\n## ADDing level\n\n```\n\tfunction preload(){\n\t\tthis.load.image('gameTiles', 'tiles_spritesheet.png');\n\t\tthis.load.tilemapTiledJSON﻿('level1', 'map.json');\n\t}\n\n\tfunction create(){\n\t\tthis.map = this.add.tilemap('level1');\n\t\tvar tileset = this.map.addTilesetImage('tiles_spritesheet','gameTiles');\n\t\tthis.backgroundLayer = this.map.createLayer('backgroundLayer', tileset);\n}\n```\n\n## Run it\n\n```\nnpm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjugshaurya%2Fmario","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjugshaurya%2Fmario","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjugshaurya%2Fmario/lists"}