Particle Game Maker Engine
1.0.0
Enables the user to create their own particle game using a simple and coherent api in the PongChamp scripting language
|
#include "engine_capi.h"
Functions | |
HandlePtr | createParticleGroup (BuilderPtr builder) |
void | freeHandle (HandlePtr handle) |
BuilderPtr | buildParticleGroup () |
BuilderPtr | withColor (BuilderPtr builder, int r, int g, int b) |
BuilderPtr | withName (BuilderPtr builder, const char *name) |
void | onCollision_Delete (HandlePtr from, HandlePtr to, bool deleteFrom, bool deleteTo) |
void | onCollision_Create (HandlePtr from, HandlePtr to, int createFrom, int createTo) |
void | onCollision_Move (HandlePtr from, HandlePtr to, int xFromStep, int yFromStep, int xToStep, int yToStep) |
void | onCollision_Convert (HandlePtr from, HandlePtr to, HandlePtr newFromType, HandlePtr newToType) |
void | onCollision_MoveRandom (HandlePtr from, HandlePtr to, unsigned int radius) |
void | onUpdate_Move (HandlePtr group, int framesPerUpdate, int updateLimit, int xStep, int yStep) |
void | onUpdate_Lifetime (HandlePtr group, int framesPerUpdate, int updateLimit, int framesAlive) |
void | onUpdate_RandomMove (HandlePtr group, int framesPerUpdate, int updateLimit, int xRange, int yRange) |
void | onUpdate_Create (HandlePtr group, int framesPerUpdate, int updateLimit, HandlePtr newParticle, int count, int xOff, int yOff, int xRange, int yRange) |
LayoutBuilderPtr | buildLayout () |
start to build a layout More... | |
LayoutBuilderPtr | withSize (LayoutBuilderPtr builder, int w, int h) |
set size of layout More... | |
LayoutBuilderPtr | withWindowRatio (LayoutBuilderPtr builder, int particlePCT) |
configure size of particle placing portion of the window. input is the percentage that will take up the particle screen More... | |
LayoutBuilderPtr | withEditorOrientation (LayoutBuilderPtr builder, int orient) |
configure whether horizontal or vertical orientation for the editor More... | |
LayoutBuilderPtr | withParticleSize (LayoutBuilderPtr builder, int particleSize) |
configure the size of particles (default 3) More... | |
void | runWithLayout (LayoutBuilderPtr builder) |
LayoutBuilderPtr buildLayout | ( | ) |
start to build a layout
BuilderPtr buildParticleGroup | ( | ) |
Create a builder for a particle group
HandlePtr createParticleGroup | ( | BuilderPtr | builder | ) |
void freeHandle | ( | HandlePtr | handle | ) |
Free a particle group
void onCollision_Convert | ( | HandlePtr | from, |
HandlePtr | to, | ||
HandlePtr | newFromType, | ||
HandlePtr | newToType | ||
) |
void onCollision_Move | ( | HandlePtr | from, |
HandlePtr | to, | ||
int | xFromStep, | ||
int | yFromStep, | ||
int | xToStep, | ||
int | yToStep | ||
) |
void onUpdate_Create | ( | HandlePtr | group, |
int | framesPerUpdate, | ||
int | updateLimit, | ||
HandlePtr | newParticle, | ||
int | count, | ||
int | xOff, | ||
int | yOff, | ||
int | xRange, | ||
int | yRange | ||
) |
void onUpdate_Lifetime | ( | HandlePtr | group, |
int | framesPerUpdate, | ||
int | updateLimit, | ||
int | framesAlive | ||
) |
void onUpdate_Move | ( | HandlePtr | group, |
int | framesPerUpdate, | ||
int | updateLimit, | ||
int | xStep, | ||
int | yStep | ||
) |
void onUpdate_RandomMove | ( | HandlePtr | group, |
int | framesPerUpdate, | ||
int | updateLimit, | ||
int | xRange, | ||
int | yRange | ||
) |
void runWithLayout | ( | LayoutBuilderPtr | builder | ) |
BuilderPtr withColor | ( | BuilderPtr | builder, |
int | r, | ||
int | g, | ||
int | b | ||
) |
Set a particle group to use a certain color
LayoutBuilderPtr withEditorOrientation | ( | LayoutBuilderPtr | builder, |
int | orient | ||
) |
configure whether horizontal or vertical orientation for the editor
BuilderPtr withName | ( | BuilderPtr | builder, |
const char * | name | ||
) |
Set a particle group to use a certain name
LayoutBuilderPtr withParticleSize | ( | LayoutBuilderPtr | builder, |
int | particleSize | ||
) |
configure the size of particles (default 3)
LayoutBuilderPtr withSize | ( | LayoutBuilderPtr | builder, |
int | w, | ||
int | h | ||
) |
set size of layout
LayoutBuilderPtr withWindowRatio | ( | LayoutBuilderPtr | builder, |
int | particlePCT | ||
) |
configure size of particle placing portion of the window. input is the percentage that will take up the particle screen