phpgl / visu-quickstart
There is no license information available for the latest version (dev-master) of this package.
dev-master
2024-08-24 17:00 UTC
Requires
- phpgl/visu: @dev
Requires (Dev)
- phpgl/ide-stubs: dev-main
This package is auto-updated.
Last update: 2024-10-24 17:17:51 UTC
README
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.
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.
- An
- 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:
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:
cd my-visu-project
php ./bin/start.php