[FREE] My contribution thread

Posted By: Xarthor

[FREE] My contribution thread - 01/08/09 20:21

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.
Posted By: dracula

Re: [FREE] My contribution thread - 01/11/09 15:49

I changed it to an action and added it to small.c (from the samples folder) and it worked fine

thanks

Drac.
Posted By: Xarthor

Re: [FREE] My contribution thread - 02/28/09 10:30

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)
Posted By: Ralph

Re: [FREE] My contribution thread - 02/28/09 11:14

I convert the code to lite-c.
Download the lite-c version here

Greetings Ralph.
Posted By: Xarthor

[lite-C] HowTo: Tile based movement - 03/18/09 18:02

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 picture shot_1.jpg
Posted By: dracula

Re: [lite-C] HowTo: Tile based movement - 03/18/09 18:46

Some great contributions, thanks !

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

Cheers
Posted By: Xarthor

[lite-C] Source-Code: AliensCave - 05/07/09 16:58

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
Posted By: Xarthor

[lite-C] HowTo: Tile based movement re-published - 08/30/09 08:57

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.
Posted By: Xarthor

[lite-C] AUM 2 - Stratego Code Convert - 04/01/10 09:20

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
Posted By: Xarthor

[lite-C|open source] Tanks - a retro 2D - 2 player game - 07/25/11 19:28

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!
Posted By: 3run

Re: [lite-C|open source] Tanks - a retro 2D - 2 player game - 07/25/11 19:35

Thank you dude, I always wanted to start learning 2D games, this will give me a start!
Posted By: lostclimate

Re: [lite-C|open source] Tanks - a retro 2D - 2 player game - 07/25/11 21:45

oh the days of spending lunch at school on the computers with like 8 people all playing pocket tanks *nostalgic*
Posted By: 3run

Re: [lite-C|open source] Tanks - a retro 2D - 2 player game - 03/03/13 23:05

Tile-based movement tutorial link is down.. Can anyone reupload it?
© 2024 lite-C Forums