I am making this game,need any similar starter code example if available

I am planning to make a very simple game

Dog is running behind a person, if the dog touches the person, game over

Is there any starter code / game starter kit , any similar example available ??

I also want to see how images are used - i want to move the game from left to right…any example for this ? [import]uid: 120308 topic_id: 20801 reply_id: 320801[/import]

A good example for this would be in your Corona SDK folder. Go;
CoronaSDK > SampleCode > Sprites > JungleScene

That gives you and idea about how to lay it out.

Peach :slight_smile: [import]uid: 52491 topic_id: 20801 reply_id: 81813[/import]

thank you so much, i’ll check it out [import]uid: 120308 topic_id: 20801 reply_id: 81814[/import]

3 question,

  1. is there any tool available to make sprites ?
    like greenman.png from jungle scene ?? or we have to make all manually ??

  2. i have got this much, now next is i want to make a button on screen for jumping of this greenman, an sample for that ?

  3. and another thing i need to start is, i want like obstacle to come after uncertain intervals, like a stone or wood, how can i achieve it, is there any sample for that too ?

and are the games made by corona supported by 2.3 and above android versions ?? [import]uid: 120308 topic_id: 20801 reply_id: 81841[/import]

That’s two questions :wink:

  1. Yes; http://www.anscamobile.com/corona/tools/?ref=nav - some of those tools can help, however making sprites “manually” is not uncommon. There are also some websites providing sprites for use in apps under creative commons.

  2. Corona apps run on Android 2.2+ provided the device is at least ARMv7

Peach :slight_smile: [import]uid: 52491 topic_id: 20801 reply_id: 81844[/import]

  1. tool to make sprites: I use TexturePacker, which works great

  2. a button on screen:

myBtn= display.newImage("button01.png")  
myBtn.x = 300  
myBtn.y = 300   
local function btnPressed (event)  
 print ("BUTTON PRESSED!")  
end  
myBtn:addEventListener("touch", btnPressed)  
  1. read more tutorials

-finefin [import]uid: 70635 topic_id: 20801 reply_id: 81898[/import]

hiii,

thanks for the reply back. Actually i am 24 hours old in corona,

I have installed it successfully, Now i want tutorial for reference, what i want to do is -

  1. a person is running on road [reference jungleScrene]
  2. a manhole comes, a barrier comes [alternately after un-certain interval]…
  3. button to jump the man
  4. if man touches the manhole or barrier [he dies]

Now i just want example tutorials which has these kind of reference codes regarding my point no. 2,3,4.

Thanks a ton for your help !! [import]uid: 120308 topic_id: 20801 reply_id: 81902[/import]

no one’s born a master - but that also means that it’s always a good idea to begin at the beginning…

take a look at the “getting started” templates
http://developer.anscamobile.com/sample-code/getting-started

here you can learn how to add enterFrame listeners (for frame-based animations such as “moving obstacle to the left”) and timers (as for adding obstacle every x seconds).

after that check out the graphics templates at http://developer.anscamobile.com/sample-code/graphics to learn the handling of display objects.

if you know those basic concepts of corona/LUA, development of the game you have in mind will be a walk in the park.

-finefin [import]uid: 70635 topic_id: 20801 reply_id: 81912[/import]

thanks i was waiting for this reply since the time i posted :wink:

Thanks for being my mentor…

i’ll go through these for next 2,3 days
and then i plan my job.

Can i mail you [not for sample code] for suggestion during my learning week. I promise not to disturb you.

my mail address is ersaurabh101@gmail.com [import]uid: 120308 topic_id: 20801 reply_id: 81913[/import]

just post in the forums.
there are many devs that are willing to help, I’m just one of them :wink:
the more precise your questions are, the higher the chance other devs will answer them.

good luck

-finefin
[import]uid: 70635 topic_id: 20801 reply_id: 81919[/import]