Search found 10 matches

by xjermx
Thu May 10, 2012 2:02 pm
Forum: Support and Development
Topic: Complete Newb.
Replies: 14
Views: 4887

Re: Complete Newb.

You just don't see much in the way of first person 2d games. Eye of the Beholder was (I think) 2d (1991). Wolfenstein 3D was somewhere between 2D and 3D.

The first person perspective does not lend itself to two dimensions, with the possible exception of Myst style "hunt and click" games.
by xjermx
Wed May 09, 2012 8:03 pm
Forum: Libraries and Tools
Topic: LoveAStar: A* Search in Lua/Love
Replies: 66
Views: 37671

Re: LoveAStar: A* Search in Lua/Love

Will this be updated to 0.8.0?

Nevermind,

Changed the following lines in a copy of the code and it works great. thanks, MarekkPie.
51 local fb = love.graphics.newCanvas()
52 love.graphics.setCanvas(fb)
65 love.graphics.setCanvas()
by xjermx
Wed May 09, 2012 6:26 pm
Forum: Support and Development
Topic: getting started with basic AI [scripting, events, newbie]
Replies: 5
Views: 3037

Re: getting started with basic AI [scripting, events, newbie

Great success! So the square wanders randomly around, and every once in awhile complains about being lost. -- tutorial.gridlock -- from https://love2d.org/wiki/Tutorial:Gridlocked_Player function love.load() math.randomseed(os.time()) interval = 2 tick = 0 player = { grid_x = 256, grid_y = 256, act_...
by xjermx
Wed May 09, 2012 5:22 pm
Forum: Support and Development
Topic: getting started with basic AI [scripting, events, newbie]
Replies: 5
Views: 3037

Re: getting started with basic AI [scripting, events, newbie

Yes - from a logic standpoint I'm on the same page with you. I just don't know how to trigger the code. I assume I'd create a function, function wander() -- generate random number -- if its in a certain range, do something -- determine direction -- etc end But how do I call this? How do I call it ev...
by xjermx
Wed May 09, 2012 5:02 pm
Forum: Support and Development
Topic: getting started with basic AI [scripting, events, newbie]
Replies: 5
Views: 3037

getting started with basic AI [scripting, events, newbie]

Soooooooo, this seems incredibly elementary, and yet I'm just not sure how to get started. I've used the great tutorial about a Gridlocked Player . But lets say I want that 'player' to do something. Perhaps to sometimes move a space in a random direction. Is there a tutorial or some info on this? Wo...
by xjermx
Wed May 09, 2012 3:04 pm
Forum: General
Topic: the evolution of a löve application
Replies: 9
Views: 3243

Re: the evolution of a löve application

Robin wrote:For me, it really depends on the project. ;)
Give me some examples :)
by xjermx
Wed May 09, 2012 2:15 pm
Forum: General
Topic: the evolution of a löve application
Replies: 9
Views: 3243

the evolution of a löve application

While every programmer might have a different approach, and every application might have its own path, I'm curious to hear how people tackle smallish löve applications. Every project starts somewhere, and then is built upon and built upon. What's the first small milestone (a static welcome screen, o...
by xjermx
Wed May 09, 2012 2:04 pm
Forum: Support and Development
Topic: object movement [newbie, theory]
Replies: 5
Views: 3261

Re: object movement [newbie, theory]

I noticed that the code I posted performs differently on two systems. Perhaps this is related to processor speed difference? Is it possible to combine these approaches? To code it so that it moves toward a target, and includes dt as well? Can someone break down 'dt' and how it works in this code? I ...
by xjermx
Tue May 08, 2012 8:29 pm
Forum: Support and Development
Topic: object movement [newbie, theory]
Replies: 5
Views: 3261

Re: object movement [newbie, theory]

Awesome, thanks. Here's the code that I came up with (much of it cribbed from the previously mentioned tutorial) -- simplemovement function love.load() rect = { x = 100, y = 100, width = 100, height = 100, targetX = 700, targetY = 500, dragging = { active = false, diffX = 0, diffY = 0 } } end functi...
by xjermx
Tue May 08, 2012 7:57 pm
Forum: Support and Development
Topic: object movement [newbie, theory]
Replies: 5
Views: 3261

object movement [newbie, theory]

Hi folks. I'm brand new to lua and Love, and have been doing hobbyist PHP for a while before I realized that I wanted a 2d environment. Apologies if this is clearly covered somewhere - I've been through the tutorials and dug through documentation and forums.. I'm still super early in the learning pr...