Search found 33 matches

by LaserGuns
Thu Aug 23, 2012 2:06 am
Forum: General
Topic: Has anyone acheived a Minecraft-like voxel engine?
Replies: 21
Views: 12562

Re: Has anyone acheived a Minecraft-like voxel engine?

on topic please! :) lol
by LaserGuns
Sun Aug 19, 2012 1:46 am
Forum: General
Topic: Has anyone acheived a Minecraft-like voxel engine?
Replies: 21
Views: 12562

Re: Has anyone acheived a Minecraft-like voxel engine?

Yea I've seen your WolfenLove game, it's awesome. I hope in the next version of love they include OpenGL support or something. Has anyone written unofficial support for OpenGL yet?
by LaserGuns
Sun Aug 19, 2012 1:40 am
Forum: Support and Development
Topic: What does "for i, v in ipairs do" mean?
Replies: 2
Views: 4477

Re: What does "for i, v in ipairs do" mean?

Alright. Thanks!
by LaserGuns
Sun Aug 19, 2012 1:27 am
Forum: Support and Development
Topic: What does "for i, v in ipairs do" mean?
Replies: 2
Views: 4477

What does "for i, v in ipairs do" mean?

I don't think that's exactly how its used, but I see "for blah blah in ipairs do" in a lot of code and I think it would be useful.
What does the for/do loop do?
What are ipairs? How do they work?
by LaserGuns
Sat Aug 18, 2012 11:48 pm
Forum: General
Topic: Has anyone acheived a Minecraft-like voxel engine?
Replies: 21
Views: 12562

Has anyone acheived a Minecraft-like voxel engine?

I know it's possible, I'm just not sure how it would be done. Is anyone working on something like this?
by LaserGuns
Thu Aug 16, 2012 6:50 pm
Forum: Support and Development
Topic: Working Raycasting example! WolfenLöve 3D if you will...
Replies: 134
Views: 68418

Re: Working Raycasting example! WolfenLöve 3D if you will...

any more progress? or is there a new thread? i demand updates!
by LaserGuns
Thu Aug 09, 2012 11:41 pm
Forum: Support and Development
Topic: Game works differently on each computer
Replies: 3
Views: 2172

Re: Game works differently on each computer

you forgot to use delta time, probably. look it up
by LaserGuns
Wed Aug 08, 2012 8:56 pm
Forum: Support and Development
Topic: A very simple camera lib
Replies: 36
Views: 15921

Re: A very simple camera lib

I find that approach too simplistic. When the player is near the borders of the world, I want the camera "stopping scrolling", so that no "black borders" are seen. And I want it to work with any screen resolution. I also want to be able to ask the camera "give me the rectan...
by LaserGuns
Wed Aug 08, 2012 1:28 am
Forum: Support and Development
Topic: A very simple camera lib
Replies: 36
Views: 15921

Re: A very simple camera lib

WAT.
You do NOT need all of that code :O
Just use this one line:

Code: Select all

love.graphics.translate(-x, -y)
So for example, to translate the camera to the player, use:

Code: Select all

love.graphics.translate(-player.x, -player.y)
by LaserGuns
Thu Jul 19, 2012 1:49 am
Forum: Support and Development
Topic: "attempted to index field '?' (a nil value)"
Replies: 3
Views: 2643

Re: "attempted to index field '?' (a nil value)"

Robin wrote:Line 193 is the problem:

Code: Select all

block_y = 224
You don't know if blockdata[224] exists, yet you don't even check for it.

Not sure what line 192-205 is even supposed to be doing.
It's supposed to be generating terrain.
and block_y = 224, as in the block_y coordinate. Is that still wrong?