Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samuelasherrivello/pixi-html5-examples

PixiJS Html5 TypeScript examples showcasing several exciting features of the technology.
https://github.com/samuelasherrivello/pixi-html5-examples

game-development html5 pixijs typescript

Last synced: 2 months ago
JSON representation

PixiJS Html5 TypeScript examples showcasing several exciting features of the technology.

Awesome Lists containing this project

README

        

# PixiJS Html5 Examples

This repo includes Html5 examples using [PixiJS](https://pixijs.com/) and [TypeScript](https://www.typescriptlang.org/).

It is based on Samuel Asher Rivello's [GitHub.com/SamuelAsherRivello/pixi-project-template/](https://github.com/SamuelAsherRivello/pixi-project-template/) which is a recommended starting point for new projects.

screenshot
Image 1 - PixiJS Game Engine - Html5 + WebGPU

### Table of Contents

1. [Getting Started](#getting-started)
1. [Project Overview](#project-overview)
1. [Credits](#credits)


# Getting Started

### Play The Examples

1. Open [SamuelAsherRivello.itch.io/pixi-html5-examples](https://samuelasherrivello.itch.io/pixi-html5-examples)
1. Click `Run game` button (center)
1. Click `Fullscreen` button (lower-right)
1. Click `Escape` key to quit
1. Enjoy !

### Build The Examples

1. Download this repo (*.zip or *.git)
1. Install dependencies. Open the `PixiJS` folder in command line...
* Run `npm install` to download and install dependencies
1. Build the game. Open the `PixiJS` folder in command line...
* Run `npm run client-build` builds the game
* Run `npm run client-start-watch` launches a server to localhost
1. Play the game at [localhost:3000](http://localhost:3000)
1. Open the `PixiJS` folder in [Visual Studio Code](https://code.visualstudio.com/) or your favorite editor
1. Do your game development
1. Optional: When you add/update files within the `PixiJS` you may need to repeat step 3. See [Webpack Beginner's Guide](https://medium.com/javascript-training/beginner-s-guide-to-webpack-b1f1a3638460) for more info
1. Enjoy !


### More Commands

You can run these terminal commands during your workflows.

| Command | Description | Builds? | Runs? | Tests? | Watches? |
|------------------------------|------------------------------------------------|---------|--------|--------|----------|
| `npm install` | Required: Download and install dependencies | ❌ | ❌ | ❌ | ❌ |
| `npm run client-build` | Required: Build app | ✅ | ❌ | ❌ | ❌ |
| `npm run client-start-watch` | Required: Run app on localhost | ❌ | ✅ | ❌ | ✅ |
| `npm run tests-start-watch` | Optional: Run unit tests | ❌ | ❌ | ✅ | ✅ |

# Project Overview

### Screenshots

| 1. Cards | 2. Text | 3. Particles |
|---------------|---------------|---------------|
| | | |

### Features

| Feature | Complete | Comment |
|---------|----------|---------|
| Pixi JS | ✅ | Very fun! v8.x |
| TypeScript | ✅ | I'm a noobie. It's way better than vanilla JS! |
| FPS Display | ✅ | With textfield |
| Aesthetics | ✅ | Looks good |
| Performance | ✅ | Works well (~250 FPS) |
| Architecture | ✅ | Consistent but informal. See my [C# Architecture](https://bit.ly/mvc-architecture-for-unity-on-udemy) |
| Project Structure | ✅ | Consistent. Format WIP |
| Readability | ✅ | Has main entry point, and clear separation of examples |
| Errors-Free | ✅ | Nice! |
| Warning-Free | ⚠️ | Has one deprecation warning. Fix is TBD. #TimeConstraint |
| Responsive Design | ⚠️ | Examples do relayout() upon app resize. WIP. Good locally, so-so on itch.io. #TimeConstraint |
| Coding Standards | ⚠️ | My JS standards are WIP. See my [C# Standards](https://www.samuelasherrivello.com/best-practices). #TimeConstraint |
| Documentation | ⚠️ | Limited. #TimeConstraint |

### Structure

**Documentation**
* `ReadMe.md` - The primary documentation for this repo
* `PixiJS/documentation/` - More info specific to the project

**Configuration**
* `Game Engine` - [PixiJS](https://www.pixijs.com/) is a flexible and fast 2D rendering library for web-based graphics and games

**Structure**
* `PixiJS` - Contains the main project folder
* `PixiJS/assets/images/.html` - User-facing image assets
* `PixiJS/public/index.html` - The main HTML file for structure
* `PixiJS/src/css/styles.css` - The main CSS file for styling
* `PixiJS/src/scripts/index.ts` - The main TS file for game logic. Do your work here :)

**Dependencies**
* `./PixiJS/package.json` - Lists project dependencies and scripts. When you run `npm install` it installs whatever is here


# Credits

**Created By**

- Samuel Asher Rivello
- Over 25 years XP with game development (2024)
- Over 11 years XP with Unity (2024)

**Contact**

- Twitter - @srivello
- Git - Github.com/SamuelAsherRivello
- Resume & Portfolio - SamuelAsherRivello.com
- LinkedIn - Linkedin.com/in/SamuelAsherRivello <--- Say Hello! :)

**License**

Provided as-is under MIT License | Copyright © 2024 Rivello Multimedia Consulting, LLC