Small example showing how you can make game sprite animations using CSS with Javascript movement.

Overview

Hi there, I'm Björn Hjorth 👋

I like combining the web and game development, if you like what you see please do not be a stranger and say "Hi" on Twitter @colorsofcode

Edit Demo on StackBlitz ⚡️ · Report Bug

Logo

About The Project

Small example showing how you can make game sprite animations using CSS with Javascript movement.

All of the game logic happens in the game.js file.

All of the CSS animation (exept states) is in the duck/duck.styles.css

You use keyboard A W S D navigation to move around

PS. the images are hosted on firebase to make the demo work on StackBlitz

Prerequisites

  • Node
  • Npm

Getting started

  1. Clone the repo
    git clone https://github.com/colorsofcode/javascript-game-development-css-amimation.git
  2. Move to the new directory
    cd javascript-game-development-css-amimation
  3. Install development dependencies
    npm install
  4. Start up the development environment
    npm run dev   
    

Contact

Björn Hjorth - @colorsofcode

Homepage: https://colorsofcode.com

License

Distributed under the MIT License. See LICENSE for more information.

Acknowledgments

To all the indiedevs that I have connected with over the years.

You might also like...

A small jQuery plugin for rendering scroll-based HTML animations

A small jQuery plugin for rendering scroll-based HTML animations

Storyline Build beautiful landing pages that change as the user scrolls up or down. Project created in 2013 and ported to GitHub in 2021. Demo Just vi

May 30, 2022

A small library for creating typing animations.

A small library for creating typing animations. View a short video demonstration here. Installation npm i tiper-js Usage Initialization is really simp

Nov 5, 2022

A (very) minimalist creative coding playground. Make animations using only 64 HTML sliders!

Sliderland A (very) minimalist creative coding playground. Make animations using only 64 HTML sliders! Credits The recording feature uses ffmpeg.wasm

Dec 30, 2022

Lightweight JavaScript library that allows you add motion blur to your CSS animations

MotionBlurJS For more information and examples please visit: https://www.motionblurjs.com What is MotionBlurJS MotionBlurJS is a lightweight JavaScrip

Oct 6, 2022

why make apps to increase focus -- when you can make apps to reduce focus

impossifocus 🕺 What is this? ImpossiFocus will measure focus by reading your brainwaves -- and if you're in the zone, it'll ensure that changes with

Nov 30, 2022

A set of small, responsive CSS modules that you can use in every web project.

A set of small, responsive CSS modules that you can use in every web project.

Pure A set of small, responsive CSS modules that you can use in every web project. https://purecss.io/ This project is looking for maintainers to supp

Jan 9, 2023

A small javascript DOM manipulation library based on Jquery's syntax. Acts as a small utility library with the most common functions.

Quantdom JS Quantdom is a very small (about 600 bytes when ran through terser & gzipped) dom danipulation library that uuses a Jquery like syntax and

Aug 16, 2022

Example Breakout games using small libraries/engines/templates for the js13kGames competition.

Example Breakout games using small libraries/engines/templates for the js13kGames competition.

js13kBreakouts We implemented the same breakout style game with small libraries/engines/templates for the js13kGames competition! Live Demos LittleJS

Sep 17, 2022

This web application is a type of a scoreboard showing the names and current scores of the leading competitors in any field which is using API's to get and set data

This web application is a type of a scoreboard showing the names and current scores of the leading competitors in any field which is using API's to get and set data

Leaderboard-project This web application is a type of a scoreboard showing the names and current scores of the leading competitors in any field which

Feb 11, 2022
Owner
Björn Hjorth
✨ Creator of web things ⚔️ Passion for game development 🎨 Pixel art
Björn Hjorth
To Do list is a small but useful project to make list app , you can add tasks delete tasks and modify tasks, the project built using HTML, CSS, JavaScript

Project Name The To-Do-List app description this is a project in the second week of the second module in microverse. its a useful to do list that save

Alzubair Alqaraghuli 5 Jul 25, 2022
CSS sprite to represent iOS shortcut icons

shortcut-icons A CSS sprite to represent iOS shortcut icons. Grab the stylesheet and the default (iOS 15) glyph set, and add a shortcut icon to your H

Antonio Bueno 18 Nov 14, 2022
Chakra UI Animations is a dependancy which offers you pre-built animations for your Chakra UI components.

Chakra UI Animations Chakra UI Animations is a dependancy which offers you pre-built animations for your Chakra UI components. Installation yarn add @

Code Chemistry Inc. 9 Nov 19, 2022
Example application showing how to use single-table design with GraphQL and DynamoDB

GraphQL + DynamoDB -- Single-table example This repository includes an example of building a GraphQL API with DynamoDB using a single DynamoDB table.

Alex DeBrie 19 Dec 13, 2022
Clinton Mbonu 20 Jun 30, 2022
Animated sprite hook for react-three-fiber

use-animated-sprite Animated sprite hook for react-three-fiber Dependencies npm install @react-three/drei @react-three/fiber react three Installation

Brit Gardner 7 Dec 4, 2022
A generative engine that takes various png layers on a sprite sheet format, combines them and then converts them into a .gif file

Welcome to the Generative GIF Engine v2.0.4 ?? [8 minute read] This python and node app generates layered-based gifs to create NFT gif art! It is fast

Jalagar 112 Jan 2, 2023
A generative engine that takes various png layers on a sprite sheet format, combines them and then converts them into a .gif file

Welcome to the Generative Animated Engine v3.0.1 ?? [8 minute read] This repo used to be called jalagar/Generative_Gif_Engine but because it now suppo

Jalagar 47 May 24, 2022