More actions
m (Text replacement - "Category:PSP homebrew demos" to "") |
m (Text replacement - "Category:Homebrew platform games on PSP" to "") |
||
Line 57: | Line 57: | ||
[[Category:PSP homebrew games]] | [[Category:PSP homebrew games]] | ||
Revision as of 08:30, 8 Mayıs 2024
SANiK's Mario Demo | |
---|---|
General | |
Author | SANiK |
Type | Demos |
Version | 2007 |
License | Mixed |
Last Updated | 2007/02/11 |
Links | |
Download | |
Website | |
A 3D Mario game tech demo.
User guide
If one is to continue the project/start from scratch, take a look at poly.c and math.c.
The only snippet of code that's really needed is:
void reflex(float *a_matrix, float a_x, float a_y, float a_z) { //Apply the matrix rotation to the point //Requires a custom matrix library vector_matrix_mul(a_x, a_y, a_z, a_matrix); //Apply the reflex lens formula a_z=a_z - ((((a_x) * (a_x)) + ((a_y)*(a_y)))*0.05f); //The 0.05f = Lens curvature //PSP screen stretch/skew a_x*=1.25f; a_y*=1.05f; //Draw the vertex glVertex3f(a_x, a_y, a_z); }
Controls
Cross - Jump
D-Pad - Move
Start - Quit
Screenshots
Known issues
It lags at certain points.