don't click here

Sonic 2 Bonus Stage Tweetcart

Discussion in 'Fangaming Discussion' started by Slow the Snail, Nov 20, 2019.

  1. Slow the Snail

    Slow the Snail

    Member
    16
    30
    13
    Hello everyone,

    I recently joined a game jam, TweetTweetJam, that has the goal of creating a game with under 560 characters of code (so it fits in 2 tweets). You also can't use anything other than code for the game (no sprites, music, sfx).

    My entry is inspired by Sonic 2 bonus stages:

    [​IMG]

    The objective is simply to get as far as you can to increase your score and speed.

    Itch io here.
    If you're interested to see the code, it is available here.
     
    • Like Like x 3
    • Agree Agree x 3
    • List
  2. SuperSnoopy

    SuperSnoopy

    I like Sonic Advance Member
    1,778
    740
    93
    Lyon, France
    Slice of life visual novel, coming soon...?
    Seems like pretty tough challenge! I don't have the time to play the game right now; but I'll try to check it out this weekend. I can at least tell you I like the aesthetics.
    Thanks for posting a gif to show a few seconds of gameplay, by the way. It helps describe the game more than words ever could, and I wish more people would do that around here.
     
    • Like Like x 1
    • Agree Agree x 1
    • List
  3. Slow the Snail

    Slow the Snail

    Member
    16
    30
    13
    Oh yea, knowing how to present your game is just as important as knowing how to make a good game... I learned that the hard way, haha :)
     
  4. SuperSnoopy

    SuperSnoopy

    I like Sonic Advance Member
    1,778
    740
    93
    Lyon, France
    Slice of life visual novel, coming soon...?
    So, I took the time to check it out. My best score is around 60, which is...not amazing, considering the gif you posted, but I'll just blame it on my college-induced lack of sleep.
    Anyway, there's not a lot you can say about a simple game like that, but I quite enjoyed it! It works really well, considering the limitations of the game contest.
    That's the kind of game I'd love to play on my phone.
     
    • Like Like x 3
    • Funny Funny x 2
    • Informative Informative x 1
    • List
  5. Aerosol

    Aerosol

    Not here. Moderator
    11,163
    573
    93
    Not where I want to be.
    Sonic (?): Coming summer of 2055...?
    I was wondering how you managed that effect but that's definitely not something that could be achieved on Mega Drive hardware...at least I don't think so. I don't have the chops to research something like that
     
    Last edited: Nov 25, 2019
  6. muteKi

    muteKi

    Fuck it Member
    7,851
    131
    43
    You might have to make a few changes but it's really not too different from Earthworm Jim's race stages
     
    • Useful Useful x 3
    • Like Like x 1
    • List
  7. Slow the Snail

    Slow the Snail

    Member
    16
    30
    13
    @Aerosol As muteKi pointed out the game is similar to Andy Asteroids in EWJ, but in that game the tunnel is always in the same position, so I imagine it's just a static image with palette swaps. In my game the effect is achieved by drawing a lot of circles. I don't think the Mega Drive was able to draw circles like this, considering I never saw it in a game.

    [​IMG]
    ^This is how each frame is drawn.

    @muteKi Considering you can jump in this I would say it's more similar to Sonic 2 bonus stage, which was the goal (never played the 1st EWJ though). Visually it's more similar to EWJ, sure. There's not much I can change, considering a tweettweetcart can use 560 characters, and I already used 558 :P
     
    • Informative Informative x 1
    • Useful Useful x 1
    • List
  8. Aerosol

    Aerosol

    Not here. Moderator
    11,163
    573
    93
    Not where I want to be.
    Sonic (?): Coming summer of 2055...?
    I wanna play around with it some more but that code is completely illegible to me (kind of a consequence of the contest though right? :v). Which part of the code determines how the tube bends? I want to see if I can make it bend on command (like with keyboard input) and watch how the tube deforms. And also just remove the obstacles as well.

    I mean, if you were to be a diamond and do that for me I'd love you forever.
     
  9. Slow the Snail

    Slow the Snail

    Member
    16
    30
    13
    Here is the code before compression. I changed the tube behavior to bend with Up/Down and Rotate with Left/Right. I disabled the collision of the balls. If you want to prevent the black/blue balls form being drawn just erase under the commentated parts:

    ang=0
    hght=0
    ys=0
    dist=0
    spd=.06
    q=.01
    d=0
    tang=0
    function g(z,ang,c,hght,siz)
    circfill(
    sin(ang)*(z-hght)*.9+x,
    cos(ang)*(z-hght)*.9+y,
    siz or z/10+1,c)
    end
    ::_::
    cls()
    ang+=((band(btn(),3)+1)%3-1)*q
    if hght==0 then
    ys=0
    if (btn(4))ys=5
    end
    hght=band(hght+ys,63)
    ys-=.5
    dist+=spd
    spd+=q^2
    cicl=flr(dist/30)
    srand(cicl)
    tang+=(btn(0) and .01 or 0)
    tang-=(btn(1) and .01 or 0)
    d-=(btn(2) and 1 or 0)--(sin(dist/60)*(rnd(4)+4))^3
    d+=(btn(3) and 1 or 0)
    for z=1,97,.1 do
    c1=clr
    offs=flr(d/z)

    if offs!=flr(d/(z+.1)) or flr(z)!=flr(z+.1)then
    k=40/z+dist
    srand(clr)
    clr=flr(k)
    clr=clr+shr(clr,8)
    for i=0,1 do
    x=64+(i+offs)*sin(tang)
    y=64+(i+offs)*cos(tang)
    circ(x,y,z,clr%8+8)
    circ(x,y+1,z,clr%8+8)
    end

    --remove this to hide the black balls
    if c1!=clr then
    tt=rnd()
    g(z,tt,0,4)
    --remove this to disable ball collision
    --if(hght<15 and z>47 and z<53 and(ang-tt+.95)%1>.9)run()
    end
    end
    end
    --remove this to hide the blue ball
    g(64,ang,2,0,3)
    g(64,ang,1,hght)
    flip()goto _
     
  10. Aerosol

    Aerosol

    Not here. Moderator
    11,163
    573
    93
    Not where I want to be.
    Sonic (?): Coming summer of 2055...?
    Nice one. It's hypnotic and I could play with it for hours!
     
  11. foXcollr

    foXcollr

    Resident Dolphin Member
    738
    634
    93
    US
    I'm a big fan! Obviously there's only so much you can do within the limitations, but it's simple and cute and the challenge is definitely there.

    I challenge someone to beat my score of 439 :ruby: