Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

SANiKs Mario Demo PSP: Difference between revisions

From GameBrew
(Created page with "{{Infobox PSP Homebrews |title=SANiK's Mario Demo |image=smariodemo2.png |description=3D Mario game tech demo. |author=SANiK |lastupdated=2007/02/11 |type=Demos |version=2007...")
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 8: Line 8:
|version=2007
|version=2007
|license=Mixed
|license=Mixed
|download=https://dlhb.gamebrew.org/psphomebrew/smariodemo.7z
|download=https://dlhb.gamebrew.org/psphomebrew/smario_demo.zip
|website=https://www.dcemu.co.uk/vbulletin/threads/52685-SANiK-s-Mario-Demo
|website=https://www.dcemu.co.uk/vbulletin/threads/52685-SANiK-s-Mario-Demo
|source=
}}
}}
A 3D Mario game tech demo.
A 3D Mario game tech demo.
Line 18: Line 17:


The only snippet of code that's really needed is:
The only snippet of code that's really needed is:
<br>
<pre>
void reflex(float *a_matrix, float a_x, float a_y, float a_z)
void reflex(float *a_matrix, float a_x, float a_y, float a_z)
{
{
Line 36: Line 35:
glVertex3f(a_x, a_y, a_z);
glVertex3f(a_x, a_y, a_z);
}
}
</br>
</pre>


==Controls==
==Controls==
Line 51: Line 50:


==Known issues==
==Known issues==
It lags at certain points but could be sped up 90%.
It lags at certain points.


==External links==
==External links==
* DCEmu - https://www.dcemu.co.uk/vbulletin/threads/52685-SANiK-s-Mario-Demo
* DCEmu - https://www.dcemu.co.uk/vbulletin/threads/52685-SANiK-s-Mario-Demo
[[Category:PSP homebrew games]]
[[Category:Homebrew platform games on PSP]]
[[Category:PSP homebrew demos]]

Latest revision as of 02:34, 21 Haziran 2024

SANiK's Mario Demo
Smariodemo2.png
General
AuthorSANiK
TypeDemos
Version2007
LicenseMixed
Last Updated2007/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

smariodemo3.png

smariodemo4.png

Known issues

It lags at certain points.

External links

Advertising: