Ngwu Charles Obinna(Rocket)

Logo

First description

Languages- Lua, Python, GLSL, HTML & CSS
Technology- Love2d, Pygame, PHPmyAdmin

View My LinkedIn Profile

View My GitHub Profile


WeDraw

A Mutiplayer Drawing Project
This is basically the second project i worked on for close to a month after i made 2d Blobs.
Its actually one of my dream apps/game that I plan on continueing/recreating when I switch to an engine.

This project was where I used another dope feature of Love2d, “NETWORKING”.
Through the use of this feature and some really cool libraries made by guys at the forum,

I made a local multiplayer drawing project that would allow two or more devices
to draw on a canvas while also previewing the intups and updated the canvas in real time.

I wont go in depth on how the code works but BaSicALiy
each pen stroke is generated form drawing lines continiously on the moving path
while also storing those line cordinates in tables variables
that would be read and sent through
the local network to the server which will
then send these packets to each client so that those clients would
also draw the cordinates of all the other clients stoke input on the network.

I drew the assets myself with my phone(again), but the colour palletes were gotten from online sources

A terrible accident happened that made me lose most of my files
including the server file of the project but apart from that the code still works swell with the client tho.

you can view the code repository here

Below are some of the screenshots of the game s development and progress with description

The very early stage of the development where the ineffective dot drawing method was used
alt text

Using the ‘sock’ library for the local networking
alt text

The long strip of values on the left shows the beginning and the ending of stroke gestures{I have to print them to screen because I use mobile}
(false and true values respectively)- Will use this to create an undo feature someday,
and the strip of values on the right are the coordinates of each line attached to a stoke gesture table
alt text

Hard coding a prototype of a pinch zoom and pan code
alt text

The value strip on the right were used when I was to HARD CODE a PINCH ZOOM and PAN feature (tho most of the code is disabled now (because of thic bug!))
alt text

…And to balance the gallary, here are some of my drawing atrocities too :-D
alt text
alt text
alt text
alt text
alt text
alt text
there are afew more screenshots in the images source code directory at this repo



you can view the code repository here

if isAwesome then
  return true
end