Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Multiplayer online game powered by Godot 4 and Rust 🤖🦀

License

NotificationsYou must be signed in to change notification settings

jerryshell/agarust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agarust is a server-authoritative real-time multiplayer online game powered by Godot 4 and Rust 🤖🦀 inspired by agar.io

Play now on itch.io:jerryshell.itch.io/agarust

  • Use the mouse to control the direction of movement
  • Press the left mouse button to sprint
    • Sprinting drops 20% of your mass
    • Players with too little mass can't sprint
  • You can only eat another player if the difference in mass is greater than 1.2 times
  • The player's mass will slowly drop over time, the higher the mass, the higher the chance of dropping
  • The formula for converting mass to radius:Mass = PI * Radius * Radius

Tech stack

  • Godot 4
  • Rust
  • Protocol Buffers
  • WebScoket
  • SQLite

Setup server

cd server

Init database

Note: YouMUST initialise the database before you can compile the source code, for more details see:sqlx - Compile-time verification

cargo install sqlx-cli
sqlx migrate run --database-url"sqlite:agarust_db.sqlite?mode=rwc"

Run

cargo run

Setup client

Import theclient folder usingGodot 4

Change server URL

Changedebug_server_url andrelease_server_url inclient/global/global.gd

Credits


[8]ページ先頭

©2009-2025 Movatter.jp