Skip to content

SueHeir/lightyear-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lightyear Menu

This code stands as a starting point for a multiplayer bevy steam game using the lightyear networking library. Where a server is ran in the background (separate thread) and can have anyone connect through steam p2p, or Udp. The game is always running as a client, and either connects to the background server via crossbeamIO in lightyear or connects to someone else's server. Server starting and stopping is orchestrated through another set of crossbeam channels which communicate client_commands, and server_commands.

As of right now, I believe UDP and steam is working, including being able to send requests to your friends to join your game once you have started it up. Lobbies are created and joined by just the server, so that other players know if you are currently hosting or not. The menu filters steam friends by game id and if lobby id != 0

The menu code follows Bevy's menu example

The actual gameplay is copied from lightyears spaceship demo

How To Start

cargo run -- client only runs client code (so you have to join a server, you can't press play)

cargo run -- server only runs server code in terminal, and auto starts server

cargo run -- full starts a client and server, which communicate via crossbeam messages

About

Basic menu setup for separate mode and clients in Lightyear

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages