https://github.com/phpgl/visu-quickstart
Bootstrap a minimal and very lightweight VISU application.
https://github.com/phpgl/visu-quickstart
Last synced: 10 months ago
JSON representation
Bootstrap a minimal and very lightweight VISU application.
- Host: GitHub
- URL: https://github.com/phpgl/visu-quickstart
- Owner: phpgl
- Created: 2024-01-29T23:17:08.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-24T17:00:19.000Z (over 1 year ago)
- Last Synced: 2025-03-24T16:05:14.491Z (10 months ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VISU Quickstart
This is a quickstart guide to create a minimal and lightweight VISU application for rapid prototyping.
Using this quickstart will provide you with the bare minimum code and scaffolding for a simple VISU application.
If you're looking for the **full scaffolding** for more complex applications where you maintain full control, check out [VISU Starter](https://github.com/phpgl/visu-starter).
The Quickstart will provide the following:
* A minimal application class `src/Application.php`.
- `draw` method with a simple rendering pipeline prebuilt.
- `update` method which is called at a fixed interval.
* Simple game loop metrics, showing the current FPS, frame times, and update times.
* Event handling and Input Events.
- An `InputContext` with no actions assigned.
* Offscreen rendering to a texture by default.
* Properly resizing render target and HDPI handling.
* ECS (Entity Component System) is available.
* Vector Graphics frame is preinitialized.
## Prerequisites
* PHP 8.1 or higher
* PHP-GLFW extension installed
* Composer
## Usage
Use Composer to create a new project based on visu-quickstart:
```bash
composer create-project phpgl/visu-quickstart -s dev --prefer-dist my-visu-project
```
After the installation is complete, you can start the application by running:
```bash
cd my-visu-project
php ./bin/start.php
```