1 registered members (AndrewAMD),
1,241
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: AckCon 2018
[Re: Superku]
#471445
03/04/18 16:02
03/04/18 16:02
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
(@jenGs @Superku I most likely won't attend ackcon, but your ideas sound pretty good if you ask me)
POTATO-MAN saves the day! - Random
|
|
|
Re: AckCon 2018
[Re: Superku]
#471615
03/11/18 08:32
03/11/18 08:32
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
So I did, mostly from scratch, using send_data. Code handles connection stuff, syncing players (no prediction, just lerping) and bullets (theoretically all kinds of bullets or even rockets with the same code): https://i.gyazo.com/ba41108931b21757747e638802f06941.mp4
///////////////////////////////
#include <acknex.h>
#include <default.c>
#include "console.h"
#include "types.h"
#include "player.h"
#include "network.h"
#include "bullets.h"
#include "helper.c"
#include "types.c"
#include "player.c"
#include "network.c"
#include "bullets.c"
///////////////////////////////
void mainFrameEvent()
{
//enemyDo();
playerDo();
bulletsDo();
networkDo();
}
void main()
{
fps_max = 60;
video_mode = 9;
camera.arc = 90;
collision_mode = 2;
networkInit();
playerInit();
level_load("test.wmb");
on_frame = mainFrameEvent;
}
Not sure if that's against the spirit of the AckCon but we could use that as a basis for a multiplayer game. (Otherwise I could just try and write it down from memory on AckCon's Friday. ) @alibaba:
Last edited by Superku; 03/11/18 12:23.
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual Check out my new game: Pogostuck: Rage With Your Friends
|
|
|
|