Search found 38 matches

by redsled
Fri Jul 31, 2020 12:54 pm
Forum: Support and Development
Topic: [Solved] Shooting towards the mouse with rotated image
Replies: 5
Views: 4437

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...
by redsled
Wed Jul 27, 2016 12:45 am
Forum: Games and Creations
Topic: Random Dungeon Generation via Minimum Spanning Trees
Replies: 1
Views: 2897

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...
by redsled
Fri Jul 15, 2016 9:52 pm
Forum: Games and Creations
Topic: Shooter Roguelike and Time Lapse Video of Some Development
Replies: 4
Views: 3331

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...
by redsled
Wed Jul 13, 2016 4:10 pm
Forum: Games and Creations
Topic: Shooter Roguelike and Time Lapse Video of Some Development
Replies: 4
Views: 3331

Re: Shooter Roguelike and Time Lapse Video of Some Development

MadByte wrote:Nice video, I watched it till the end.
you code pretty much the way I do myself, found that kinda interesting :>

Good work.
Thank you, and I'll take that as a compliment ^^
by redsled
Tue Jul 12, 2016 4:41 pm
Forum: Games and Creations
Topic: Shooter Roguelike and Time Lapse Video of Some Development
Replies: 4
Views: 3331

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...
by redsled
Sat Sep 26, 2015 5:50 am
Forum: Support and Development
Topic: [Solved] Help with basic platformer jumping
Replies: 4
Views: 3531

Re: Help with basic platformer jumping

It'd help more if you attached the .love
by redsled
Fri May 29, 2015 1:13 am
Forum: Support and Development
Topic: Problem with wall jumping in platformers and bump.lua
Replies: 3
Views: 2638

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...
by redsled
Thu May 28, 2015 12:56 am
Forum: Support and Development
Topic: Problem with wall jumping in platformers and bump.lua
Replies: 3
Views: 2638

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 = ...
by redsled
Thu May 21, 2015 5:31 am
Forum: General
Topic: For loop bug; prints all values with each index
Replies: 1
Views: 1440

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 ...
by redsled
Tue May 19, 2015 12:49 am
Forum: General
Topic: How to make object snap to grid with mouse's positions?
Replies: 1
Views: 2077

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...