Game in less than 150 lines of code with Corona - Speed Test

Hello!

As I said, I got inspired by Ed and his two recent “Mechanics in 250 Or Less With Corona”-projects and I decided to give it a go myself, and I ended up creating a fully functioning game with custom art in less than 60 minutes and under 150 lines of code.

The game consists of: 

  • Universal design and dynamic, high quality assets
  • Easily customisable difficulty (i.e. speed settings)
  • Easy to understand code, i.e. no special tricks or external modules used
  • Simple score & highscore system
  • Basic transitions, random touch sequences, etc.
  • All within a 1.53MB zip file!

 

The code should be bug free, but in the unlikely event that you find a bug, do let me know. Also, feel free to do anything you want with the code.

Total time spent on the project:

  • ~10min for initial planning
  • ~10min for searching for the font and the metal texture
  • ~10min in Photoshop for creating the buttons and other assets
  • ~25min for programming & debugging

Edit: Well, that was a bit embarrassing. I forgot to actually apply the @2x and @4x scaling in config.lua and I had misplaced the objects on the y-axis. :smiley: Now everything is fixed and the game actually runs on all phones and tablets. Oh, and I also adjusted the difficulty a bit.

Very interesting! I’m out of my studio to try it but download the project to my phone and it’s really easy to understand, as soon as I’m in my studio I’ll try it and let you know.

Seeing these things makes me think two things …

  1. with this example you could program my first game idea in 250 lines …

  2. I still do not understand why some forum users do not work as a team because when there are good ideas and development capabilities like these smells like a lot of money.

DoDi

I’m not sure what you mean by your first point. Seems like your thought ends abruptly. :stuck_out_tongue:

As for why people don’t necessarily team up, the reasons are numerous, but most common and important ones are probably these: 1) everyone has their own projects already, 2) drafting and managing proper contracts is a hassle and not something that a lot of people want to do or know how to do, 3) just starting a project with someone over the Internet can be difficult to manage, let alone finish.

Imagine that you and I are team, we could develop three or more games in a year easily in which you would only program and I would design and we can implement any change of part and part. what you have to have is discipline, know how to work with others, respect opinions and if you can not reach an agreement then you decide not to work as a team. There are different minds and not all harmonize equally, but, imagine finding a person that is almost 90% similar to your capacity for understanding. I only say that it would be more productive and you can take more ideas to the apps stores.

Well, that is the reason as to why game studios exist, i.e. more people will be able to divide the work and create more (and larger) games by working together.

I think that you missed the crucial point here. I would argue that everyone on these forums who is developing games is doing so for one of two reasons (or both) and those are: creating games because it is challenging and fun, or creating games in order to make money.

Now, if you are just creating games for a challenge and the fun of it and no money is involved, then you might think that you don’t require any contracts. I have been a part of a few such projects where no such contracts were made, because we all knew that we’d get things done, the game would be great, etc. you name it. However, during the development, some disagreements are bound to rise and you need to ask yourself: who has the final say? What if the other team members don’t like that decision? What if people just get bored of the project or their lives take them elsewhere, like school, another job, etc.? Will they just leave and if they do leave, then what happens to the project? Can you and the remaining team members finish it within reason? Do those who left own any part of the project or is their stake forfeited? Without legally enforceable contracts, you may (and will) run into trouble at some point.

In the hopeful case that the end game is completed, then who has the responsibility of releasing it and paying the associated fees? If the game is really 100% free and won’t ever generate a cent of revenue, then this’ll probably be easier. But, if the game does intend to include some purchases, pay to download fee or ads, then you are talking about setting up a company and paying the team members somehow, for which you require contracts. You’d also run into the issues of who owns the rights to the IP, i.e. can every team member use the code, name, assets, etc. for future projects and do they need to involve others, etc.

Take the two of us, for instance. One of my, and I presume everyone else’s favourite things about game development, is the design part. So, we’d both want to do that. Then, if I’d do most or all of the programming, we’d be left with marketing, visuals and other assets, etc. I have varying degrees of experience in all of the aforementioned fields through academic study and years of consulting, web and graphic design and game development. Now, I wouldn’t be interested in just creating games for fun, even though it is a lot of fun. Then we’d be left with two alternatives: we’d share the potential future profits of our games or one of us hires the other to work on the game. The idea of sharing unknown and uncertain future profits doesn’t interest me as I have my own projects that offer that, plus I’d have to only pay my existing team for their work and I retain the creative freedom. Now, if you’d want to hire me for projects, that’d be fine as then I would be paid to do what I love and I wouldn’t have to take any risks or worry about the possible future profits or other issues, because everything would be detailed in my contract.

Now, I don’t know how old you are, or what your level of experience is, but you sound a bit like I did when I was starting out, i.e. naive. You will probably be burned a few times on group/team projects, like I have, and afterwards you’ll start to understand my point-of-view.

Interesting. Respectable user of the forum, I am an adult just like you. More than half of my life I have worked as a sound engineer in a well-known studio in my country, because of contract and royalty payments I can not mention his name, but, I am 100% sure that if you listen to music since 1996, you have heard my music on the radio of your car, no matter where you are (US, Spain, Latin America, etc). That said, I no longer find myself in that joy of making music, which is what I like so much, for personal reasons. Believe me, I understand very well what a contract is, dealing with whimsical people, blah, blah, blah … And the only thing I have left is the upbringing since childhood that has led me to achieve everything that I believe. I have a bachelor’s degree in psychology and another in sound engineering, without counting all graphic design seminars, video production and high-standard programs in the television production environment.

Whenever I’m going to start a project, you have to do a pre-job and evaluate everything. The idea must be good from beginning to end in which the work period must be productive and comply with time and quality standards until it is released. And that avoids everything you just explained to me which at this moment I think I’ve lived that first and have more bad experiences. I’m not in a position to hire anyone. I do not have why, I have my skills just like you. I imagine that if I give you a musical keyboard you will not be able to play the fifth symphony of Beethoven with eyes close just like I could not code a game in 150 lines, yet. But it’s not about that, it’s about getting good interpersonal relationships where ideas flow and materialize faster to make money more efficiently.

When I see this game of 150 lines, I see a game that can make good money just by changing some details, adding a psychology or hook factor to retain users and monetize it. But I imagine that was not the purpose of creating this theme. I imagine you created it to show something in the forum or just for fun.

I also think that we are leaving the subject and the translator may not help to understand everything I want to say in the same way I would say it in my native language.

Thanks
DoDi

For sharing and developing ideas, forums like these work well. Starting private conversations work even better, as it helps everyone feel that their thoughts are… well, more private. :stuck_out_tongue: And as you said, changing ideas and talking about them is the best way to improve them by leveraging everyone’s personal skills and experiences.

It could very well be that we are veering off topic. But, if you do want to do anything with the project, change it in any (and every) way, such as create a commercial project, please feel free to do so. I’ll be sure to download it!

@Spyric, Nice work!  It must feel good to have a completed project in a couple hours or less.  I’m inspired. 

Very interesting! I’m out of my studio to try it but download the project to my phone and it’s really easy to understand, as soon as I’m in my studio I’ll try it and let you know.

Seeing these things makes me think two things …

  1. with this example you could program my first game idea in 250 lines …

  2. I still do not understand why some forum users do not work as a team because when there are good ideas and development capabilities like these smells like a lot of money.

DoDi

I’m not sure what you mean by your first point. Seems like your thought ends abruptly. :stuck_out_tongue:

As for why people don’t necessarily team up, the reasons are numerous, but most common and important ones are probably these: 1) everyone has their own projects already, 2) drafting and managing proper contracts is a hassle and not something that a lot of people want to do or know how to do, 3) just starting a project with someone over the Internet can be difficult to manage, let alone finish.

Imagine that you and I are team, we could develop three or more games in a year easily in which you would only program and I would design and we can implement any change of part and part. what you have to have is discipline, know how to work with others, respect opinions and if you can not reach an agreement then you decide not to work as a team. There are different minds and not all harmonize equally, but, imagine finding a person that is almost 90% similar to your capacity for understanding. I only say that it would be more productive and you can take more ideas to the apps stores.

Well, that is the reason as to why game studios exist, i.e. more people will be able to divide the work and create more (and larger) games by working together.

I think that you missed the crucial point here. I would argue that everyone on these forums who is developing games is doing so for one of two reasons (or both) and those are: creating games because it is challenging and fun, or creating games in order to make money.

Now, if you are just creating games for a challenge and the fun of it and no money is involved, then you might think that you don’t require any contracts. I have been a part of a few such projects where no such contracts were made, because we all knew that we’d get things done, the game would be great, etc. you name it. However, during the development, some disagreements are bound to rise and you need to ask yourself: who has the final say? What if the other team members don’t like that decision? What if people just get bored of the project or their lives take them elsewhere, like school, another job, etc.? Will they just leave and if they do leave, then what happens to the project? Can you and the remaining team members finish it within reason? Do those who left own any part of the project or is their stake forfeited? Without legally enforceable contracts, you may (and will) run into trouble at some point.

In the hopeful case that the end game is completed, then who has the responsibility of releasing it and paying the associated fees? If the game is really 100% free and won’t ever generate a cent of revenue, then this’ll probably be easier. But, if the game does intend to include some purchases, pay to download fee or ads, then you are talking about setting up a company and paying the team members somehow, for which you require contracts. You’d also run into the issues of who owns the rights to the IP, i.e. can every team member use the code, name, assets, etc. for future projects and do they need to involve others, etc.

Take the two of us, for instance. One of my, and I presume everyone else’s favourite things about game development, is the design part. So, we’d both want to do that. Then, if I’d do most or all of the programming, we’d be left with marketing, visuals and other assets, etc. I have varying degrees of experience in all of the aforementioned fields through academic study and years of consulting, web and graphic design and game development. Now, I wouldn’t be interested in just creating games for fun, even though it is a lot of fun. Then we’d be left with two alternatives: we’d share the potential future profits of our games or one of us hires the other to work on the game. The idea of sharing unknown and uncertain future profits doesn’t interest me as I have my own projects that offer that, plus I’d have to only pay my existing team for their work and I retain the creative freedom. Now, if you’d want to hire me for projects, that’d be fine as then I would be paid to do what I love and I wouldn’t have to take any risks or worry about the possible future profits or other issues, because everything would be detailed in my contract.

Now, I don’t know how old you are, or what your level of experience is, but you sound a bit like I did when I was starting out, i.e. naive. You will probably be burned a few times on group/team projects, like I have, and afterwards you’ll start to understand my point-of-view.

Interesting. Respectable user of the forum, I am an adult just like you. More than half of my life I have worked as a sound engineer in a well-known studio in my country, because of contract and royalty payments I can not mention his name, but, I am 100% sure that if you listen to music since 1996, you have heard my music on the radio of your car, no matter where you are (US, Spain, Latin America, etc). That said, I no longer find myself in that joy of making music, which is what I like so much, for personal reasons. Believe me, I understand very well what a contract is, dealing with whimsical people, blah, blah, blah … And the only thing I have left is the upbringing since childhood that has led me to achieve everything that I believe. I have a bachelor’s degree in psychology and another in sound engineering, without counting all graphic design seminars, video production and high-standard programs in the television production environment.

Whenever I’m going to start a project, you have to do a pre-job and evaluate everything. The idea must be good from beginning to end in which the work period must be productive and comply with time and quality standards until it is released. And that avoids everything you just explained to me which at this moment I think I’ve lived that first and have more bad experiences. I’m not in a position to hire anyone. I do not have why, I have my skills just like you. I imagine that if I give you a musical keyboard you will not be able to play the fifth symphony of Beethoven with eyes close just like I could not code a game in 150 lines, yet. But it’s not about that, it’s about getting good interpersonal relationships where ideas flow and materialize faster to make money more efficiently.

When I see this game of 150 lines, I see a game that can make good money just by changing some details, adding a psychology or hook factor to retain users and monetize it. But I imagine that was not the purpose of creating this theme. I imagine you created it to show something in the forum or just for fun.

I also think that we are leaving the subject and the translator may not help to understand everything I want to say in the same way I would say it in my native language.

Thanks
DoDi

For sharing and developing ideas, forums like these work well. Starting private conversations work even better, as it helps everyone feel that their thoughts are… well, more private. :stuck_out_tongue: And as you said, changing ideas and talking about them is the best way to improve them by leveraging everyone’s personal skills and experiences.

It could very well be that we are veering off topic. But, if you do want to do anything with the project, change it in any (and every) way, such as create a commercial project, please feel free to do so. I’ll be sure to download it!

@Spyric, Nice work!  It must feel good to have a completed project in a couple hours or less.  I’m inspired.