@Disasterpeace @TeddyDief @Demruth yes yes this was the best! one of my favorite moments from GDC for suuuuuure <3 (Today)

@EdgeOfProphecy Awesome! Maybe you can give me some pointers some time ;D (Today)

@EdgeOfProphecy Thats cool :O I guess I feel like I'm pretty bad at it so working on them is frustrating. (Today)

@strotchy mostly fun but menu stuff is kinda frustrating to work on sometimes :| (Today)

RT @Livelyivy: Yay, my Gravity Ghost postmortem is now available to watch on the GDC vault! Learn how brought this thing to life: t.… (Today)

Welcome to game development where making menus and ui takes three times longer than making the actual game #livingthedream (Today)

@NoelFB @thegamedesigner @MattRix I play ddr every day and still don't go to sleep until 6am hahah (Today)

@NoelFB Whenever I flip my drawings and try to fix them I just end up making them warped in the opposite direction ;_; (Yesterday)

RT @theBanov: Everyone should probably retweet this tweet, because this game is gonna be baller: t.co/6jJ01UkEI4 (2 days ago)

@TristanParrish I'm 48 and corey is 24 ;D (2 days ago)

@TeddyDief nice p54 ! (3 days ago)

@MattThorson ya rite that probably has 40ms at least B) #Kappa (3 days ago)

oh my god the internet has been on point with otter gifs lately t.co/UIlHgaL0PQ (4 days ago)

RT @CapForeverRemix: Captain Forever Remix is out now! 15% off week-one sale! t.co/J8DOYJ3vN3 t.co/FfOKzrtPs7 (4 days ago)

@gritfish haha awesome! I'm glad it still works (4 days ago)

@TeddyDief he enjoys the finer things in life (4 days ago)

@TeddyDief adult Teddy is like "dude... I just brewed you some fresh coffee lets DO THIS!" and does a backflip (4 days ago)

@dannyBstyle maybe just go by "your majesty" from now on (5 days ago)

@MANvsGAME like a leaf in the wind (5 days ago)

@phubans @supershigi Phuuuuuubaaannns *studio audience laughter* (5 days ago)

follow
search

2014 - 2 - 10 / 1:08 pm / otter

Flippy Flop Source

Flippy Flop Source

Yesterday I made a quick game called Flippy Flop using Otter. The whole thing only took me two hours or so, and the end result ended up being a relatively clean coded game.

I decided to add the Flippy Flop source code to the Otter source repository on BitBucket in the Examples folder. So now when you grab Otter you'll also get the source for the Otter Pong Game, and the amazing Flippy Flop.

Flippy Flop makes use of the EventRouter included in Otter. The EventRouter was originally authored by some smart Phoenix locals, and is used a lot in their Unity projects. Since it was just a C# implementation I grabbed and it stuck it in Otter. The EventRouter is all about following the Observer pattern. It can be a little weird to use at first, but I'm beginning to see the appeal of it.

(Disclaimer: There may be some bugs in the source for FlippyFlop. I didn't really check it over for memory leaks, which can easily pop up when using an Event system. If you don't make sure you're unsubscribing from events when objects are removed, or clearing the event router, you might find yourself in memory leak city.)

If you have any questions about Otter, or the source code of the game, check out the Otter forums or leave a comment below.

2 Comments
Avatar

2014 - 2 - 10 6:15 PM

Alex

Awesome! I'll give it a shot tonight -- I've been meaning to check out Otter for some time now; it really seems to be coming along.

I think there's a minor typo above? "If you don't make sure you're subscribing from events when objects are removed..." Should be "unsubscribing?"

Avatar

2014 - 2 - 11 1:47 AM

Kyle

Yep! Fixed ;D

Avatar

Post your comment!

POST COMMENT

about

About

Hi there, my name is Kyle, and I'm a kid disguised as a grown up. I'm making video games and living the indie game developer life in Tempe, Arizona. Here you will find my thoughts, games, websites, doodles, and other stuff like that. I worked on Snapshot, Offspring Fling, and a whole bunch of other games. I also created and maintain Otter, a 2d game making framework. If you want to get a hold of me use the form on the bottom of the page, leave a comment, or just tweet at me. I try to post three times a week. Thanks for stoppin' by! You're the coolest.

facebook

videos

Do you want to make a Let's Play of one of my games, or a just a video featuring footage of my games? You have my full permission to do so! Even if you are monetizing your videos, you still have my full permission to use any footage from any of my games. Go for it!

contact

Your message has been sent! Thanks :)
SEND MESSAGE