Search found 88 matches

by sanjiv
Tue Apr 09, 2013 8:27 am
Forum: Support and Development
Topic: player controls in love.update vs. love.keypressed/released
Replies: 18
Views: 13435

player controls in love.update vs. love.keypressed/released

I've often handled player controls in love.update, using functions like love.keyboard.isDown. Is that better or worse than using love.keypressed and love.keyreleased, in terms of demands on the hardware? I'm currently trying the later for a change. I.e. when 'move' key is pressed, player.move=true. ...
by sanjiv
Sun Mar 10, 2013 9:02 pm
Forum: Support and Development
Topic: script to create shortcut to the LOVE game's save folder
Replies: 5
Views: 2168

script to create shortcut to the LOVE game's save folder

Since love.filesystem contains knowledge about the game's save directory, how would one go about creating a lua script that can generate a shortcut to that directory? It seems like that would save people significant time and energy.
by sanjiv
Mon Mar 04, 2013 3:49 am
Forum: Support and Development
Topic: questions about using "require"
Replies: 6
Views: 1822

questions about using "require"

Often, when I 'require' another file, I create a load function in that file, within which I define everything else that I need. I then run that load function in love.load. Is that dumb? When I 'require' something from another file, is that already the same as running the contents of that required fi...
by sanjiv
Thu Feb 07, 2013 5:25 am
Forum: Support and Development
Topic: OOP Understanding
Replies: 4
Views: 2514

Re: OOP Understanding

I can't help, but this is exactly the kind of stuff I need to approach next. So now that I've posted here, it'll be easy for me to return to.

Related question: How does one go about choosing an OOP library? Is the following list kept up to date? https://www.love2d.org/wiki/Category:Libraries
by sanjiv
Fri Feb 01, 2013 4:35 am
Forum: Support and Development
Topic: Movement and Collision: how do you do both?
Replies: 2
Views: 1055

Movement and Collision: how do you do both?

What's the best way to do this? What's the basic concept? a) Move from position A to position B IF AND ONLY IF position B isn't a collision(with an impenetrable object)? b) Move from position A to position B, and if position B is a collision, then re-adjust? c) something else? QUESTION 2: should a m...
by sanjiv
Fri Jan 25, 2013 9:02 pm
Forum: Libraries and Tools
Topic: Isömap
Replies: 73
Views: 77999

Re: Isömap

Have any of you run into unusual problems following this strategy? i'm sorry but i don't understand the way you draw your cube, so i will take time to read your code and try to make some light on that Aaah! No hurries, I'll confess I'm haven't gone in to make things super-readable. In fact, I'll ta...
by sanjiv
Thu Jan 24, 2013 10:51 pm
Forum: Libraries and Tools
Topic: Isömap
Replies: 73
Views: 77999

Re: Isömap

http://fast1.onesite.com/capcom-unity.com/user/sanjiv85/love_game_programming/f6fea371722948fba7ea76e5513e7a70.png?v=68392 Based on the constraints I've put in, the vertical lines in the cube (hopefully there's a pic up) will always be vertical. I initially put this constraint in to simplify the ma...
by sanjiv
Wed Jan 23, 2013 2:52 am
Forum: Support and Development
Topic: Platformer Collision Issues
Replies: 6
Views: 4377

Re: Platformer Collision Issues

I'm not clear on what problem you're looking at. When moving horizontally on the top platform, I think I noticed the player hit a bump, but I could not get this to happen again. Is that (and only that) the current problem you're trying to solve?
by sanjiv
Tue Jan 22, 2013 3:44 am
Forum: Libraries and Tools
Topic: Isömap
Replies: 73
Views: 77999

Re: Isömap

I've been working on some stuff related to this project. The attached LOVE file features a cube that can rotate, and which has "skins" attached to its sides. I'll should be able to apply it to whatever new Isomap you eventually come up with.
by sanjiv
Wed Dec 12, 2012 11:37 pm
Forum: Games and Creations
Topic: Aa..aahH - something like an Hack'n Slash
Replies: 19
Views: 17136

Re: Aa..aahH - I want a MASSIVE BLOODY Hack'n Slash

The Aa..aahH game play was fun. If there's something like health bar, it'd be cool to tie the damage done to the density of the mob, so you'd reward players for managing the crowd, even if they couldn't completely escape it. That's something I found myself trying to do -- luring mobs to where I want...