|
Re: forum code game
[Re: oliver2s]
#434903
12/30/13 00:07
12/30/13 00:07
|
Joined: May 2008
Posts: 2,113 NRW/Germany
alibaba
Expert
|
Expert
Joined: May 2008
Posts: 2,113
NRW/Germany
|
added an instuction in doSomething: while code:
#include <acknex.h>
void doSomething (ENTITY* ent);
void main()
{
fps_max = 60;
level_load(NULL);
ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
doSomething(ent);
}
void doSomething (ENTITY* ent)
{
while(1)
{
ent.pan+=time_step;
}
}
|
|
|
Re: forum code game
[Re: oliver2s]
#434920
12/30/13 10:15
12/30/13 10:15
|
Joined: Jul 2001
Posts: 6,904
HeelX
Senior Expert
|
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
added code
#include <acknex.h>
void doSomething (ENTITY* ent);
void main()
{
fps_max = 60;
level_load(NULL);
ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
doSomething(ent);
}
void doSomething (ENTITY* ent)
{
player = ent;
while(1)
{
ent.pan+=time_step;
wait(2+floor(random(10)));
}
}
Last edited by HeelX; 12/30/13 10:16.
|
|
|
Re: forum code game
[Re: HeelX]
#434922
12/30/13 11:59
12/30/13 11:59
|
Joined: Sep 2003
Posts: 9,859
FBL
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 9,859
|
added
vec_fill(ent.scale_x, 0.1 + abs(2 * sinv(ent.pan)));
code
#include <acknex.h>
void doSomething (ENTITY* ent);
void main()
{
fps_max = 60;
level_load(NULL);
ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
doSomething(ent);
}
void doSomething (ENTITY* ent)
{
player = ent;
while(1)
{
ent.pan+=time_step;
vec_fill(ent.scale_x, 0.1 + abs(2 * sinv(ent.pan)));
wait(2+floor(random(10)));
}
}
Last edited by Firoball; 12/30/13 13:12.
|
|
|
Re: forum code game
[Re: FBL]
#434925
12/30/13 13:43
12/30/13 13:43
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
Good! added: code:
#include <acknex.h>
void doSomething (ENTITY* ent);
void main()
{
fps_max = 60;
level_load(NULL);
camera.x = -96;
ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
doSomething(ent);
}
void doSomething (ENTITY* ent)
{
player = ent;
while(1)
{
ent.pan+=time_step;
vec_fill(ent.scale_x, 0.1 + abs(2 * sinv(ent.pan)));
wait(2+floor(random(10)));
}
}
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual Check out my new game: Pogostuck: Rage With Your Friends
|
|
|
Re: forum code game
[Re: Superku]
#434927
12/30/13 14:03
12/30/13 14:03
|
Joined: Sep 2003
Posts: 9,859
FBL
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 9,859
|
added:
ENTITY* entTerrain = ent_createterrain(NULL, vector(0, 0, -20), 45, 45, 100);
code:
#include <acknex.h>
void doSomething (ENTITY* ent);
void main()
{
fps_max = 60;
level_load(NULL);
camera.x = -96;
ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
ENTITY* entTerrain = ent_createterrain(NULL, vector(0, 0, -20), 45, 45, 100);
doSomething(ent);
}
void doSomething (ENTITY* ent)
{
player = ent;
while(1)
{
ent.pan+=time_step;
vec_fill(ent.scale_x, 0.1 + abs(2 * sinv(ent.pan)));
wait(2+floor(random(10)));
}
}
|
|
|
|