How to start programming a game?
Posted: Mon May 26, 2014 4:36 pm
Firstly we need a text editor don't the basic "notepad" on windows.
Text Editors:
Windows: Notepad++(free),Sublime Text 2(i'm use it,paid but i'm use a license from the internet)
Mac: TextMate(free)
Linux: Kate(free)
Why i'm recommend this text editors?
- Because they are have colorful text and easy to use;)
Okay the basic we learned.But we need to learn programming language.
Start here: http://love2d.org/wiki/Getting_Started
Basic we are setup the engine because the 95% of players lazy to download the LÖVE 2D runtime package*
First we need to install love engine into the created folder.
Create a folder and call it to "engine" ( " " <--- this is not need )
So download installer(or zip) install(or extract) the files.
If you failure this step you're stupid and don't continue the tutorial.
( I'm doesn't pick a picture because this is an easier step and if you can't do it you're not able to create a real game so sorry :c )
Next step we need to create a bat file and put these text to the bat file.
Okay we completed (three-quarters of) the tutorial! No so sorry:D
Next step we are write the main.lua and the conf.lua
main.lua
Start an empty text save it to main.lua and start editing:
We need to type these text to the main.lua
This is only the Hello World Text not a game basic(you look i'm think)
conf.lua
Again start an empty text save it to conf.lua and start editing:
Again we need to type these text to the conf.lua
Now end start the bat file and look WORKING OH MY GOD :O
My folder looks:
My basic program looks:
Thanks for read it!
What i'm used to create this tutorial?
Keyboard
Mouse
Sublime Text 2
Windows
Google Translator(for 1-2 words)
Text Editors:
Windows: Notepad++(free),Sublime Text 2(i'm use it,paid but i'm use a license from the internet)
Mac: TextMate(free)
Linux: Kate(free)
Why i'm recommend this text editors?
- Because they are have colorful text and easy to use;)
Okay the basic we learned.But we need to learn programming language.
Start here: http://love2d.org/wiki/Getting_Started
Basic we are setup the engine because the 95% of players lazy to download the LÖVE 2D runtime package*
First we need to install love engine into the created folder.
Create a folder and call it to "engine" ( " " <--- this is not need )
So download installer(or zip) install(or extract) the files.
If you failure this step you're stupid and don't continue the tutorial.
( I'm doesn't pick a picture because this is an easier step and if you can't do it you're not able to create a real game so sorry :c )
Next step we need to create a bat file and put these text to the bat file.
Code: Select all
@ECHO OFF
start "" "engine\love" .
Next step we are write the main.lua and the conf.lua
main.lua
Start an empty text save it to main.lua and start editing:
We need to type these text to the main.lua
Code: Select all
function love.draw()
love.graphics.print("Hello World", 400, 300)
end
conf.lua
Again start an empty text save it to conf.lua and start editing:
Again we need to type these text to the conf.lua
Code: Select all
function love.conf(t)
t.modules.joystick = true
t.modules.audio = true
t.modules.keyboard = true
t.modules.event = true
t.modules.image = true
t.modules.graphics = true
t.modules.timer = true
t.modules.mouse = true
t.modules.sound = true
t.modules.thread = true
t.modules.physics = true
t.console = false
t.title = "Your Game"
t.author = "You"
t.screen.fullscreen = false
t.screen.vsync = false
t.screen.fsaa = 0
t.screen.height = 600
t.screen.width = 800
end
Now end start the bat file and look WORKING OH MY GOD :O
My folder looks:
My basic program looks:
Thanks for read it!
What i'm used to create this tutorial?
Keyboard
Mouse
Sublime Text 2
Windows
Google Translator(for 1-2 words)