Search found 27 matches
- Sun Mar 20, 2011 2:20 pm
- Forum: Support and Development
- Topic: Newbie trigonometry help
- Replies: 17
- Views: 8107
Re: Newbie trigonometry help
hi, you made a little mistake... your calculations for the movement are correct. But in the draw function, you are converting the angle of the sprite from radiant to degrees. That's all... function love.load() love.graphics.setMode(1024, 768, false, false) hero = {} hero.angle=0; hero.speed=100; her...
- Sun Feb 06, 2011 9:14 am
- Forum: Support and Development
- Topic: Generating a random "dungeon"?
- Replies: 8
- Views: 5066
Re: Generating a random "dungeon"?
hi,
using a "binay space partition" is a very elegant way to handle the dungeon generation.
You can find a nice introduction here
There is also a working example (+ source code) on this site, where you can see the generator in action.
using a "binay space partition" is a very elegant way to handle the dungeon generation.
You can find a nice introduction here
There is also a working example (+ source code) on this site, where you can see the generator in action.
- Thu Oct 14, 2010 9:09 pm
- Forum: Support and Development
- Topic: I'd love some help
- Replies: 8
- Views: 8064
Re: I'd love some help
Hi "8t", here is a little example on how you can handle animations very elemantary without the AnAL-library. The code is hacked together "quick and dirty", but I hope, that you can learn how to draw an animated image properly :) player = { position = {100,100}, velocity = {0,0}, ...
- Sun Oct 10, 2010 10:10 am
- Forum: Support and Development
- Topic: Any question about lua
- Replies: 7
- Views: 5910
Re: Any question about lua
Hello vadim2, I really can encourage you, to read the section in the lua manuel about tables (http://www.lua.org/pil/2.5.html) Gernerally you address an element of a table by t["index"]. If the index is a string, there is a shorter notation: t = { 1 = 123, 2 = 234, 3 = 333, a = 555, b = 66...
- Sat Oct 09, 2010 10:59 am
- Forum: Support and Development
- Topic: Trigonometry Help
- Replies: 6
- Views: 2465
Re: Trigonometry Help
Hi walesmd, so... it's a little bit more complicated... :ehem: You have to keep track of your position.x/y and your velocity.x/y But because you can accelerate in a direction other than your travalling direction , you need also keep track of your acceleration.x/y The rest is simple math/physics... m...
- Wed Oct 06, 2010 2:30 pm
- Forum: Support and Development
- Topic: Rawr.
- Replies: 1
- Views: 897
Re: Rawr.
You might find your information here:
http://love2d.org/wiki/Font
http://love2d.org/wiki/Font
- Sun Sep 12, 2010 9:48 pm
- Forum: Libraries and Tools
- Topic: Dynamic Lighting
- Replies: 10
- Views: 10019
Re: Dynamic Lighting
I really love your demo ! I was going to implement it by myself for my upcomming game... but this is just great!
My game uses a tile/grid based graphics engine, so I'm gonna rewrite your demo for tile based systems in the next days...
My game uses a tile/grid based graphics engine, so I'm gonna rewrite your demo for tile based systems in the next days...