Search found 3 matches

by cuppajoeman
Thu Apr 08, 2021 10:43 pm
Forum: Support and Development
Topic: Multiplayer game with lua-enet and love
Replies: 2
Views: 3980

Multiplayer game with lua-enet and love

Hi there, I am attempting to make a multiplayer game and would like some feedback on my ideas & answers to some questions. My goal is to make the following game have multiplayer functionality (here is a video: https://streamable.com/e/m9wxy6). All the files you need to run the game are attached....
by cuppajoeman
Thu Apr 08, 2021 6:25 pm
Forum: Support and Development
Topic: Relative mouse movement
Replies: 4
Views: 2921

Re: Relative mouse movement

Thanks for everyone's input. I think the part that made me understand it the most was because the callbacks are not executed in the context of an object I added the mousemoved method to the player class, and then call that in the main.lua inside of the love.mousemoved callback. It works great. Thanks!
by cuppajoeman
Thu Apr 08, 2021 12:49 am
Forum: Support and Development
Topic: Relative mouse movement
Replies: 4
Views: 2921

Relative mouse movement

Hi there, I am trying to implement a certain type of mouse movement. Here's how it works Figure out how much the mouse position has changed only in the x component. Take this number, scale it, and then add it to the players "aim angle". I think my downfall is to do with callback functions,...