Log In  


Cart #13831 | 2015-09-08 | Code ▽ | Embed ▽ | No License
1

Hello guys!
Thank you for your comments.

Some updates:
-time limit
-random arrangement of bananas
-levels with more bananas
-banana adds two seconds to the time of the collection
-at start of new level from the time of the collection subtracted a random number

Cart #13556 | 2015-09-02 | Code ▽ | Embed ▽ | No License
1

Hello guys!

I've just started learning pico-8 and this is my first test game.

You should take all bananas.

Controls:
cursors - move
z - take banana

1



Nice monkey!
Quite short :)


Make it never-ending game with bananas spawning at random spots and make the tune and anim a "level end" tune, not "game end".


20 points high score perfect run!

All joking aside I actually really enjoyed your end level animation. Scripting walk animations is FUN.


by the way after add logo I'll refactor code


To add a menu/title screen, here's what I did.
There's 3 main functions: Update, Init, and Draw.

Here's a snippet from my game:
Init:

function _init()
  mode = 0
  menuinit()
end

function menuinit()
-- code that is activated when you start the menu up.
end

function gameinit()
-- whatever was in init(), put it here
end

Update:

function _update()
  if (mode == 0) then
    menuupdate()
  else
    gameupdate()
  end
end

function menuupdate()
-- update stuff for the menu here.
end

function gameupdate()
--again, whatever was in update() goes here now.
end

Draw:

function _draw()
  if (mode == 0) then
    menudraw()
  else
    gamedraw()
  end
end

function menudraw()
-- draw stuff for the menu here.
end

function gamedraw()
--again, whatever was in draw() goes here now.
end

Simple, right?


Skyrunner, if that's not an issue, could you add it to the wiki? Though I'm unsure if it is more for tutorials category or code snippet one. Probably tut tho.


Skyrunner65, thank you a lot!


@darkhog No Problem.

@heyton Developers help other devs.



[Please log in to post a comment]