Gamestudio Links
Zorro Links
Newest Posts
Blind Zorro Window
by AndrewAMD. 09/11/26 15:30
Parent/child object
by 3run. 09/11/26 06:21
ZorroGPT
by TipmyPip. 09/09/26 14:35
[MED] Import from FBX (2010) missing!!!
by USER0328. 09/03/26 18:03
Purchase A8 full licence version
by ukgamer. 08/30/26 14:27
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (USER0328), 2,677 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
speedx, liop, Bauer097, riggi89, shuhari
19233 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 5 of 6 1 2 3 4 5 6
Re: forum code game [Re: Superku] #435072
01/02/14 17:02
01/02/14 17:02
Joined: Aug 2003
Posts: 7,440
Red Dwarf
Michael_Schwarz Offline
Senior Expert
Michael_Schwarz  Offline
Senior Expert

Joined: Aug 2003
Posts: 7,440
Red Dwarf
Added:
Code:
void moveEnemy();



Code:
Code:
#include <acknex.h>

void doSomething (ENTITY* ent);
void deformTerrain(ENTITY* ent);
void movePlayer();
void moveEnemy();
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)
{
}



"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku
Re: forum code game [Re: Michael_Schwarz] #435073
01/02/14 17:13
01/02/14 17:13
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Added:
Code:
#define PRAGMA_PATH "%EXE_DIR%\templates\images\"



Code:
Code:
#include <acknex.h>
#define PRAGMA_PATH "%EXE_DIR%\templates\images\"

void doSomething (ENTITY* ent);
void deformTerrain(ENTITY* ent);
void movePlayer();
void moveEnemy();
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)
{
}



btw: Felix cheated and added two lines grin

Re: forum code game [Re: FBL] #435075
01/02/14 17:17
01/02/14 17:17
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Haha oops! blush


"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] #435080
01/02/14 18:40
01/02/14 18:40
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
You should call this the "Add as much empty prototypes as possible game" tongue
*SCNR*


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: forum code game [Re: WretchedSid] #435107
01/03/14 00:19
01/03/14 00:19
Joined: Feb 2005
Posts: 3,687
Hessen, Germany
T
Tempelbauer Offline
Expert
Tempelbauer  Offline
Expert
T

Joined: Feb 2005
Posts: 3,687
Hessen, Germany
Can i win the game if i add this?

Code:
#include "tusc.h"


Re: forum code game [Re: Tempelbauer] #435112
01/03/14 01:49
01/03/14 01:49
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Added:
Code:
c_move(player,nullvector,vector(0,0,speed.z*time_step),IGNORE_PASSABLE);



Code:
Code:
#include <acknex.h>
#define PRAGMA_PATH "%EXE_DIR%\templates\images\"

void doSomething (ENTITY* ent);
void deformTerrain(ENTITY* ent);
void movePlayer();
void moveEnemy();
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;
		c_move(player,nullvector,vector(0,0,speed.z*time_step),IGNORE_PASSABLE);
		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] #435140
01/03/14 12:25
01/03/14 12:25
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Added:
Code:
while(ent != NULL)
{
}



Code:
Code:
#include <acknex.h>
#define PRAGMA_PATH "%EXE_DIR%\templates\images\"

void doSomething (ENTITY* ent);
void deformTerrain(ENTITY* ent);
void movePlayer();
void moveEnemy();
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)
{
	while(ent != NULL)
	{
	}
}

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;
		c_move(player,nullvector,vector(0,0,speed.z*time_step),IGNORE_PASSABLE);
		wait(1);
	}
	
}

void drawText3DRotate(STRING* str_txt, VECTOR* pos, COLOR* color)
{
}


Re: forum code game [Re: FBL] #435158
01/03/14 15:37
01/03/14 15:37
Joined: May 2009
Posts: 5,378
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,378
Caucasus
Added:
Code:
wait(1);


Code:
Code:
#include <acknex.h>
#define PRAGMA_PATH "%EXE_DIR%\templates\images\"

void doSomething (ENTITY* ent);
void deformTerrain(ENTITY* ent);
void movePlayer();
void moveEnemy();
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)
{
	while(ent != NULL)
	{
              wait(1);
	}
}

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;
		c_move(player,nullvector,vector(0,0,speed.z*time_step),IGNORE_PASSABLE);
		wait(1);
	}
	
}

void drawText3DRotate(STRING* str_txt, VECTOR* pos, COLOR* color)
{
}

[/quote]

Last edited by 3run; 01/03/14 15:58. Reason: :<

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: forum code game [Re: 3run] #435159
01/03/14 15:45
01/03/14 15:45
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
Added:
Code:
speed.y



I think this is against the rules. You modified code.

Re: forum code game [Re: oliver2s] #435163
01/03/14 15:57
01/03/14 15:57
Joined: May 2009
Posts: 5,378
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,378
Caucasus
Ok, sorry, I missed that part in rules.. tongue Edited post above.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Page 5 of 6 1 2 3 4 5 6

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1