2D Fighter/Arcade game: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (categorized)
Line 32: Line 32:


That combined with the patches provided in the Antfarm patch file should have your bare-bones 2d platformer up and running.
That combined with the patches provided in the Antfarm patch file should have your bare-bones 2d platformer up and running.
[[Category:Programming]]

Revision as of 12:27, 28 January 2008

This is a place holder for tutorials on creating a sideview or side scrolling style game with the source engine.

Antfarm Source

The Basic Idea and code for such a mod can be found Here. Be aware, Antfarm source is in no way complete. For an online lag free third person experience one must create all local player animations on the client.

Corrections to Antfarm Patch

The current status of the Antfarm project is unknown, but only about half of the source code replacements in the patch provided by Antfarm actually work with the current SDK. If you understand a little about what diff tells you, then take a look at the .patch file (it's just the output of a diff) and you should be able to make all the source code modifications by hand.

There is one bug, however, that is not included in the .patch file that you must make with the following modification.

In the client_dll, the file in_camera.cpp, roughly line 225, you'll see this block of code:

// If cheats have been disabled, pull us back out of third-person view.
if ( sv_cheats && !sv_cheats->GetBool() )
{
	CAM_ToFirstPerson();
	return;
}

Comment out the entire if block like so:

// If cheats have been disabled, pull us back out of third-person view.
/*if ( sv_cheats && !sv_cheats->GetBool() )
{
	CAM_ToFirstPerson();
	return;
}*/

That combined with the patches provided in the Antfarm patch file should have your bare-bones 2d platformer up and running.