Search found 38 matches
- Fri Jul 31, 2020 12:54 pm
- Forum: Support and Development
- Topic: [Solved] Shooting towards the mouse with rotated image
- Replies: 5
- Views: 4697
Re: Shooting towards the mouse with rotated image
Use some trig with the angle instead of integer constants in love.mousepressed. Something like this: local radius = 22 local startX = (gun.x + math.cos(angle) * radius) * 2 local startY = (gun.y + math.sin(angle) * radius) * 2 The solution is to find a point on a circle with the angle calculated usi...
- Wed Jul 27, 2016 12:45 am
- Forum: Games and Creations
- Topic: Random Dungeon Generation via Minimum Spanning Trees
- Replies: 1
- Views: 3002
Random Dungeon Generation via Minimum Spanning Trees
I have developed a small demo that generates random dungeons, from minimum spanning trees, that I plan to use in an upcoming game. It'd be a waste to keep it all to my self so I've provided a small demo attached below and released the source code on GitHub ( https://github.com/redsled84/mstdungeon/t...
- Fri Jul 15, 2016 9:52 pm
- Forum: Games and Creations
- Topic: Shooter Roguelike and Time Lapse Video of Some Development
- Replies: 4
- Views: 3399
Re: Shooter Roguelike and Time Lapse Video of Some Development
Well oops. I had accidentally uploaded a .love file that had the wrong amount of XP required to level up, making it super easy to level up...
- Wed Jul 13, 2016 4:10 pm
- Forum: Games and Creations
- Topic: Shooter Roguelike and Time Lapse Video of Some Development
- Replies: 4
- Views: 3399
Re: Shooter Roguelike and Time Lapse Video of Some Development
Thank you, and I'll take that as a complimentMadByte wrote:Nice video, I watched it till the end.
you code pretty much the way I do myself, found that kinda interesting :>
Good work.
- Tue Jul 12, 2016 4:41 pm
- Forum: Games and Creations
- Topic: Shooter Roguelike and Time Lapse Video of Some Development
- Replies: 4
- Views: 3399
Shooter Roguelike and Time Lapse Video of Some Development
Hello, I'm not a very active community member, but I am an active LOVE2D user! About a year ago I made a small time lapse video which many of you might have seen. What I made in that video was hardly a game, all you could do is run around. Just recently, I made a 13 minute time lapse video of develo...
- Sat Sep 26, 2015 5:50 am
- Forum: Support and Development
- Topic: [Solved] Help with basic platformer jumping
- Replies: 4
- Views: 3616
Re: Help with basic platformer jumping
It'd help more if you attached the .love
- Fri May 29, 2015 1:13 am
- Forum: Support and Development
- Topic: Problem with wall jumping in platformers and bump.lua
- Replies: 3
- Views: 2709
Re: Problem with wall jumping in platformers and bump.lua
They move with the "main" rectangle and use "cross" collisions, so they don't "push the player away from the wall". When I try to pass the "cross" filter like this, it gives me an error. world:move(WALL_JUMP, player.x,player.y, "cross") It gives thi...
- Thu May 28, 2015 12:56 am
- Forum: Support and Development
- Topic: Problem with wall jumping in platformers and bump.lua
- Replies: 3
- Views: 2709
Problem with wall jumping in platformers and bump.lua
Hey there lover! So, I have a problem with my platformer and walljumps. The way it's currently setup- actually lemme show you the code first: function player:collisions(dt) --solid tile collisions local nx, ny = self.x + (self.xvel * dt), self.y + (self.yvel * dt) local finalX, finalY, collisions = ...
- Thu May 21, 2015 5:31 am
- Forum: General
- Topic: For loop bug; prints all values with each index
- Replies: 1
- Views: 1470
For loop bug; prints all values with each index
Not good at making subject titles, but here's the problem: I'm trying to pass a .txt file and parse it. The only thing though is that I want to print it to the screen. All goes well and dandy, but for some reason (probably obvious) it prints the first line of the file, then it proceeds to the first ...
- Tue May 19, 2015 12:49 am
- Forum: General
- Topic: How to make object snap to grid with mouse's positions?
- Replies: 1
- Views: 2162
How to make object snap to grid with mouse's positions?
So, I want to make a level editor for my game, and future projects, however the first problem I have is making the mouse's position snap to a set grid (such as 32x32 tiles). Thanks a bunch, -redsled :awesome: EDIT Found the solution here: https://love2d.org/forums/viewtopic.php?f=3&t=14743 Sorry...