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

P#13557 2015-09-02 11:38 ( Edited 2015-09-08 17:35)

P#13558 2015-09-02 11:39 ( Edited 2015-09-02 15:40)

Nice monkey!
Quite short :)

P#13573 2015-09-02 14:25 ( Edited 2015-09-02 18:25)

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

P#13631 2015-09-03 16:35 ( Edited 2015-09-03 20:35)

20 points high score perfect run!

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

P#13650 2015-09-03 20:39 ( Edited 2015-09-04 00:39)

by the way after add logo I'll refactor code

P#13832 2015-09-08 08:33 ( Edited 2015-09-08 12:33)

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?

P#13835 2015-09-08 09:01 ( Edited 2015-09-08 13:01)

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.

P#13838 2015-09-08 09:46 ( Edited 2015-09-08 13:46)

Skyrunner65, thank you a lot!

P#13847 2015-09-08 10:19 ( Edited 2015-09-08 14:19)

@darkhog No Problem.

@heyton Developers help other devs.

P#13860 2015-09-08 13:35 ( Edited 2015-09-08 17:35)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 12:41:27 | 0.016s | Q:31