├── .vscode └── settings.json ├── LICENSE ├── README.md ├── favicon.ico ├── html-2d.PNG ├── index.html └── resources ├── css └── game.css ├── data ├── images │ ├── bat.png │ ├── canon.png │ ├── character.png │ ├── clock.png │ ├── coin.png │ ├── door.png │ ├── heart.png │ ├── key.png │ ├── platform.png │ ├── skeleton.png │ ├── snake.png │ ├── spikes.png │ └── spring.png ├── maps │ ├── level1.json │ ├── tilesheet.json │ └── tilesheet.png ├── music │ └── music3.mp3 ├── parallax │ ├── layer_01_1920 x 1080.png │ ├── layer_02_1920 x 1080.png │ ├── layer_03_1920 x 1080.png │ ├── layer_04_1920 x 1080.png │ ├── layer_05_1920 x 1080.png │ ├── layer_06_1920 x 1080.png │ ├── layer_07_1920 x 1080.png │ ├── layer_07_1920 x 1080_1.png │ └── layer_08_1920 x 1080.png └── sounds │ ├── coin.mp3 │ ├── explosion.mp3 │ ├── heart.mp3 │ ├── jump.mp3 │ ├── key.mp3 │ └── spring.mp3 └── js ├── core ├── animation.js ├── background.js ├── camera.js ├── entity.js ├── game.js ├── joypad.js ├── map.js ├── particle.js ├── sound.js ├── text.js ├── timer.js ├── utils.js ├── vec2.js └── world.js ├── game ├── demo-game.js ├── door.js ├── enemies.js ├── events.js ├── items.js ├── limit.js ├── platforms.js ├── player.js ├── resources.js └── stairs.js └── includes.js /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "liveServer.settings.port": 5502 3 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/README.md -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/favicon.ico -------------------------------------------------------------------------------- /html-2d.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/html-2d.PNG -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/index.html -------------------------------------------------------------------------------- /resources/css/game.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/css/game.css -------------------------------------------------------------------------------- /resources/data/images/bat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/images/bat.png -------------------------------------------------------------------------------- /resources/data/images/canon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/images/canon.png -------------------------------------------------------------------------------- /resources/data/images/character.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/images/character.png -------------------------------------------------------------------------------- /resources/data/images/clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/images/clock.png -------------------------------------------------------------------------------- /resources/data/images/coin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/images/coin.png -------------------------------------------------------------------------------- /resources/data/images/door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/images/door.png -------------------------------------------------------------------------------- /resources/data/images/heart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/images/heart.png -------------------------------------------------------------------------------- /resources/data/images/key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/images/key.png -------------------------------------------------------------------------------- /resources/data/images/platform.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/images/platform.png -------------------------------------------------------------------------------- /resources/data/images/skeleton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/images/skeleton.png -------------------------------------------------------------------------------- /resources/data/images/snake.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/images/snake.png -------------------------------------------------------------------------------- /resources/data/images/spikes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/images/spikes.png -------------------------------------------------------------------------------- /resources/data/images/spring.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/images/spring.png -------------------------------------------------------------------------------- /resources/data/maps/level1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/maps/level1.json -------------------------------------------------------------------------------- /resources/data/maps/tilesheet.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/maps/tilesheet.json -------------------------------------------------------------------------------- /resources/data/maps/tilesheet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/maps/tilesheet.png -------------------------------------------------------------------------------- /resources/data/music/music3.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/music/music3.mp3 -------------------------------------------------------------------------------- /resources/data/parallax/layer_01_1920 x 1080.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/parallax/layer_01_1920 x 1080.png -------------------------------------------------------------------------------- /resources/data/parallax/layer_02_1920 x 1080.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/parallax/layer_02_1920 x 1080.png -------------------------------------------------------------------------------- /resources/data/parallax/layer_03_1920 x 1080.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/parallax/layer_03_1920 x 1080.png -------------------------------------------------------------------------------- /resources/data/parallax/layer_04_1920 x 1080.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/parallax/layer_04_1920 x 1080.png -------------------------------------------------------------------------------- /resources/data/parallax/layer_05_1920 x 1080.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/parallax/layer_05_1920 x 1080.png -------------------------------------------------------------------------------- /resources/data/parallax/layer_06_1920 x 1080.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/parallax/layer_06_1920 x 1080.png -------------------------------------------------------------------------------- /resources/data/parallax/layer_07_1920 x 1080.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/parallax/layer_07_1920 x 1080.png -------------------------------------------------------------------------------- /resources/data/parallax/layer_07_1920 x 1080_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/parallax/layer_07_1920 x 1080_1.png -------------------------------------------------------------------------------- /resources/data/parallax/layer_08_1920 x 1080.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/parallax/layer_08_1920 x 1080.png -------------------------------------------------------------------------------- /resources/data/sounds/coin.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/sounds/coin.mp3 -------------------------------------------------------------------------------- /resources/data/sounds/explosion.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/sounds/explosion.mp3 -------------------------------------------------------------------------------- /resources/data/sounds/heart.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/sounds/heart.mp3 -------------------------------------------------------------------------------- /resources/data/sounds/jump.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/sounds/jump.mp3 -------------------------------------------------------------------------------- /resources/data/sounds/key.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/sounds/key.mp3 -------------------------------------------------------------------------------- /resources/data/sounds/spring.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/data/sounds/spring.mp3 -------------------------------------------------------------------------------- /resources/js/core/animation.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/core/animation.js -------------------------------------------------------------------------------- /resources/js/core/background.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/core/background.js -------------------------------------------------------------------------------- /resources/js/core/camera.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/core/camera.js -------------------------------------------------------------------------------- /resources/js/core/entity.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/core/entity.js -------------------------------------------------------------------------------- /resources/js/core/game.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/core/game.js -------------------------------------------------------------------------------- /resources/js/core/joypad.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/core/joypad.js -------------------------------------------------------------------------------- /resources/js/core/map.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/core/map.js -------------------------------------------------------------------------------- /resources/js/core/particle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/core/particle.js -------------------------------------------------------------------------------- /resources/js/core/sound.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/core/sound.js -------------------------------------------------------------------------------- /resources/js/core/text.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/core/text.js -------------------------------------------------------------------------------- /resources/js/core/timer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/core/timer.js -------------------------------------------------------------------------------- /resources/js/core/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/core/utils.js -------------------------------------------------------------------------------- /resources/js/core/vec2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/core/vec2.js -------------------------------------------------------------------------------- /resources/js/core/world.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/core/world.js -------------------------------------------------------------------------------- /resources/js/game/demo-game.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/game/demo-game.js -------------------------------------------------------------------------------- /resources/js/game/door.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/game/door.js -------------------------------------------------------------------------------- /resources/js/game/enemies.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/game/enemies.js -------------------------------------------------------------------------------- /resources/js/game/events.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/game/events.js -------------------------------------------------------------------------------- /resources/js/game/items.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/game/items.js -------------------------------------------------------------------------------- /resources/js/game/limit.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/game/limit.js -------------------------------------------------------------------------------- /resources/js/game/platforms.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/game/platforms.js -------------------------------------------------------------------------------- /resources/js/game/player.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/game/player.js -------------------------------------------------------------------------------- /resources/js/game/resources.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/game/resources.js -------------------------------------------------------------------------------- /resources/js/game/stairs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/game/stairs.js -------------------------------------------------------------------------------- /resources/js/includes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergiss/html-2d/HEAD/resources/js/includes.js --------------------------------------------------------------------------------