Search found 104 matches

by MaxGamz
Sat Sep 09, 2023 1:26 am
Forum: Support and Development
Topic: [SOLVED] I tried writing a procedural generation algorithm but it doesn't seem to be working and I'm not sure why
Replies: 3
Views: 1382

Re: I tried writing a procedural generation algorithm but it doesn't seem to be working and I'm not sure why

Look at your getBorderCount function: wallCount = wallCount + map[gridX][gridY] should be: wallCount = wallCount + map[a][b] That way, your smooth function actually works! Oh my God that actually worked! I can't thank you enough. Only thing I need to figure out is how but at least I got something w...
by MaxGamz
Fri Sep 08, 2023 10:26 pm
Forum: Support and Development
Topic: [SOLVED] I tried writing a procedural generation algorithm but it doesn't seem to be working and I'm not sure why
Replies: 3
Views: 1382

Re: I tried writing a procedural generation algorithm but it doesn't seem to be working and I'm not sure why

I based my code off of a video I saw in which a guy does the same thing I'm trying to do but in unity. Even though the code was simple and easy to understand. I wasn't able to get it working in love. It is basically meant go check if the tiles around each tiles are empty (0) or walls (1) and if wal...
by MaxGamz
Fri Sep 08, 2023 10:19 pm
Forum: Support and Development
Topic: [SOLVED] I tried writing a procedural generation algorithm but it doesn't seem to be working and I'm not sure why
Replies: 3
Views: 1382

[SOLVED] I tried writing a procedural generation algorithm but it doesn't seem to be working and I'm not sure why

I based my code off of a video I saw in which a guy does the same thing I'm trying to do but in unity. Even though the code was simple and easy to understand. I wasn't able to get it working in love. It is basically meant go check if the tiles around each tiles are empty (0) or walls (1) and if wall...
by MaxGamz
Tue Sep 05, 2023 2:19 pm
Forum: Support and Development
Topic: How would I prevent dead ends from my game map?
Replies: 3
Views: 1113

How would I prevent dead ends from my game map?

I started working on making a randomly generation cave map, however the main issue I have is that there are a lot of dead ends which make it harder for the player to traverse from one end to another. I also need space for enemies to move freely around. I want it to not just be predictable but also e...
by MaxGamz
Sat Sep 02, 2023 7:41 pm
Forum: Support and Development
Topic: What is the easiest way to draw a tile map imported from Tiled?
Replies: 1
Views: 637

Re: What is the easiest way to draw a tile map imported from Tiled?

I was watching a tutorial related to making a platformer and it explained the collisions but not actually drawing the tile images in the right places. I am aware that I need a nested loop and I don't want to use the STI library. Ok I found something that might help but the code is still giving me a...
by MaxGamz
Sat Sep 02, 2023 11:36 am
Forum: Support and Development
Topic: What is the easiest way to draw a tile map imported from Tiled?
Replies: 1
Views: 637

What is the easiest way to draw a tile map imported from Tiled?

I was watching a tutorial related to making a platformer and it explained the collisions but not actually drawing the tile images in the right places. I am aware that I need a nested loop and I don't want to use the STI library.
by MaxGamz
Sat Sep 02, 2023 11:33 am
Forum: Support and Development
Topic: I have been having problem's scaling the camera for my game
Replies: 4
Views: 1863

Re: I have been having problem's scaling the camera for my game

Oh yeah I tried out the code and it worked! The only thing I'm confused about is why you multiplied the x values by 0.5? To centre the position horizontally. The player's position is defined as its bottom centre. The horizontal centre is at the left corner plus half the width. Oh I understand, than...
by MaxGamz
Fri Sep 01, 2023 11:30 pm
Forum: Support and Development
Topic: I have been having problem's scaling the camera for my game
Replies: 4
Views: 1863

Re: I have been having problem's scaling the camera for my game

These are the changes that I've applied to your code, in diff format: $ diff -u main.lua.old main.lua.new --strip-trailing-cr --- main.lua.old 2023-09-01 08:09:02.000000000 +0200 +++ main.lua.new 2023-09-01 16:29:43.845043823 +0200 @@ -16,6 +16,7 @@ acc = 1000, maxSpeed = 500, factor = 1, + zoom = ...
by MaxGamz
Fri Sep 01, 2023 12:14 pm
Forum: Support and Development
Topic: I have been having problem's scaling the camera for my game
Replies: 4
Views: 1863

I have been having problem's scaling the camera for my game

My character is 8x8 and I want to replicate the classic look of games from the past; however, because of this the character seems extremely tiny. I tried to scale it using love.graphics.scale and the push and pop but while it did make the character an ideal size, it wasn't centered in the camera vie...
by MaxGamz
Sat Aug 26, 2023 2:59 pm
Forum: Support and Development
Topic: Having trouble with bump when different objects are on the screen
Replies: 2
Views: 637

Re: Having trouble with bump when different objects are on the screen

You are experiencing this behavior because you are using the world:check function, as opposed to the world:move function. -- change this... local actualX, actualY, cols, len = world:check(player, futureX, futureY) -- to this local actualX, actualY, cols, len = world:move(player, futureX, futureY) A...