Skip to content

How To Play

Samson Close edited this page Dec 21, 2016 · 16 revisions

Table of Contents

Controls

Movement

  • UP ARROW = Move up
  • LEFT ARROW = Move left
  • DOWN ARROW = Move down
  • RIGHT ARROW = Move right

Actions

  • A = Previous item
  • D = Next item
  • SPACE = Interact

Debug

  • CTRL + 1 = Displays debug hud
  • CTRL + 2 = Shows in-game objects
  • CTRL + 4 = Copies level to clipboard
  • CTRL + 9 = Console
  • CTRL + 0 = Build mode (only active on title screen)
  • CTRL + / = Commands (outputs to console)
  • CTRL + SHIFT + Delete = Exit game
  • F11 = Fullscreen

Build Mode

Build mode controls override all Movement and Actions controls

  • A = Previous build mode
  • D = Next build mode
  • SHIFT = Increase move/scroll speed

Setting Up A Server

From In-Game

When starting the game, click "Host" and provide

  • Your username
  • Server password
  • Server port (default: 2413)

Upon entering the pre-game lobby, your computer's LAN IP address will display at the top of the screen. Local players can use to connect to you, so give it to 'em. If the displayed IP does not work, that means that you need to find your IPv4 address (or inet address).

From Command Line

Download the JAR file version of Afro Man, and using either Command Prompt or Terminal cd to the JAR directory and, issue the command java -jar AfroMan.jar -server.

Type stop to stop the server. Go into the generated options.txt file and change the desired server variables (SERVER_PORT, SERVER_IP, SERVER_PASSWORD, etc.)

Start the server again, and you're good to go!

Finding Your IP

LAN

If in Windows, press Start + R, type cmd and hit enter. Issue the command ipconfig, and look for your IPv4 Address.

If in Linux, press CTRL + ALT + T, and type ifconfig. Look for your inet addr.

If in MacOS... Good luck

World-Wide

If a player is trying to join you from outside your LAN, they need to use your public IP address to connect. Make sure to port forward the port that you used for the server through your router's options, and have them connect using that.

Commands

You can enter commands using the command line server, or from in-game by pressing CTRL + /.

Enter help to see which commands can be used.

Enter help <command> or <command> help to see more info and proper usage.