Nice idea! However, when you reach the goal you can't really figure out the next location, because there's no pause between all the sound samples. Maybe you could wait a second or two before and after announcing the new goal before playing any new sounds? or mark the announcement with a "bling&...
The code I've posted may be easier to understand than ivan's solution. But his is definitely better and it would be worth to try to understand it (I also have to dig a bit more into it :). Just consider a major drawback of my simple code: If you have fast player movement or low FPS (or a combination...
Most pixelartists hate when thier pixels are scaled uneven. Thanks for this hint, it's indeed a good thing to avoid float scaling on pixelart graphics. I've implemented a parameter prefs.screen.multiscale. If set to true (default value) it will only allow scaling to multiples of canvas size. I also...
Couldn't resist to add normalization for diagonal player movement to the game too :D [...] box.speed = 100 box.speed_norm = 100/math.sqrt(2) [...] function box_update(dt) box.left=love.keyboard.isDown("a") box.right=love.keyboard.isDown("d") box.up=love.keyboard.isDown("w&qu...
Hi, Here you go, added collision detection between player and wooden boxes: function box_update(dt) if love.keyboard.isDown("a") then local _x=box.x - box.speed * dt if not box_checkCollision(_x,box.y) then box.x = _x end end if love.keyboard.isDown("d") then local _x=box.x + box...
[UPDATE] The framework is finished so far, new features: - much easier to use, only a simple require is needed - user can define custom table for debug display - if user debug table is defined, debug pages can be switched with F12 - OSD and debug info's can be horizontally and vertically aligned - O...
Hi, I've written a rectangular collision detection for your game and added the width/height of player and fishes to their tables to make calculation easier. Here's the collision part: function player:collidiesWith(other) if other.x+other.width>self.x and other.x<self.x+self.width and other.y+other.h...