How To Create A Simple Pogram
Want to become a programmer or game developer. With a bit of practice anyone can become a great programmer! I will teach you how to create a simple program.
Things You'll Need:
1. A computer or Laptop
2. Storage
3. Corona SDK (100% FREE unless you want to upgrade to premium)
4. Sublime Text or any other Text Editor Software(FREE)
About:
Corona SDK is an engine that allows you to create 2D games/apps for multiple devices. It is also 100% free, unless you want to upgrade to a premium version of the software. You can use this on Windows and Apple.
Step 1: Open Up Sublime
Once you open up the program Sublime Text proceed by naming the file main.lua, do not make capitalize any words in the name.
If you choose to want and organize the file by adding a comment so you know which file it is, you can do so by typing it two (--). The software will not read this code as it is a comment.
Step 2: Open the .lua file in Corona SDK
A simulator of an iPhone will appear once you click on the main.lua file with Corona SDK.
Nothing has appeared in the simulator, why? Well that is because you have not wrote a single line of code for the software to read.
Step 3: Typing a line of code
First, you'll start off by making it a local then proceed to name it.
We named it text, and now we are going to call it so it can be displayed by using (display.newText())
Once this is done you'll type what you want in the "", then use two numbers for both width and height.
Finally, using a font which I used was Futura, and the size of the text 30.
Step 4: Save and see your program
Now save your main.lua file.
If you are using a Mac it will be Command + S if you are on Windows it will be Ctrl + S
Let the program read the file and it will load your code.
You are now done!
AD:
If you did learn something new please try out my game for both iOS and Android or check out my website if you are bored.
Things You'll Need:
1. A computer or Laptop
2. Storage
3. Corona SDK (100% FREE unless you want to upgrade to premium)
4. Sublime Text or any other Text Editor Software(FREE)
About:
Corona SDK is an engine that allows you to create 2D games/apps for multiple devices. It is also 100% free, unless you want to upgrade to a premium version of the software. You can use this on Windows and Apple.
Step 1: Open Up Sublime
Once you open up the program Sublime Text proceed by naming the file main.lua, do not make capitalize any words in the name.
If you choose to want and organize the file by adding a comment so you know which file it is, you can do so by typing it two (--). The software will not read this code as it is a comment.
Step 2: Open the .lua file in Corona SDK
A simulator of an iPhone will appear once you click on the main.lua file with Corona SDK.
Nothing has appeared in the simulator, why? Well that is because you have not wrote a single line of code for the software to read.
Step 3: Typing a line of code
First, you'll start off by making it a local then proceed to name it.
We named it text, and now we are going to call it so it can be displayed by using (display.newText())
Once this is done you'll type what you want in the "", then use two numbers for both width and height.
Finally, using a font which I used was Futura, and the size of the text 30.
Step 4: Save and see your program
Now save your main.lua file.
If you are using a Mac it will be Command + S if you are on Windows it will be Ctrl + S
Let the program read the file and it will load your code.
You are now done!
AD:
If you did learn something new please try out my game for both iOS and Android or check out my website if you are bored.
Hi Vicente,
ReplyDeleteI always had an interest in programming and until now, I only know the basics. When I saw your blog, it caught my attention since it shows how to do a simple program without complicating anything. This can be a helping tool for me as I learn more about programming. My only suggestion is to explain for example what is the Corona SDK and where you can download it for people who are new to programming.
Thank you for your suggestion, I will be sure to include this in my edit!
DeleteI like how this blog contains images to give us an idea of what the next steps should look like. I also like how this blog is referencing how to program a phone or laptop, however I was wondering if there are any other products that you could include in this blog, depending on whether the other products (HP, Microsoft, Dell, ect.) have any software or apps that must be bought in order to program them. what other aspects of programing can benefit this audience with?
ReplyDeleteThanks for the suggestion, I did now include that it does work for Windows and Apple! I also included that everything is absolutely free unless you don't have a laptop or computer.
DeleteThis is pretty close to being perfect (for what it is). However, I think more could be done to make this more accessible to the reader and give it broader implications, so that the reader understands what they have learned from the process.
ReplyDeleteThere are some issues. First, the blog title is misspelled. There are other grammatical errors as well.
You skip multiple opportunities to expand the readers knowledge. For example, you let the reader know that the "local tag" will work towards
"making it a local then proceed to name it."
OK. What does local mean? Why are we making this program local? What are the other tags that you use? What are some other tags/codes that are available us when we're done making things say "hello world?" I'm not asking for a full list, but this blog would have had more of a purpose if this issue was addressed.