Search found 56 matches

by nikneym
Thu Nov 12, 2020 6:41 am
Forum: Support and Development
Topic: Can someone help me with this piece of code?
Replies: 4
Views: 4993

Re: Can someone help me with this piece of code?

Hi, welcome to the forums! It seems you missed to update your animation frame by frame. Try this: --load spritesheet. local imgsheet = love.graphics.newImage("sample.png") --frames variable to hold frames, currentFrame to hold our current frame. local frames = {} local currentFrame = 1 --c...
by nikneym
Thu Nov 12, 2020 6:03 am
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1791
Views: 1488832

Re: What's everyone working on? (tigsource inspired)

Just a fun thing. Maybe Mr. Robot effect?

Takes a bunch of words and shows them in a fancy way. (like console screen)
https://github.com/nikneym/Love2D-Code-Screen

by nikneym
Tue Nov 10, 2020 2:13 am
Forum: Support and Development
Topic: How to install?
Replies: 1
Views: 3539

Re: How to install?

Hi, welcome to the forums! It's easy to install LÖVE. Just go to the main page and under Windows Vista+ title (I consider you're on Windows) download the installer according to your system. If your pc supports 64-bit, download 64-bit installer or vice versa. After the installation complete, type lov...
by nikneym
Mon Nov 09, 2020 9:58 am
Forum: Support and Development
Topic: Cannot print() from lua code to windows 10 powershell
Replies: 3
Views: 4926

Re: Cannot print() from lua code to windows 10 powershell

You have to change your build system in order to do that. Go to Tools > Build System > New Build System... in Sublime Text and paste: { "selector": "source.lua", "file_regex": "^Error: (?:[^:]+: )?([^: ]+?):(\\d+):() ([^:]*)$", "windows": { "cmd...
by nikneym
Tue Oct 27, 2020 1:44 am
Forum: Support and Development
Topic: 2d collision with rotated pictures
Replies: 12
Views: 11801

Re: 2d collision with rotated pictures

Hi everyone, i have a big question. my problem is that i want make a collision system beetwen two rotated/angled sprites. theses sprites are both same sizes and they have rectangle form. I need it for the tank game i'm actually making and it's very urgent so i need your help. thanks in advance. SAT...
by nikneym
Mon Oct 26, 2020 2:13 am
Forum: Support and Development
Topic: Help creating a multiplayer game
Replies: 2
Views: 5404

Re: Help creating a multiplayer game

I don't recommend starting with making a multiplayer game either but if you desperately want it, you can take a look at sock.lua , an ENet and lua-enet based networking library. It's easy to understand and has 3 good examples to work on. There are also lua-enet and luasocket but as far as I know, th...
by nikneym
Tue Oct 20, 2020 6:43 pm
Forum: Support and Development
Topic: Circle V Rectangle Collision Response
Replies: 2
Views: 4265

Circle V Rectangle Collision Response

Hi, I'm trying to make basic physics simulations. I implemented Coding Math's Verlet Integration Tutorial to my project and I wanted to add a rectangle to interact with. Problem is, I don't know how to handle circle V rectangle collision. First I tried to make a solid rectangle. It went decently goo...
by nikneym
Sun Aug 02, 2020 10:55 am
Forum: Support and Development
Topic: [Solved] Shooting towards the mouse with rotated image
Replies: 5
Views: 4184

Re: Shooting towards the mouse with rotated image

I've worked on your example and was able to accomplish. Thank you so much, another question of mine solved by pgimeno . Well, here is the updated code and gun image: graphics = love.graphics graphics.setDefaultFilter("nearest", "nearest") local gun = { img = graphics.newImage(&qu...
by nikneym
Fri Jul 31, 2020 4:55 pm
Forum: Support and Development
Topic: [Solved] Shooting towards the mouse with rotated image
Replies: 5
Views: 4184

Re: Shooting towards the mouse with rotated image

Use some trig with the angle instead of integer constants in love.mousepressed. Something like this: Is it like creating an invisible circle around the gun and getting startX and Y according to it? I changed rad to 8 but because of the gun's origin, it still fires from beneath. I updated the draw f...
by nikneym
Fri Jul 31, 2020 9:25 am
Forum: Support and Development
Topic: [Solved] Shooting towards the mouse with rotated image
Replies: 5
Views: 4184

[Solved] Shooting towards the mouse with rotated image

Solved! Updated version: graphics = love.graphics graphics.setDefaultFilter("nearest", "nearest") local gun = { img = graphics.newImage("gun.png"), x = 100, y = 100, } local angle = 0 local half_pi = math.pi / 2 local bul = { x = 0, y = 0, vx = 0, vy = 0, speed = 500, }...