Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, alibaba, Quad), 761 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
[FREE] My contribution thread #245201
01/08/09 20:21
01/08/09 20:21
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline OP
Expert
Xarthor  Offline OP
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Hi,
so I decided to revamp my blog (link further down + in sig) and open up a thread here where I'll post about contributions that I'll make.

Here is my first:
I wrote a little camera control snippet (you can also find it in Starting with Gamestudio).
It rotates the camera around a specific position and keeps it at a certain distance. Meanwhile the camera always faces this position.

Here my blog article:
http://xarthor.wordpress.com/2009/01/08/lite-c-camera-movement-1/

My blog:
http://xarthor.wordpress.com

And finaly the snippet:
Code:
VECTOR* cam_center = { x=0; y=0; z=0; }
VECTOR* cam_temp = { x=0; y=0; z=0; }

var cam_radius = 100;
var cam_angle = 0;
var cam_speed[2] = { 8, 5 };	// [0]: rotation speed, [1]: speed for changing height

function control_Camera()
{
	while(1)
	{
		camera.z += cam_speed[1] * (key_cuu - key_cud) * time_step;
		
		cam_angle += cam_speed[0] * (key_cur - key_cul) * time_step;
		cam_angle = ang(cam_angle);
		
		camera.x = cam_center.x + cam_radius * sin(cam_angle);
		camera.y = cam_center.y + cam_radius * cos(cam_angle);
		
		vec_set(cam_temp,cam_center);
		vec_sub(cam_temp,camera.x);
		vec_to_angle(camera.pan,cam_temp);
		
		wait(1);
	}
}


Thanks for reading.

Re: [FREE] My contribution thread [Re: Xarthor] #245730
01/11/09 15:49
01/11/09 15:49
Joined: Apr 2008
Posts: 437
dracula Offline
Senior Member
dracula  Offline
Senior Member

Joined: Apr 2008
Posts: 437
I changed it to an action and added it to small.c (from the samples folder) and it worked fine

thanks

Drac.

Re: [FREE] My contribution thread [Re: dracula] #253996
02/28/09 10:30
02/28/09 10:30
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline OP
Expert
Xarthor  Offline OP
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
After some time I wrote a little Frogger like game today and would like to share the code.

More infos:
http://xarthor.wordpress.com/2009/02/28/c-script-frogger-like-application/

Download:
http://home.arcor.de/xarthor/downloads/Frogger.zip

edit:
Just took a look at the clock and wanted to add that this was created in ca. 2 hours (programmers art + code)

Last edited by Xarthor; 02/28/09 10:33.
Re: [FREE] My contribution thread [Re: Xarthor] #254000
02/28/09 11:14
02/28/09 11:14
Joined: Feb 2006
Posts: 385
Oldenburg,Germany
Ralph Offline
Senior Member
Ralph  Offline
Senior Member

Joined: Feb 2006
Posts: 385
Oldenburg,Germany
I convert the code to lite-c.
Download the lite-c version here

Greetings Ralph.

[lite-C] HowTo: Tile based movement [Re: Xarthor] #256738
03/18/09 18:02
03/18/09 18:02
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline OP
Expert
Xarthor  Offline OP
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Hi folks,
today I had the idea to write a small HowTo guide about programming a tiled based movement using lite-C and the A7 engine.
You can download the guide from my blog: http://xarthor.wordpress.com
The zip file includes the guide as PDF file aswell as a source folder including a level (wmp and wmb files), the basic player entity and the final code, which is explained in the guide.
I hope you have fun reading it and might be inspired to create games using this kind of movement.

I attached a screenshot of my test level to this post.

cheers!

Attached Files shot_1.jpg
Re: [lite-C] HowTo: Tile based movement [Re: Xarthor] #256743
03/18/09 18:46
03/18/09 18:46
Joined: Apr 2008
Posts: 437
dracula Offline
Senior Member
dracula  Offline
Senior Member

Joined: Apr 2008
Posts: 437
Some great contributions, thanks !

Maybe you could make a snake or pac-man type game ?

Cheers

Last edited by dracula; 03/18/09 18:46.
[lite-C] Source-Code: AliensCave [Re: dracula] #264707
05/07/09 16:58
05/07/09 16:58
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline OP
Expert
Xarthor  Offline OP
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Hi,
sorry for digging out this old thread, but I felt its better to post each of my contributions into this single on than creating one for each new contribution (mainly because they are not such a big of a deal anyway).

So here is todays contribution: The entire source of AliensCave.
If you don't remember it:
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Main=30281&Number=249156#Post249156

You can download the source here:
http://www.file-upload.net/download-1847658/AliensCave.zip.html

The entire thing is open source.
Use it for whatever you want, but don't sell as it is and do not distribute it in any way as your own.
You may use the source code, extend it or just rip it apart, feel free to do so.
Credits not needed, but are always welcome wink

Have fun

Last edited by Xarthor; 08/30/09 08:55. Reason: new download link
[lite-C] HowTo: Tile based movement re-published [Re: Xarthor] #287121
08/30/09 08:57
08/30/09 08:57
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline OP
Expert
Xarthor  Offline OP
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Hi,
the download link for the tile-based movement how-to changed.
You can download it here:
http://www.file-upload.net/download-1855980/HowTo-TBM.zip.html

And read more about it here:
http://xarthor.wordpress.com/contributions/tutorials/#tileBased

Thank you for your interest.

[lite-C] AUM 2 - Stratego Code Convert [Re: Xarthor] #317549
04/01/10 09:20
04/01/10 09:20
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline OP
Expert
Xarthor  Offline OP
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Hi,

I converted the Stratego Code from AUM 2 to lite-C.
You can download the whole project (including all necessary files) here:


Original AUM 2:
http://aum.conitec.net/aum2/english/aum2/index.html

[lite-C|open source] Tanks - a retro 2D - 2 player game [Re: Xarthor] #378696
07/25/11 19:28
07/25/11 19:28
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline OP
Expert
Xarthor  Offline OP
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Hi,
when I saw Joozey's thread about tiling I remembered an old prototype I made using simple draw commands. It a two player "kill the other one" game. Basicly two tanks in a landscape trying to shoot each other (landscape is destroyable).
As its rotting for some time on my hard-disk I decided to release the source (mostly commented lite-C code) maybe someone can learn from it or even learn how not to do something wink
Its an almost finished game (sounds are there just not in use as I had some problems, I can't remember which though). The menu is not finished but the basic interaction is there. The tank bullets fly in some sort of physical correct parabola.

Terms of use: Do not sell or release it as your own. If you make use of the code, fine but not re-release as is (or simply put in your name in the menu). But other than that, use it whatever way you like.

Some screenshots:






Download link:
http://solidfiles.com/d/2e655/

Interaction:
Cursor left/right to rotate canon (aim direction marked by white line) - for each tank

Cursor up/down to increase/decrease power of shot (speed wise, length of line indicates speed, the longer the faster the start velocity of the bullet)

Have a nice day!

Last edited by Xarthor; 07/25/11 19:36. Reason: corrected third screenshot url
Page 1 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

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