Log In  

Cart #51336 | 2018-04-05 | Code ▽ | Embed ▽ | No License
2

Sinopsis

Blackout is a game with a simple core mechanic. You cannot see. You will have to pick up some items around, but you will have to do it only with the help of the sounds around.

Gameplay

Use the arrow keys to move.
Press "X" to pick up the item. You will only pick up the item when you are above it.

About

My name is "Bibiki". I'm a composer/sound designer interested also in learning programming and game design, so pico8 is an awesome tool for learning. This is my second attempt to make a pico8 game, and even though the mechanic is simple, I feel very happy about a game done with a sound mechanic.

If you want, you can follow more of my stuff in twitter: @BibikiGL

Also, thank you very much to @egordorichev for making this awesome menu!

Any feedback is welcome :)

P#51337 2018-04-05 11:20 ( Edited 2018-04-05 18:37)

Interesting game mechanic (not entirely new though!).
Could certainly be expanded a lot (items you should not pick, enemies...)

Note: I found the rings to be a bit annoying as they don't seem to provide any clue on top of the audio cue.

Free programming tips:

  • did you really want a square distance function? It seems wrong for a sound based game.
  • secondly, you are scanning the whole item list 4 times to perform the exact same distance check! Good you have only a couple of items!

Suggest to swap:

 ...
 if playery < i.y+40
   and playery > i.y-40
   and playerx > i.x-40
   and playerx < i.x+40
       then 
       sfx(20)
  end 
...
 -- rinse and repeat 3 times more!

by:

-- good old distance function helper
function dist2noise(i)
 local dx,dy=i.x-playerx,i.y-playery
 return sqrt(dx*dx+dy*dy)
end

...
for _,i in pairs(item) do
 local d=dist2noise(i)
 local snd=nil
 if d<5 then
  snd=23
 elseif d<10 then
  snd=22
 elseif d<20 then
  ...
 end
 if snd then
  sfx(snd)
 end
end
...
P#51342 2018-04-05 14:37 ( Edited 2018-04-05 18:42)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 06:33:23 | 0.079s | Q:19