Jump to content




TRON lightcycle game (Multiplayer | HTTP via Skynet)



4 replies to this topic

#1 LDDestroier

  • Members
  • 1,090 posts
  • LocationACDC Town

Posted 14 November 2018 - 10:28 PM

Made over the course of two days (and many more for tweaking), I finally made my own multiplayer game!


Posted Image


wget https://raw.githubusercontent.com/LDDestroier/CC/master/tron.lua

This is a two-player game that uses modems, or Gollark's Skynet API for HTTP netplay.
Each player is control of a lightcycle, which creates a trail behind it which you and your enemy must avoid.
The objective is to trap the enemy and get them to collide with one of the trails or the border of the map.
To aid in creating escape opportunities for yourself, you can intentionally create breaks in your trail.

Supports advanced and normal computers, turtles, and pocket computers.

Controls: (keyboard)
Move with the arrow keys.
Pan the camera slightly with WASD.
Hold the spacebar to let up on creating your deadly trail.

Controls: (mouse)
Move by clicking the left mouse button above/below or to the left/right of your lightcycle.
Pan the camera slightly by holding and dragging the middle mouse button.
Hold the right mouse button to let up on creating your deadly trail.

Screenshots:
Spoiler

You can play the game online using CCEmuX (https://emux.cc) if you don't care for SMP lag.

Tell me what you think in the comments.

Edited by LDDestroier, 24 February 2019 - 07:19 AM.


#2 Kepler

  • Members
  • 65 posts

Posted 15 November 2018 - 02:08 AM

Awesome!
Addictive!

If it's okay, can I add this to my OS (I'll give credit) ?

#3 LDDestroier

  • Members
  • 1,090 posts
  • LocationACDC Town

Posted 15 November 2018 - 02:31 AM

 Kepler, on 15 November 2018 - 02:08 AM, said:

Awesome!
Addictive!

If it's okay, can I add this to my OS (I'll give credit) ?

Thanks! And you can definitely put it in your OS.

#4 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,451 posts

Posted 21 November 2018 - 03:32 AM

Moved by request.

#5 LDDestroier

  • Members
  • 1,090 posts
  • LocationACDC Town

Posted 23 February 2019 - 05:18 AM

New update:
  • Releasing your trail now requires fuel to do. You start with 10, and it regenerates over time.
  • There's a new Options menu that allows you to change your screen name, change the grid pattern, and demo the grid scrolling.
  • Speaking of names, the enemy player's name will be drawn above their lightcycle by default. 13 character limit.
  • Changed the default grid to one that looks cooler.
  • Mouse users can now pan the camera by holding and dragging middle click.
Edit update:
  • The menu now has an animation when going to and from the options.
  • You can toggle Skynet mode from the options menu now. You need CC:Tweaked or CCEmuX for it, though.
  • Loads of grids have been added since last update.

Edited by LDDestroier, 17 April 2019 - 05:19 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users