(Yes, I don't have a title for this thing, I would appreciate suggestions...)
Current features:
- client login/register (enter server ID, pings server, enter username, checks for users, if found: login - if not found: register, hashes & adds salt to the password and saves it on the server)
- server (handles: register, login, delete, change pw, spawn player into world, move player(s), sends movement every 0.1s to all players (i made use of coroutines here...), sends world-data (the map and it's data, for example blocks where the player can't go through) upon spawn command to player)
- map editor (draw your map (MAXIMUM X = 25; MAXIMUM Y = 9) and then type: editor.lua <folderWhichCONTAINSTheMap> <PathTo: editorlayout.nfp>) (Standard locations: editor.lua = /server/maps/editor.lua; editorlayout.nfp = /server/maps/editorlayout.nfp; standard command = /server/maps/editor.lua <folderWhichCONTAINSTheMap> /server/maps/editor.nfp
- chat system: Players connected to the same server can chat with T (NOTE: the game won't synchronize while typing, meaning movement and received messages won't be seen)
- more features for game and editor (making use of
ladders, doors, etc. adding chatDONE- adding list of objects to the editor
- NPCs (no AI though ... to complex for meh)
- (context) menus (inventory, exit, talk with NPC, etc)
- fighting system (I have no idea how I should do this )
- download the server to a computer (pastebin run LwmeZ6SL /)
- download the client to the PCs which should connect to the server (and "play") (pastebin run 0TbYns2m /)
- run the server startup / reboot the server
- run the client (startup.lua)
- enter the server ID
- enter username
- it goes directly to the register screen ( next time you enter the username it will go to the login screen)
- go to "Play" and press enter
- there you go, you are in the map named "house1"
- shut down the server (terminate)
- go to /server/saves/USERNAME/
- edit "data"
- edit the string "world" to the desired map
- OR: Connect the worlds with ladders and use them
- GAME : Move: arrow keys; Use ladder: Enter; Chat: T
- EDITOR: Save & Exit: delete key
NOTE2: to place block in the editor, enter the object in the textbox located below the map
Object list (editor):
- wall (blocks player movement)
- door (no use, can't even place)
- ladder (no use)
Spoiler
Code:
SERVER: GitHub
CLIENT : GitHub
Edited by Piorjade, 16 September 2016 - 04:58 PM.