VgaGames4

VgaGames4 - man-pages

# Overview

Version 4.1

### Functions

- Initialization and Destruction
- Window functions
  Manage window.
- Input functions
  Functions for receiving events from keyboard, gamecontrollers and mouse.
- Image functions
  Load, create, draw and copy images.
- Sprite functions
  Animated images.
- Font and text functions
  Setting fonts and creating and loading formatted text.
- Audio functions
  Playing audio-files.
- Collision functions
  Accelerated checking for collisions of objects.
- Game-object functions
  Creating game-objects and -instances.
- Canvas functions
  Creating graphical user interfaces.
- Dialog functions
  Some common predefined canvasses.
- Network functions
  Networking for multiplayer games.
- Random functions
  Random numbers suitable for multiplayer games.
- Multilanguage functions
  Support for text in different languages.
- Hashing functions
  Support for hashes - array with strings as index.
- Actionstack functions
  A stack to prefer actions or objects temporaryly.
- Nodelink functions
  Creating linked nodes and finding a way from a start node to a destination node.
- Film functions
  Creating simple films.
- Miscellaneous functions
  Miscellaneous functions.

### Creating a game

Compiling a game
To compile a game with VgaGames4 vgagames4-config or pkgconf can be used:
- vgagames4-config --cflags --libs
- pkgconf --cflags --libs vgagames4
Making a game independent of an installed VgaGames4-library
To make a compiled game independent of an installed VgaGames4-library,
- use: vgagames4-config --copylocal
- or: vgagames4-config --copylocal_with_midi
to create a subdirectory vgag4 containing all needed files
(see vgagames4-config --help)