@ChevyRay awesoooooooooooome Suzy is mega adorbs (Today)

@ChevyRay did you get a PUPPY? :O (Today)

@Dan_Adelman yay free TSA massage (Today)

@jacobalbano Haha yeah I saw someone mention it and at first I thought they were talking about my barely functional broken UI stuff in Otter (Today)

Whoa what there's a GUI library for C++ called OtterUI? t.co/GdZRAZv6UZ I thought I had the only Otter named thing! :O (Today)

@championchap Are you talking about using a string instead of an enum for the keycode? SFML used enums for keys so that's what I did, is all (Yesterday)

@championchap Yooo feel free to hit me up at hi@kpulv.com if it seems like 140 characters isnt going to cover it (Yesterday)

RT @ChevyRay: Month #1 of my Patreon is coming around! t.co/g4MNyxcnGd My lovely supporters will get some art, concepts, and 3 game … (Yesterday)

@hexxxappeal @djcoreynolan @gabetelepak @garythellama @igdaphx @EndgameBar phoenix! (2 days ago)

@rustym FrankerZ (3 days ago)

RT @fucrate: only the very dumbest shit amuses me anymore t.co/PTydXaqCkW (3 days ago)

@kinifi Hmmm very slowly. Hard not to feel overwhelmed by all the stuff I have to do, and it's all stuff I've never done before! (3 days ago)

@kinifi Ohh going okay but haven't gotten shit done this week x_x (3 days ago)

@NoelFB noel facebook (4 days ago)

@infinite_ammo Hey you MAKE CAKES? I HAVE AN IDEA FOR A CAKE CAN YOU MAKE ME A BUNCH OF FREE CAKES (5 days ago)

@jacobalbano @MrWillHuxtable Oh I'm dumb they're just renamed (5 days ago)

@jacobalbano @MrWillHuxtable Whoa this has changed a lot. No more glide and glidemanager classes? :O (5 days ago)

@gabetelepak @JUEGOSRANCHEROS @SteveSwink @garythellama @djcoreynolan yeah our igda has been nothing but indies for years now (5 days ago)

@isabelboyd ahhh <3 I wish I was near any aquarium that had something going on, but alas I am in the desert. (6 days ago)

@infinite_ammo at least they all stayed outside when I was there :I (7 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 27 year old kid with adult powers. 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