Re: [Plib-users] Don't Do This!
Brought to you by:
sjbaker
From: Adam S. <ada...@ho...> - 2002-01-14 20:31:23
|
Hello All - > I've got to the point of dividing the screen into two, three or four=20 > chunks and rendering four cute little penguins - each of which can move > independantly with a camera that follows along. I had all of it workin= g > with the controls for each player assigned from a config file (eg=20 >=20 > Player 1: MoveNorth =3D W, MoveSouth =3D Z, MoveEast =3D W, MoveWest = =3D S > Jump =3D Q, Fire =3D E > Player 2: MoveNorth =3D I, MoveSouth =3D M, MoveEast =3D J, MoveWest = =3D K > Jump =3D U, Fire =3D O I've been thinking about this for a while, and as far as I can tell, this should work in all situations, except if a person tries to go north, south, and east or west at the same time, which shouldn't happen unless a player is really discombobulated: Player 1: MoveNorth =3D 2, MoveSouth =3D W, MoveEast =3D E, MoveWest =3D= Q Jump =3D 5, Fire =3D G Player 2: MoveNorth =3D 0, MoveSouth =3D P, MoveEast =3D [, MoveWest =3D= O Jump =3D 8, Fire =3D M Every once in a while, my fingers get a super power, and I'm able to hit <north or south>, <west or east>, Jump, and Fire for both players and it works! :-D Thanks for pointing that out! --=20 Real programmers don't comment their code. It was hard to write, it should be hard to understand. /|| Adam Seyfarth <http://members.home.net/adam.seyfarth/> ||\ = /"\ /=AB|| <cl...@us...> ASCII Ribbon, HTML-free email ||=BB= \ \ / \=AB|| GU d-- s+: a---- C++ UL+>+++ P-- L++ E-- W++ N++ o K- w-- ||=BB= / X \|| O M- V- PE- Y PGP- t 5 X R tv+ b+ DI+ D+ G e-- h! !r !y+ ||/ = / \ |