Search found 107 matches

by NoreoAlles
Mon Aug 15, 2022 1:35 pm
Forum: Support and Development
Topic: Strange index problem.[Solved]
Replies: 2
Views: 714

Re: Strange index problem.

Woops, found the problem, i had two files name "level.lua". One of wich had a syntax error at line 8. :ultrahappy:
by NoreoAlles
Mon Aug 15, 2022 1:22 pm
Forum: Support and Development
Topic: Strange index problem.[Solved]
Replies: 2
Views: 714

Strange index problem.[Solved]

When executing my level creation code i get this strange error: "Error Syntax error: src/level.lua:8: unexpected symbol near '=' " My Code looks like this Level = {} Level.__index = Level function Level.new(x, y, map_width, map_height,tile_width , tile_height, image, tiles, collision, enti...
by NoreoAlles
Tue Aug 09, 2022 6:26 pm
Forum: Support and Development
Topic: How to change the Bit Depth
Replies: 4
Views: 1935

How to change the Bit Depth

Hey, i want to make a low-res retro game and i am wondering how to change the bit-depth per pixel. I am displaying a high bit per Pixel depth image and thought changing this: "t.window.depth = nil " in the conf.lua file to 4 instead of nil would result in a 4 bit version of same image bein...
by NoreoAlles
Sat Jul 02, 2022 4:49 pm
Forum: Support and Development
Topic: How can i set FPS?
Replies: 2
Views: 1432

How can i set FPS?

I need to be able to set what fps my programm will try to stay on, how would i do that?
Cheers :ultrahappy:
by NoreoAlles
Tue Jun 07, 2022 9:46 am
Forum: Support and Development
Topic: 2d mesh building algorythim
Replies: 6
Views: 1424

Re: 2d mesh building algorythim

I do got a spritebatch, i just need a way to make a box2d mesh out of that shape, im soryy if i didnt get that point accross, i am not so good at english. Hm, Box2D mesh? Box2D can only handle convex shapes, which for tile-based shapes means rectangles. If you have something more complex, you need ...
by NoreoAlles
Mon Jun 06, 2022 1:22 pm
Forum: Support and Development
Topic: 2d mesh building algorythim
Replies: 6
Views: 1424

Re: 2d mesh building algorythim

You can use a flood fill algorithm to separate the meshes. A spritebatch is pretty much like a mesh; you can use that - unless you want mesh-specific features like custom vertex attributes or anything. I do got a spritebatch, i just need a way to make a box2d mesh out of that shape, im soryy if i d...
by NoreoAlles
Mon Jun 06, 2022 11:02 am
Forum: Support and Development
Topic: 2d mesh building algorythim
Replies: 6
Views: 1424

2d mesh building algorythim

Hey, does anyone got a algorythim that i can use freely, wich builds polygonal meshes made of squares from a map like this:

Code: Select all

map = {

{0,1,1,1,0},
{1,1,0,1,1},
{1,1,1,1,1}

}
It should connect all the 1s to one big mesh and if there are unconnected 1s they should make a new mesh.
by NoreoAlles
Thu May 19, 2022 9:10 pm
Forum: Support and Development
Topic: Question about Reading Data from a File
Replies: 5
Views: 2295

Re: Question about Reading Data from a File

Hey, i know the thread beneath me is about a similar topic and i already asked something like this, but i just want to know, how i can read a save file with something like this in it: 12, 30 and read it with the love.filesystem stuff so i could use it like this player.x, player,y = love.filesystem....
by NoreoAlles
Thu May 19, 2022 7:02 pm
Forum: Support and Development
Topic: Question about Reading Data from a File
Replies: 5
Views: 2295

Question about Reading Data from a File

Hey, i know the thread beneath me is about a similar topic and i already asked something like this, but i just want to know, how i can read a save file with something like this in it: 12, 30 and read it with the love.filesystem stuff so i could use it like this player.x, player,y = love.filesystem.r...
by NoreoAlles
Tue May 17, 2022 3:52 pm
Forum: General
Topic: Question about Roles
Replies: 12
Views: 7299

Re: Question about Roles

milon wrote: Thu May 12, 2022 4:10 pm
NoreoAlles wrote: Sun May 01, 2022 10:12 am So, the more i interact here the higher/better my Rank/role gets?
You probably noticed this already, but you're not a Prole anymore! :D
Yes!