Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Ayumi), 877 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 6 1 2 3 4 5 6
forum code game #434890
12/29/13 18:21
12/29/13 18:21
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
I wanna start a little experiment and see what the results will be or if it works at all.

Following forum game:
With every post in this thread, a programm code should grown. This means everyone who makes a post in this thread adds another piece of code.

Here are some rules:
  • only one logical code line per post (a code line ends a semicolon) OR an if comparison (but without instructions, instruction can be added in the next post) OR a loop (while, do, for, also without instructions inside the winged brackets, they can be added in the next post) OR a new function (with parameters but not with instructions, they still can be added in the next post)
  • code must be compilable with A8.4 commercial version, if the code gives errors, the made post does not count
  • you can add your piece of code whereever you want, you don't need to add it at the end of the current code
  • you are not allowed to delete previous added code or modify any code
  • you have to post the complete code, including your added stuff with the forums code tags. To let other users see what you've added, you have to post the stuff you added in another code-tag.
  • use code indention for different scopes
  • you are not allowed to make two or more posts in a row, you have to wait until another user made a post after your's

I begin with the first post

Re: forum code game [Re: oliver2s] #434891
12/29/13 18:22
12/29/13 18:22
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
stuff I added:
Code:
void main()
{
	
}



The whole code:
Code:
void main()
{
	
}


Re: forum code game [Re: oliver2s] #434892
12/29/13 18:30
12/29/13 18:30
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
That's a neat idea!

Stuff I added:
Code:
fps_max = 60;



Code:
void main()
{
	fps_max = 60;
}



"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] #434893
12/29/13 19:08
12/29/13 19:08
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
Stuff I added:
Code:
level_load(NULL);



Code:
void main()
{
	fps_max = 60;
	level_load(NULL);
}



Visit my site: www.masterq32.de
Re: forum code game [Re: MasterQ32] #434894
12/29/13 19:43
12/29/13 19:43
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
Stuff I added:
Code:
ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);



Code:
void main()
{
	fps_max = 60;
	level_load(NULL);
	
	ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
}


Re: forum code game [Re: oliver2s] #434896
12/29/13 20:02
12/29/13 20:02
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
We forgot the header tongue

Stuff I added:
Code:
#include <acknex.h>



Code:
#include <acknex.h>

void main()
{
	fps_max = 60;
	level_load(NULL);
	
	ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
}



Visit my site: www.masterq32.de
Re: forum code game [Re: MasterQ32] #434898
12/29/13 21:08
12/29/13 21:08
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
added:
Code:
void doSomething (ENTITY* ent)
{
}


code:
Code:
#include <acknex.h>

void main()
{
	fps_max = 60;
	level_load(NULL);
	
	ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
}

void doSomething (ENTITY* ent)
{
}


Re: forum code game [Re: HeelX] #434899
12/29/13 22:27
12/29/13 22:27
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
added prototype:
Code:
void doSomething (ENTITY* ent);



Code:
#include <acknex.h>

void doSomething (ENTITY* ent);

void main()
{
	fps_max = 60;
	level_load(NULL);
	
	ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
}

void doSomething (ENTITY* ent)
{
}


Re: forum code game [Re: oliver2s] #434900
12/29/13 23:03
12/29/13 23:03
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
added call:
Code:
doSomething(ent);



code:
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)
{
}


Re: forum code game [Re: HeelX] #434901
12/29/13 23:14
12/29/13 23:14
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
added while-loop in doSomething:
Code:
while(1)
{
}



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)
	{
	}
}


Page 1 of 6 1 2 3 4 5 6

Gamestudio download | chip programmers | 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