Ghosts VS Monsters aka Angry Ghosts - Angry Birds Sample Game is Open Source

The question has been asked many times. Can Corona SDK be used to create Angry-Birds types of games?

Take a look at Ghosts vs Monsters.

Created exclusively for Ansca by Jonathan and Biffy Beebe.

Want the source code? It is fully open source at our Code Exchange pages

Sample took less than 36 hours to code, with music and graphics.

Carlos.
twitter.com/carlosicaza [import]uid: 24 topic_id: 4345 reply_id: 304345[/import]

I have to say that is pretty sweet. It almost makes me forgive you for the whole facebook thing (almost).

Is that game coming out (after adding more content probably)? It actually looks pretty good. [import]uid: 10835 topic_id: 4345 reply_id: 13547[/import]

Nope. You can do whatever you want with the source. Even create your own game and ship it.

If you use the images, you must give attributions to Jonathan and Biffy Beebe from Beebe Games.

Carlos. [import]uid: 24 topic_id: 4345 reply_id: 13548[/import]

Carlos… I wanna make sweet love to you, jonathan and Beebe!

this is awesome! More examples like this and corona gonna explode! [import]uid: 10657 topic_id: 4345 reply_id: 13552[/import]

I have to say that’s probably the best possible advertisement for Corona, plus now that it’s free to try I expect a big increase in users (it won’t be only me whining in the forums, yay!). You have to get it out there.

Also now that I can post on facebook again, you’re forgiven :wink: [import]uid: 10835 topic_id: 4345 reply_id: 13553[/import]

Best christmas gift ever!! Thanks [import]uid: 10426 topic_id: 4345 reply_id: 13577[/import]

Can you guys look at my twitter at twitter.com/carlosicaza and or help spread the word about the Ghost vs Monsters open source…

Thanks

Carlos [import]uid: 24 topic_id: 4345 reply_id: 13579[/import]

Wow! This is amazing. Well done to ANSCA & Beebe & Co! Marketing landslide! Thank you! [import]uid: 11904 topic_id: 4345 reply_id: 13581[/import]

Already retwitted. Cheers. [import]uid: 10835 topic_id: 4345 reply_id: 13583[/import]

More details on my blog post here:

http://jonbeebe.tumblr.com/post/2160877073/angry-birds-clone-with-corona-in-36-hours

Biffy and I really hope you guys enjoy it, and learn a lot from it!

Thanks for getting it up quickly Carlos!

P.S. For anyone with an iPhone 4 (or iTouch 4), build for device and test it! Game looks even better than in the simulator :slight_smile: [import]uid: 7849 topic_id: 4345 reply_id: 13596[/import]

For those interested, the “Wee!” sound effect when the ghost goes flying… That’s MY voice recorded with Audacity lol. All I did was go to Effects > Change Pitch (to make it much higher, of course) and then Effects > Change Tempo to get it the right length.

Audacity is free:
http://audacity.sourceforge.net/

With just the change pitch/change tempo settings in Audacity, the possibilities are endless when it comes to making tiny chipmunk-like voices (or even overly deep voices) for your games… and the end-product won’t sound anything like you so you don’t have to be embarrassed :slight_smile: [import]uid: 7849 topic_id: 4345 reply_id: 13605[/import]

Testing on Android, Galaxy S.

when in any level if you press the pause button then the level button,and answer yes to the are you sure want want to quit message, the App just hangs. In the simulator the app goes back to the beginning screen where you can tap play. but on the galaxy s the app, just hangs.

but if you win a board and click to return to the beginning on the popup menu, it goes back fine.

something fishy ( or ghostly ) going on here.

[import]uid: 11860 topic_id: 4345 reply_id: 16090[/import]

Firstly, thank you for this excellent example to learn and improve from.

I have a question . . .

This code works fine, but I am getting a warning message (although it doesn’t crash) that says . . .

'attempt to ‘setLinearVelocity’ (a nil value)

This is from the if shouldPoof then . . . function, under the ’ Make ghost disappear and show “poof” animation ’ heading.
It occurs when I restrart the level or go on to the next level.

I’ve tried many different ways to smooth out this glitch, including making sure the object is added as a physics body, making sure all timers and transitions are cancelled and even setting shouldPoof to nil on the restart and next level buttons etc. I’ve also included if statements but they didn’t do the trick.

Is everyone learning from this sample code getting the same warning message in the terminal window?

I’ve run out of ideas and am not seeing something (probably obvious as always :slight_smile: )

Anybody out there with more experience than me who has fixed this glitch?

Any ideas would be appreciated. [import]uid: 12941 topic_id: 4345 reply_id: 52222[/import]

Say you’re trying to set the velocity of X. do something like this:

[code]

if X ~= nil then

X:setLinearVelocity

end

[/code] [import]uid: 68741 topic_id: 4345 reply_id: 52225[/import]

Thanks buddy, will try this.

I never thought about checking if the object was nil to stop the function executing a nil value.

Good advice. [import]uid: 12941 topic_id: 4345 reply_id: 52276[/import]

Just mucking around and leaning from this great coding example and have made a ‘New Game’ button that will hopefully set the scores on both levels (1 and 2) back to zero.

Not sure how to go about setting the scores back to zero in the most effective way.

Should I reset each level, each with it’s own reset code or is there a more efficient way?

If anyone with more hands on experience has any advice on this it would be appreciated, as this is a whole new area for me and I’m currently wading through the ‘saving to file’ info.
Thankyou ANSCA & Beebe & Co for this great code to learn from! [import]uid: 12941 topic_id: 4345 reply_id: 52610[/import]

As a homework exercise, I’ve re-written the game in an object-oriented fashion. :slight_smile: I’ve posted it to the code share area if anyone’s interested.

http://developer.anscamobile.com/code/ghost-vs-monsters-oop

cheers, dmc
[import]uid: 74908 topic_id: 4345 reply_id: 58286[/import]