Runner Template for Corona

Same here, if you could provide a video please. [import]uid: 7475 topic_id: 16123 reply_id: 83765[/import]

Thank you KeepTrying (:
Yep, that video is from the Gamesalad Version, but what you see there is almost the same as what you will get in the Corona one (there are just a few graphical changes). I’ll make a specific Corona video soon, meanwhile I’ll edit the first post with this one (; [import]uid: 8486 topic_id: 16123 reply_id: 83780[/import]

Gameplay video based on Game Salad but i own the latest version based on Corona and is pretty fast amazing.

http://www.youtube.com/watch?feature=player_embedded&v=3LYbBUbfmh8

The latest version features:

-dynamic paths management
-implementation of Spritesheets
-implementation of Corona Storyboard feature
-a score module that uses spritesheets to maximize performance
-3 different types of enemies and easy implementation of more
-parallax scrolling
-use of just one display Group, for better performance
-life system, add and subtract hearts
-keep jumping if touch is kept pressed, until the max height of the jump is reached
-save and load highscores [import]uid: 13454 topic_id: 16123 reply_id: 83770[/import]

H4ch1!

Love the template!

One question: The parallax script is giving like a 1 pixel offset when scrolling… (it like randomly but not always shows a one pixel offset between the end of the first and beginning of the second parallax bg!). How can I solve this? [import]uid: 32882 topic_id: 16123 reply_id: 84776[/import]

Hi mcb!
Glad you like it (:
For the parallax, are you changing the speed by any chance? If so, try to change it just by integer, without decimals.
What devices are you using? [import]uid: 8486 topic_id: 16123 reply_id: 84788[/import]

Yeah you’re righti’m changing the speed with a variable that uses math.sin output. I’ll try your decimal tip tommorow, thanks for the quick reply! (iPhone - Corona) [import]uid: 32882 topic_id: 16123 reply_id: 84815[/import]

How does the game run on ‘android’ devices? [import]uid: 33705 topic_id: 16123 reply_id: 88446[/import]

Hi zoid66,
didn’t had a chance to test properly on many Android devices, but so far I haven’t received any complaint regarding performance. Maybe someone that has tested it more carefully on Android devices can give more specific info (: [import]uid: 8486 topic_id: 16123 reply_id: 88500[/import]

Hi H4chi,

Do you have any thoughts on how I could add multiple enemies on the screen, for example, 5 flying enemies at once? Obviously I would stagger their entry to the scene.

I have looked over the template a number of times but I can’t figure out how enemies are spawned. It looks like they might be based on the blocks that are created but I’m not sure.

Any thoughts.

Thanks,
Eric [import]uid: 9059 topic_id: 16123 reply_id: 88697[/import]

Hi H4chi,

Working with the template… Running on Corona Simulator (Droid) You will notice the ‘Letter Box’ on the side of the app. Not a big deal but it looks like the sprit runs to the end.

Any ideas on how to get it to be smoother like on the iphone? Or how to get rid of the letter box on android? [import]uid: 33705 topic_id: 16123 reply_id: 88757[/import]

@ericshemcorona: Yep, the enemies are spawned based on the block (:
Basically, at the start of each new path, an enemy is randomly chosen and “prepared” to be spawned at a random block of the path.
Adding several enemies requires actually to “drop” this system, and go with something else. Anything you’d like (: For example, spawning an enemy every set amount of time.

@zoid66 To avoid that, go in config.lua and change from letterbox to zoomStretch (: It will obviously stretch the image, but to support all the different resolution of android and iphone you would need to use your own asset and modify the bounds.
For making it more smooth, Corona would need a power up on Android, or the core logic of the template would need to be rewritten. The template is already pretty optimized as it is, although could use different algorithms, but I went with the one I found most suitable for performance/learning of Corona.
[import]uid: 8486 topic_id: 16123 reply_id: 88826[/import]

Just a little up to say that my website is almost done (:
You can reach it at http://www.hangingames.com
There will be a few more templates to come in the near future (; [import]uid: 8486 topic_id: 16123 reply_id: 106053[/import]

Wow, maybe I should sale my game like this rather than on the stores :slight_smile: [import]uid: 118379 topic_id: 16123 reply_id: 106057[/import]

Hey Hachi your e-mail steel’s the same ? Please send me a dummy message because we need to talk :slight_smile: [import]uid: 13454 topic_id: 16123 reply_id: 106084[/import]

So you can get this for FREE on (not this exact thing, but a tutorial on it)

It’s a endless runner, has enemies, a distance keeper etc.

http://mobile.tutsplus.com/tutorials/corona/corona-sdk-create-a-side-scroller-from-scratch/

enjoy

ng [import]uid: 61600 topic_id: 16123 reply_id: 106088[/import]

@Beloudest: It’s good diaper money (: Nothing big to expect, my main work is freelancing, but I like to take a break and do templates as learning tools for others.

@KeepTrying: ops :smiley: My last email works, but I don’t check it out much. My new one is info[at]hangingames[dot]com

@nicholasclayg: I’m sure the community will be very happy to see that (: Just a few things though, that I guess are worth pointing out.
That tutorial miss several things compared to what I’m offering. For example there’s no gap between paths, the jump is not dynamic (lower or higher depending on how long you press), it doesn’t show how to make use of dynamic resolution to support ipad and iphone 4 with a single build, it doesn’t have a life system, it doesn’t save highscore, you can’t jump on top of enemies.
It also has more than a few bad optimizations, and doesn’t take into account many things that could help you to mold a runner template better (for example, the path logic in there is as simple as moving it back as soon as it reaches the end of the screen).
But I could go on with more. Lots of not optimized for loops (with a table look-up as a parameter), score as a text object (which is very bad. Apart from the fact that the rendering is way slower, it also fills up the string pool in lua pretty fast, needing a big contribution from the garbage collector which can hurt performance -surely that’s the easier way though-), functions called often (like math.random) not localized, and I could go on.
It’s nothing ground breaking (that could lead to troubles though, little by little), but I built the template with something different in mind.
Apart from showing one of the many ways that a Runner game can be based upon, I tried to put in there some lua tips and tricks to ensure a good code that can draw out the most of the SDK, while still keeping a simple as possible approach for people to learn from it.
Still, that’s a great resource, which probably draws more money through ads than I do without hurting the client wallet, and to anyone who can’t afford or is just not interested in my template, I will surely link it, thank you (: [import]uid: 8486 topic_id: 16123 reply_id: 106194[/import]

I’ve got reports of tinypay being down or not working properly lately.
Just want to say that in case you have an issue with it, and you want to get the template, just shoot me an email at info[at]hangingames[dot]com (:

Also, I’m almost done with a new template, based on the game Bust-A-Move. Not sure how much interest will be there about it, but it surely was interesting to work on (; Apart from the engine itself (grid, color match checks, checks if bubbles aren’t “attached” to anything anymore), it will feature a level editor, an example of how to load a level from a json file, and it will come with art from TsumakoArt (which you should totally hire for your projects, good rates, great work (; http://tsumakoart.wordpress.com)
Oh, and obviously purchasers of the Runner Template will get a good discount on it (: [import]uid: 8486 topic_id: 16123 reply_id: 117510[/import]