Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] Split Screen Multiplayer Game

Author
Message
Rapidrory
15
Years of Service
User Offline
Joined: 21st Aug 2009
Location:
Posted: 18th May 2010 22:49 Edited at: 19th May 2010 21:11
This was just for practicing a bit of tight code, so i set my self a challenge of doing a Multi-player in under 100 lines without using colons, and here is the result.. not completely finished, and its not particularly neat or efficient, but good fun all the same.

arrow keys and right ctrl key for player 1
WASD and left shift key for player 2

You basically go around shooting each other.



There is no such thing as "Too Fast!"
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 11th Jun 2010 19:46
The cubes rotate WAY to slow, and you have the bug where player 2 is not visible on the second screen when not visible on the first screen.

To solve that, put this line in your code:



Other from that, nice job

TheComet

Login to post a reply

Server time is: 2024-11-21 20:20:48
Your offset time is: 2024-11-21 20:20:48