Introduction and a few questions

Hello, my name’s Dave and I’ve wanted to make games my whole life. I work as a web developer and Corona has given me a giant leap forward in realizing that dream. I know I should start small, so I picked one of the simplest games I could think of, a basic version of the card game War. I’ve put the source up on Github:

https://github.com/david-torres/cardwar

Being fairly familiar with Python and Javascript, Lua seemed very natural to me. However, I’d appreciate some feedback on how I’ve structured my project and whether or not I’ve done anything particularly cringe-worthy.

The main issue bothering me at the moment is that my background image doesn’t fill the screen in the (iPad) simulator and only a corner of the entire game surface displays on my device (iPad 3).
Can anyone explain how to fix my settings to address this?

I’d also like help in understanding how I can fix the transitions. Currently, when the second player plays their card, the transition to the play area jumps immediately to the transition to the winning player’s stack. I’d like to allow the first transition to complete before firing the second one.
How would I accomplish that?

Thanks in advance, Corona is awesome! [import]uid: 146949 topic_id: 26282 reply_id: 326282[/import]

Hey there Dave, welcome to the community!

I cannot personally review all of your code (time constraints) although it sounds like an interesting project so hopefully someone else in the community may take a look and have some advice.

What I can advise you on the is the scaling issues; make sure you have scaling set in your config.lua file (see the sample code config.lua files for examples) - often it is as simple as that :slight_smile:

Peach [import]uid: 52491 topic_id: 26282 reply_id: 106694[/import]

Thanks for the response, I managed to get the background to display properly in the simulator but I still cannot get it to display correctly on my device. I’ve looked at various sample projects, in particular Fishies iPad, however I haven’t been able to find examples for iPad 3. Am I supposed to define height and width at 2048×1536? How can I support both the new and older models (1024×768) if I do that? Or it just supposed to scale? I don’t understand what I’m doing wrong. [import]uid: 146949 topic_id: 26282 reply_id: 106814[/import]

@detour_ i think this guide will make things clearer: http://blog.anscamobile.com/2010/11/content-scaling-made-easy/ [import]uid: 84637 topic_id: 26282 reply_id: 106828[/import]

I’ve tried to follow the “magic recipe” as outlined in the article “Content Scaling Made Easy” without success. Maybe someone could direct me to an example project that displays correctly? I’ve attached screenshots along with the other projects I’ve tried, nothing display correctly on the device.

Fishies (provided example code)

SimplePool (http://developer.anscamobile.com/content/simple-pool-ipad)

Breakout (from the book “Corona SDK Mobile Game Development: Beginner’s Guide”)

So I’ve gathered from reading other forum posts that its a known issue with the current “stable” build that is publicly available. Why couldn’t someone just come out and say that instead of leading me to believe I’m doing something wrong? Seems a bit shady, no? Just put a warning on the download page, “This build is known to not work correctly with the iPad 3.” Would have saved me a bit of headache. Why wouldn’t the fix be made available since it seems to have been resolved in a daily build long ago? Cherry pick the revisions that fix it and publish a new trial version. Why offer a trial product that’s known to be broken? Honestly frustrated and annoyed. As much as I loved this product starting out I’m regretting having committed so much time to it. [import]uid: 146949 topic_id: 26282 reply_id: 110159[/import]

Hey there,

Sorry you feel it’s “shady”, I wasn’t personally aware 704a had issues on the new iPad although it seems to with a test build I just did. (Though admittedly I was not thorough and did not trouble shoot.)

The point of the trial product is to let you learn Lua, learn how to use Corona and write your app.

Your app can still be written, tested in the Corona simulator, etc - the product is by NO means broken - it just wont display correctly on the new iPad until you update.

That said, you will be pleased to know a new stable build is imminent - you should be testing on your “iPad 3” by the time is week out :wink:

I hope that alleviates some of your concerns :slight_smile:

Peach [import]uid: 52491 topic_id: 26282 reply_id: 110242[/import]