2 registered members (OptimusPrime, AndrewAMD),
14,580
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: forum code game
[Re: oliver2s]
#434949
12/30/13 17:47
12/30/13 17:47
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
Added:
if(ent.z-16*ent.scale_z < -32 || ent.z+16*ent.scale_z > exp(log(32)))
{
}
Code:
#include <acknex.h>
void doSomething (ENTITY* ent);
void movePlayer();
void main()
{
warn_level = 6;
fps_max = 60;
d3d_lines = 3;
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)));
c_setminmax(ent);
vec_set(sky_color,vector(random(255),random(255),random(255)));
ent.z+=random(ent.scale_x*2)-ent.scale_x;
if(ent.z-16*ent.scale_z < -32 || ent.z+16*ent.scale_z > exp(log(32)))
{
}
wait(2+floor(random(10)));
}
}
void deformTerrain(ENTITY* ent)
{
}
void movePlayer()
{
VECTOR speed;
speed.y = (key_a - key_d) * 3 * time_step;
}
"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]
#434951
12/30/13 18:22
12/30/13 18:22
|
Joined: Jul 2001
Posts: 6,904
HeelX
Senior Expert
|
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
added
video_set(sys_metrics(0) * 0.85, sys_metrics(1) * 0.85, 0, 2);
code:
#include <acknex.h>
void doSomething (ENTITY* ent);
void movePlayer();
void main()
{
warn_level = 6;
fps_max = 60;
d3d_lines = 3;
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);
video_set(sys_metrics(0) * 0.85, sys_metrics(1) * 0.85, 0, 2);
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)));
c_setminmax(ent);
vec_set(sky_color,vector(random(255),random(255),random(255)));
ent.z+=random(ent.scale_x*2)-ent.scale_x;
if(ent.z-16*ent.scale_z < -32 || ent.z+16*ent.scale_z > exp(log(32)))
{
}
wait(2+floor(random(10)));
}
}
void deformTerrain(ENTITY* ent)
{
}
void movePlayer()
{
VECTOR speed;
speed.y = (key_a - key_d) * 3 * time_step;
}
|
|
|
Re: forum code game
[Re: HeelX]
#434952
12/30/13 18:36
12/30/13 18:36
|
Joined: Sep 2003
Posts: 9,859
FBL
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 9,859
|
added
while(player != NULL)
{
}
code:
#include <acknex.h>
void doSomething (ENTITY* ent);
void movePlayer();
void main()
{
warn_level = 6;
fps_max = 60;
d3d_lines = 3;
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);
video_set(sys_metrics(0) * 0.85, sys_metrics(1) * 0.85, 0, 2);
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)));
c_setminmax(ent);
vec_set(sky_color,vector(random(255),random(255),random(255)));
ent.z+=random(ent.scale_x*2)-ent.scale_x;
if(ent.z-16*ent.scale_z < -32 || ent.z+16*ent.scale_z > exp(log(32)))
{
}
wait(2+floor(random(10)));
}
}
void deformTerrain(ENTITY* ent)
{
}
void movePlayer()
{
VECTOR speed;
while(player != NULL)
{
speed.y = (key_a - key_d) * 3 * time_step;
}
}
|
|
|
Re: forum code game
[Re: FBL]
#434967
12/31/13 08:05
12/31/13 08:05
|
Joined: May 2009
Posts: 5,377 Caucasus
3run
Senior Expert
|
Senior Expert
Joined: May 2009
Posts: 5,377
Caucasus
|
Someone just have to do this  added code:
#include <acknex.h>
void doSomething (ENTITY* ent);
void movePlayer();
void main()
{
warn_level = 6;
fps_max = 60;
d3d_lines = 3;
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);
video_set(sys_metrics(0) * 0.85, sys_metrics(1) * 0.85, 0, 2);
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)));
c_setminmax(ent);
vec_set(sky_color,vector(random(255),random(255),random(255)));
ent.z+=random(ent.scale_x*2)-ent.scale_x;
if(ent.z-16*ent.scale_z < -32 || ent.z+16*ent.scale_z > exp(log(32)))
{
}
wait(2+floor(random(10)));
}
}
void deformTerrain(ENTITY* ent)
{
}
void movePlayer()
{
VECTOR speed;
while(player != NULL)
{
speed.y = (key_a - key_d) * 3 * time_step;
wait(1);
}
}
|
|
|
Re: forum code game
[Re: 3run]
#434970
12/31/13 10:29
12/31/13 10:29
|
Joined: Aug 2002
Posts: 3,258 Mainz
oliver2s
OP
Expert
|
OP
Expert
Joined: Aug 2002
Posts: 3,258
Mainz
|
Added call
#include <acknex.h>
void doSomething (ENTITY* ent);
void movePlayer();
void main()
{
warn_level = 6;
fps_max = 60;
d3d_lines = 3;
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);
video_set(sys_metrics(0) * 0.85, sys_metrics(1) * 0.85, 0, 2);
doSomething(ent);
}
void doSomething (ENTITY* ent)
{
player = ent;
movePlayer();
while(1)
{
ent.pan+=time_step;
vec_fill(ent.scale_x, 0.1 + abs(2 * sinv(ent.pan)));
c_setminmax(ent);
vec_set(sky_color,vector(random(255),random(255),random(255)));
ent.z+=random(ent.scale_x*2)-ent.scale_x;
if(ent.z-16*ent.scale_z < -32 || ent.z+16*ent.scale_z > exp(log(32)))
{
}
wait(2+floor(random(10)));
}
}
void deformTerrain(ENTITY* ent)
{
}
void movePlayer()
{
VECTOR speed;
while(player != NULL)
{
speed.y = (key_a - key_d) * 3 * time_step;
wait(1);
}
}
|
|
|
Re: forum code game
[Re: oliver2s]
#434981
12/31/13 13:53
12/31/13 13:53
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
Added:
void drawText3DRotate(STRING* str_txt, VECTOR* pos, COLOR* color)
{
}
#include <acknex.h>
void doSomething (ENTITY* ent);
void movePlayer();
void main()
{
warn_level = 6;
fps_max = 60;
d3d_lines = 3;
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);
video_set(sys_metrics(0) * 0.85, sys_metrics(1) * 0.85, 0, 2);
doSomething(ent);
}
void doSomething (ENTITY* ent)
{
player = ent;
movePlayer();
while(1)
{
ent.pan+=time_step;
vec_fill(ent.scale_x, 0.1 + abs(2 * sinv(ent.pan)));
c_setminmax(ent);
vec_set(sky_color,vector(random(255),random(255),random(255)));
ent.z+=random(ent.scale_x*2)-ent.scale_x;
if(ent.z-16*ent.scale_z < -32 || ent.z+16*ent.scale_z > exp(log(32)))
{
}
wait(2+floor(random(10)));
}
}
void deformTerrain(ENTITY* ent)
{
}
void movePlayer()
{
VECTOR speed;
while(player != NULL)
{
speed.y = (key_a - key_d) * 3 * time_step;
wait(1);
}
}
void drawText3DRotate(STRING* str_txt, VECTOR* pos, COLOR* color)
{
}
"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]
#434982
12/31/13 14:02
12/31/13 14:02
|
Joined: Sep 2003
Posts: 9,859
FBL
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 9,859
|
Added:
void drawText3DRotate(STRING* str_txt, VECTOR* pos, COLOR* color);
#include <acknex.h>
void doSomething (ENTITY* ent);
void movePlayer();
void drawText3DRotate(STRING* str_txt, VECTOR* pos, COLOR* color);
void main()
{
warn_level = 6;
fps_max = 60;
d3d_lines = 3;
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);
video_set(sys_metrics(0) * 0.85, sys_metrics(1) * 0.85, 0, 2);
doSomething(ent);
}
void doSomething (ENTITY* ent)
{
player = ent;
movePlayer();
while(1)
{
ent.pan+=time_step;
vec_fill(ent.scale_x, 0.1 + abs(2 * sinv(ent.pan)));
c_setminmax(ent);
vec_set(sky_color,vector(random(255),random(255),random(255)));
ent.z+=random(ent.scale_x*2)-ent.scale_x;
if(ent.z-16*ent.scale_z < -32 || ent.z+16*ent.scale_z > exp(log(32)))
{
}
wait(2+floor(random(10)));
}
}
void deformTerrain(ENTITY* ent)
{
}
void movePlayer()
{
VECTOR speed;
while(player != NULL)
{
speed.y = (key_a - key_d) * 3 * time_step;
wait(1);
}
}
void drawText3DRotate(STRING* str_txt, VECTOR* pos, COLOR* color)
{
}
|
|
|
Re: forum code game
[Re: FBL]
#434985
12/31/13 14:22
12/31/13 14:22
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
Added:
drawText3DRotate("Hold your horses!", ent.x, vector(random(255),random(255),random(255)));
#include <acknex.h>
void doSomething (ENTITY* ent);
void movePlayer();
void drawText3DRotate(STRING* str_txt, VECTOR* pos, COLOR* color);
void main()
{
warn_level = 6;
fps_max = 60;
d3d_lines = 3;
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);
video_set(sys_metrics(0) * 0.85, sys_metrics(1) * 0.85, 0, 2);
doSomething(ent);
}
void doSomething (ENTITY* ent)
{
player = ent;
movePlayer();
while(1)
{
ent.pan+=time_step;
vec_fill(ent.scale_x, 0.1 + abs(2 * sinv(ent.pan)));
c_setminmax(ent);
vec_set(sky_color,vector(random(255),random(255),random(255)));
ent.z+=random(ent.scale_x*2)-ent.scale_x;
if(ent.z-16*ent.scale_z < -32 || ent.z+16*ent.scale_z > exp(log(32)))
{
drawText3DRotate("Hold your horses!", ent.x, vector(random(255),random(255),random(255)));
}
wait(2+floor(random(10)));
}
}
void deformTerrain(ENTITY* ent)
{
}
void movePlayer()
{
VECTOR speed;
while(player != NULL)
{
speed.y = (key_a - key_d) * 3 * time_step;
wait(1);
}
}
void drawText3DRotate(STRING* str_txt, VECTOR* pos, COLOR* color)
{
}
"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]
#434986
12/31/13 15:11
12/31/13 15:11
|
Joined: Sep 2003
Posts: 9,859
FBL
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 9,859
|
Added:
void deformTerrain(ENTITY* ent);
#include <acknex.h>
void doSomething (ENTITY* ent);
void deformTerrain(ENTITY* ent);
void movePlayer();
void drawText3DRotate(STRING* str_txt, VECTOR* pos, COLOR* color);
void main()
{
warn_level = 6;
fps_max = 60;
d3d_lines = 3;
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);
video_set(sys_metrics(0) * 0.85, sys_metrics(1) * 0.85, 0, 2);
doSomething(ent);
}
void doSomething (ENTITY* ent)
{
player = ent;
movePlayer();
while(1)
{
ent.pan+=time_step;
vec_fill(ent.scale_x, 0.1 + abs(2 * sinv(ent.pan)));
c_setminmax(ent);
vec_set(sky_color,vector(random(255),random(255),random(255)));
ent.z+=random(ent.scale_x*2)-ent.scale_x;
if(ent.z-16*ent.scale_z < -32 || ent.z+16*ent.scale_z > exp(log(32)))
{
drawText3DRotate("Hold your horses!", ent.x, vector(random(255),random(255),random(255)));
}
wait(2+floor(random(10)));
}
}
void deformTerrain(ENTITY* ent)
{
}
void movePlayer()
{
VECTOR speed;
while(player != NULL)
{
speed.y = (key_a - key_d) * 3 * time_step;
wait(1);
}
}
void drawText3DRotate(STRING* str_txt, VECTOR* pos, COLOR* color)
{
}
|
|
|
Re: forum code game
[Re: FBL]
#435064
01/02/14 14:46
01/02/14 14:46
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
Added:
speed.z += (speed.y/time_step*2.5*player.scale_z-speed.z)*0.25*time_step;
Code:
#include <acknex.h>
void doSomething (ENTITY* ent);
void deformTerrain(ENTITY* ent);
void movePlayer();
void drawText3DRotate(STRING* str_txt, VECTOR* pos, COLOR* color);
void main()
{
warn_level = 6;
fps_max = 60;
d3d_lines = 3;
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);
video_set(sys_metrics(0) * 0.85, sys_metrics(1) * 0.85, 0, 2);
doSomething(ent);
}
void doSomething (ENTITY* ent)
{
player = ent;
movePlayer();
while(1)
{
ent.pan+=time_step;
vec_fill(ent.scale_x, 0.1 + abs(2 * sinv(ent.pan)));
c_setminmax(ent);
vec_set(sky_color,vector(random(255),random(255),random(255)));
ent.z+=random(ent.scale_x*2)-ent.scale_x;
if(ent.z-16*ent.scale_z < -32 || ent.z+16*ent.scale_z > exp(log(32)))
{
drawText3DRotate("Hold your horses!", ent.x, vector(random(255),random(255),random(255)));
}
wait(2+floor(random(10)));
}
}
void deformTerrain(ENTITY* ent)
{
}
void movePlayer()
{
VECTOR speed;
vec_zero(speed);
while(player != NULL)
{
speed.y = (key_a - key_d) * 3 * time_step;
speed.z += (speed.y/time_step*2.5*player.scale_z-speed.z)*0.25*time_step;
wait(1);
}
}
void drawText3DRotate(STRING* str_txt, VECTOR* pos, COLOR* color)
{
}
Last edited by Superku; 01/02/14 14:48.
"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
|
|
|
|