Gamestudio Links
Zorro Links
Newest Posts
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
1 registered members (AbrahamR), 717 guests, and 4 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
DraV tutorial 1 #251127
02/11/09 18:03
02/11/09 18:03
Joined: Feb 2008
Posts: 337
V
Vadim647 Offline OP
Senior Member
Vadim647  Offline OP
Senior Member
V

Joined: Feb 2008
Posts: 337
Here's the first release of my gfx-related scripts. Everything described, and I included a basic tutorial that shows you the way of doing things thru clock creation tutorial smile

I've done everything to make it simple, understandable, and powerfull in usage.
Download [49kb]
Don't forget to leave your C&C's here, and also ideas for new functions =)


I switched to other account since marth 2010. Guess which.
Re: DraV tutorial 1 [Re: Vadim647] #251140
02/11/09 18:27
02/11/09 18:27
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Wow! Good work! smile

Re: DraV tutorial 1 [Re: Cowabanga] #251160
02/11/09 20:16
02/11/09 20:16
Joined: Apr 2008
Posts: 437
dracula Offline
Senior Member
dracula  Offline
Senior Member

Joined: Apr 2008
Posts: 437
Great contribution !

Re: DraV tutorial 1 [Re: dracula] #251191
02/11/09 21:20
02/11/09 21:20
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Very impressing!
It is not only a tutorial, it is a set of functions that you wrote, right?

Re: DraV tutorial 1 [Re: Pappenheimer] #251231
02/12/09 06:49
02/12/09 06:49
Joined: Jul 2007
Posts: 424
EUROPE
maslone1 Offline
Senior Member
maslone1  Offline
Senior Member

Joined: Jul 2007
Posts: 424
EUROPE
Thanx! Very nice contribution!


A8c, Blender, FlStudio, Unity3d
Re: DraV tutorial 1 [Re: maslone1] #251258
02/12/09 09:44
02/12/09 09:44
Joined: May 2008
Posts: 331
Lithuania, Vilnius
Jaxas Offline
Senior Member
Jaxas  Offline
Senior Member

Joined: May 2008
Posts: 331
Lithuania, Vilnius
Realy,nice work wink


The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)
Re: DraV tutorial 1 [Re: maslone1] #251261
02/12/09 10:06
02/12/09 10:06
Joined: May 2008
Posts: 331
Lithuania, Vilnius
Jaxas Offline
Senior Member
Jaxas  Offline
Senior Member

Joined: May 2008
Posts: 331
Lithuania, Vilnius
That's what i waiting for! Realy,nice work wink


The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)
Re: DraV tutorial 1 [Re: Jaxas] #251348
02/12/09 17:46
02/12/09 17:46
Joined: Feb 2008
Posts: 337
V
Vadim647 Offline OP
Senior Member
Vadim647  Offline OP
Senior Member
V

Joined: Feb 2008
Posts: 337
@Everyone : Thanks!
@Pappenheimer: yeah, it's set of function I'm developing now smile
Btw, here's the 'first game' using it's functionality:
Click to reveal..
First DraV game. Be sure to place into folder with drav_functions.c
Code:
#include <acknex.h>
#include <default.c>
//Includes
#include "drav_functions.c"
var i;
VECTOR t_vec,t_vec2;
VECTOR color1,color2,color3;

function drav_unit0()
{
	drav_set_color(color2);
	drav_triangle(vector(0,5,0),vector(0,-5,0),vector(-my.skill1*2,0,0));
	drav_triangle(vector(0,6,0),vector(0,-6,0),vector(-my.skill1*2-1,0,0));
	drav_set_color(color1);
	drav_4point(vector(0,8,0),vector(16,3,0),vector(16,-3,0),vector(0,-8,0));
	drav_triangle(vector(2,4,0),vector(2,-4,0),vector(10,0,0));
}

function follower()
{
	my.skill1 = 0;
	my.skill3 = 45;
	while (1)
	{
		my.skill2 = vec_dist(my.x,mouse_pos.x);
		vec_set(t_vec,mouse_pos.x);
		vec_sub(t_vec,my.x);
		vec_to_angle(t_vec2,t_vec);
		if (my.skill2 > 8) my.skill3 = t_vec2.x;
		if (my.skill2 > 32)
		{
			my.skill1 = minv(my.skill1+0.25,4);
		}
		else
		{
			my.skill1 = minv(my.skill1,my.skill2);
			my.skill1 *= 0.85;
			if (my.skill1 < 0.5) my.skill1 = 0;
		}
		vec_set(t_vec,vector(my.skill1,0,0));
		vec_rotate(t_vec,vector(my.skill3,0,0));
		vec_add(my.x,t_vec);
		vec_set(drav_ofs,my.x);
		drav_angle.x = my.skill3;
		drav_unit0();
		wait(1);
	}
}

function star()
{
	my.skill1 = random(360);
	my.skill2 = random(0.6)+0.1;
	my.skill3 = 4 + random(6);
	while (1)
	{
		my.x -= 1;
		my.y += 0.5;
		if (my.x < -10) my.x += 660;
		if (my.y > 490) my.y -= 500;
		drav_angle.x = my.skill1;
		drav_set_alpha(my.skill2);
		drav_set_color(color3);
		vec_set(drav_ofs,my.x);
		drav_circle_ray(nullvector,0,my.skill3,7);
		drav_set_alpha(1);
		wait(1);
	}
}

function main()
{
	fps_max = 60;
	mouse_mode = 4;
	level_load(NULL);
	wait(3);
	draw_textmode("Arial",0,14,100);
	vec_set(color1,vector(0,255,192));
	vec_set(color2,vector(0,192,255));
	vec_set(color3,vector(255,255,255));
	vec_set(sky_color,vector(64,64,64));
	drav_reset();
	drav_set_color(vector(0,255,192));
	for (i=0;i<=100;i+=1) ent_create(NULL,vector(random(640),random(480),0),star);
	ent_create(NULL,vector(32,32,0),follower);
	while(1)
	{
		draw_text("Epic win -> first DraV game :)\nI #define a new way in drawing simplistic graphics",4,4,color1);
		wait(1);
	}
}



I switched to other account since marth 2010. Guess which.
Re: DraV tutorial 1 [Re: Vadim647] #258482
03/30/09 21:42
03/30/09 21:42
Joined: Oct 2006
Posts: 175
G
Gumby22don Offline
Member
Gumby22don  Offline
Member
G

Joined: Oct 2006
Posts: 175
hi - this file doesn't appear to be there anymore - do you have access to a mirror?

Don
have a great day

Re: DraV tutorial 1 [Re: Gumby22don] #258531
03/31/09 13:02
03/31/09 13:02
Joined: Feb 2008
Posts: 337
V
Vadim647 Offline OP
Senior Member
Vadim647  Offline OP
Senior Member
V

Joined: Feb 2008
Posts: 337
that's temporary, due to server maintance (it will be avaible tomorrow).


I switched to other account since marth 2010. Guess which.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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