[Lua Ladies Game] Let's begin? Lesson 1 - before coding, let's prepare!

84 views
Skip to first unread message

Etiene Dalcol

unread,
Jul 9, 2015, 6:09:35 PM7/9/15
to lua-l...@googlegroups.com
Hello everyone!

Sorry for the delay, I was really caught up on things here!

This email is destined to the members of the Game Project! If you are  not a member of the game project, you can still read and follow the lessons but you will not be able to make modifications to the game code.  

So, for the beginning I guess we should start with how we are going to write our code and collaborate!

For writing our code we will use a normal text editor. It should be an editor that saves things in plain text (.txt), not full formatted documents (like .docx).
For Windows, you already have notepad and for Mac there is TextEdit.
There are better editors, however, that will make your work easier and provide more features than those basic editors, like highlighting of syntax of your code, which will make easier to spot mistakes. There are many good ones, but for now I recommend Sublime. They have downloads available for both Windows and Mac: http://www.sublimetext.com/2

There's also a type of software called version control. We use it to keep track of every alteration made to a code but it can be used for other things too, like other types of text or any media, such as images.

It can be useful for a variety of things:
- When you change the code but now it's bugged and you regret the last change, you can use the version control to revert it
- When you want the history of changes in the code, you can see the log
- When you want to share the code or work with someone else. Everyone can work in the same code from their computers then use the version control to merge it
- When you want to make a new feature in a code without interfering with the main code, you can separate it into branches and merge it later
- When you accidentally delete a part of the code, you can get it back because it's backed up in the version control
- And much more! :)

There are many different version control softwares but we will be using one called git for 3 reasons:
- It's very good and has a lot of features
- It's one of the most used so this knowledge might be useful for you later
- There's a website called github, that hosts software versioned with git for free and provides a very good interface to interact with our projects

Download git for Windows: https://msysgit.github.io/
Download git for Mac: http://git-scm.com/download/mac

You also need register an account on github: https://github.com/join

So, to recap: Sublime is a text editor. Git is the software that keeps track of our code. Github is like a social network where we can host git repositories.

After you register, tell me your usernames so we can follow each other and I can add you as a collaborator in the repository of the project so you are allowed to make modifications.

We will use git by typing commands at the terminal or cmd. On Mac, we will the Terminal (Screenshot below). On launchpad, it should be inside a folder named "Others", along with some other system utilities. On Windows, when installing git, normally it must install too a special cmd for git. Open that one. They all look very similar. :) You type a command, then you type enter. I configured mine to be pink because it's lovely but it doesn't matter! :) If you want, you can change yours too on the preferences. Some like it green because it's sooo matrix :D

Now you need to configure git. First type this command, but replace POTATO with your name.
git config --global user.name "POTATO"

Then type this one but replace ba...@potato.com with your email. Warning: it should be the same email you used to register your github account, so github can recognise that the code you make is indeed yours.
git config --global user.email ba...@potato.com



Now I'll wait and see if everyone was successful until this step so we can continue. It might happen that for some of you, the command line did not recognise the git command! Tell me if you run into any issues :)

In the meantime, we can also discuss what kind of game we want to make! 
Here are some examples:

We can make some known games, like mastermind, snake or duck hunt or make up our own game and our own rules! 
What do you prefer?

Cheers!
Etiene

Kelly Smith

unread,
Aug 4, 2015, 3:13:51 PM8/4/15
to Lua Ladies
My username is pacokickthetaco! 

Etiene Dalcol

unread,
Aug 5, 2015, 12:10:48 PM8/5/15
to Ana Carolina Pereira, lua-l...@googlegroups.com, Erica Riello, Kelly Smith, Crystal Cook, Ana Witzel, Katharina Bönsch, Helena Koch
I like your idea with the feminist symbols, but maybe with a space invaders dynamics? :D



2015-08-05 16:01 GMT+01:00 Ana Carolina Pereira <anali...@gmail.com>:
Hi! I'm sorry girls, I'm very very late. I've been traveling and having some trouble with the internet, but now I think i'ts everything ok, so, let's go.
My Github username is AnaCLP. 

During the installation I had to restart my notebook, (kernel data inpage error) and I don't know whatit means, but i'm looking for the solution. I hope it don't happen again.

Well, last night I was thinking about the game and I had a really nice dream. It may be sounds weird, but I think I can tell U.

I'm feminist activist and I really wanna do something to show this in a funny way, because I know this word scary a lot people. So I go to bed and I had a dream whit a game. It's like a kind of "Snake" but with a little purple feminist symbol that goes around eating craps like "patriarchate", "sexism", "racism", "violence","intolerance" and it's getting bigger and faster. Then when this is really full, it explodes in a rain of littlle hearts and more of tinny feminist simbols and flowers like a feminist explosion of love, to keep the idea to spread the feminism with love. 

Sounds stupid? Maybe.

What do you think?

xoxoxo

Ana Carolina Pereira
Graduanda em Medicina Veterinária - UFRGS
Estagiária em Comunicação na PMPA.
Desafio Porto Alegre Resiliente
(51) 9862.2304


2015-08-05 9:10 GMT-03:00 Erica Riello <ericaf...@gmail.com>:
I'm so sorry! I think I've now manage to configure Gmail to show Lua Ladies in VIP in my mailbox, so I hope I'll no longer miss any e-mails.

Well, I'd start with a very simple (and classic) game like Tetris, Space Invasers or Snake, because their interface is simple and they don't have any difficult rules, so it would be a nice way to get used to Lua and LÖVE. Then we could start thinking about a game with more sofisticated interface and perhaps some AI (like Pacman <3).

What do you think?

2015-08-04 11:36 GMT-03:00 Etiene Dalcol <dal...@etiene.net>:
Hello everyone,

I'm writing this email to verify if you are receiving the messages from the Lua ladies group, since nobody replied so far...

Have a great day,
Etiene



--
===============
Erica Riello
Aluna Engenharia de Computação PUC-Rio





--
Etiene Dalcol

Software Engineering student at ENSTA Bretagne and PUC-Rio
Sailor Developer http://sailorproject.org
Lua Ladies Founder 
http://lualadies.org

Ana Carolina Pereira

unread,
Aug 5, 2015, 12:14:14 PM8/5/15
to Etiene Dalcol, lua-l...@googlegroups.com, Erica Riello, Kelly Smith, Crystal Cook, Ana Witzel, Katharina Bönsch, Helena Koch
I like it! :D <3

Ana Carolina Pereira
Graduanda em Medicina Veterinária - UFRGS
Estagiária em Comunicação na PMPA.
Desafio Porto Alegre Resiliente
(51) 9862.2304


Etiene Dalcol

unread,
Aug 5, 2015, 12:17:29 PM8/5/15
to Ana Carolina Pereira, lua-l...@googlegroups.com
Unfortunately I don't have windows here so I'm not sure what you mean... When you open git bash, the config won't appear to you, you need to type those config commands on it and press enter. :)

2015-08-05 16:19 GMT+01:00 Ana Carolina Pereira <anali...@gmail.com>:
Hello! 
So I had a litlle problem when I was installing the Git Bash, so I lost those first  information who appears on prompt. Now I'm looking for help on the help index, but I'm getting more confused, so U can tell what I need to do to configure it to work? And I would like to chance the color too! :P

Thank's!

Ana Carolina Pereira
Graduanda em Medicina Veterinária - UFRGS
Estagiária em Comunicação na PMPA.
Desafio Porto Alegre Resiliente
(51) 9862.2304


2015-08-04 11:36 GMT-03:00 Etiene Dalcol <dal...@etiene.net>:
Hello everyone,

I'm writing this email to verify if you are receiving the messages from the Lua ladies group, since nobody replied so far...

Have a great day,
Etiene


Em quinta-feira, 9 de julho de 2015 23:09:35 UTC+1, Etiene Dalcol escreveu:

Etiene Dalcol

unread,
Aug 5, 2015, 1:11:22 PM8/5/15
to Ana Carolina Pereira, lua-l...@googlegroups.com
Dont worry! You replace the whole "<command>" with a command, <> included. So, for example, if you want to know what the command 'git' does, you type:
git help git
Then press enter. If you want to know how the command 'config' works, you type:
git help config
And so on. 
Right now we are going to use the config command. First, we need to assign your username. So you type this: 
git config --global user.name "POTATO"
But replacing POTATO with your github account name.
Now we do the same to config git to use your email, replacing ba...@potato.com with the same email you used to register on github.
git config --global user.email ba...@potato.com
Now git knows who you are, so when we start developing code we can see which parts are yours :)

2015-08-05 17:59 GMT+01:00 Ana Carolina Pereira <anali...@gmail.com>:

Right,but I need to know what command type on it. Let me try to explain better...

At the first time I open the prompt it shows me a kind of list with instructions, like:  "to configure color, type blablabla here" ...something like that. But now it's gone

Now there's only 2 lines saying: 

Run 'git help git' to display the help index (who let me more confused)

Run 'git help <command> to display help for specif commands.

That's what I'm trying to do but I think I need to put a  specific command between the < >. That's what I need to know. What kind of information I type there? <color> ? <start>? were I can find this information?

I try ' git help <command>" and the answer was: command not found, or sh.exe: syntax error near unexpected token 'new line'.


I'm sorry if I sound stupid... :( and thak's for helping me! :)



Em 05/08/2015 13:17, "Etiene Dalcol" <dal...@etiene.net> escreveu:

Unfortunately I don't have windows here so I'm not sure what you mean... When you open git bash, the config won't appear to you, you need to type those config commands on it and press enter. :)
2015-08-05 16:19 GMT+01:00 Ana Carolina Pereira <anali...@gmail.com>:
Hello! 
So I had a littlle problem when I was installing the Git Bash, so I lost those first  information who appears on prompt. Now I'm looking for help on the help index, but I'm getting more confused, so U can tell what I need to do to configure it to work? And I would like to chance the color too! :P

Thank's!

Etiene Dalcol

unread,
Aug 5, 2015, 1:18:54 PM8/5/15
to Ana Carolina Pereira, lua-l...@googlegroups.com
You can type 
git config user.name
or 
git config user.email

:D

2015-08-05 18:17 GMT+01:00 Ana Carolina Pereira <anali...@gmail.com>:
ok, so I think I was thinking rigth! hahahaha
I've already done those email and user things, how can I test if it works?

Ana Carolina Pereira
Graduanda em Medicina Veterinária - UFRGS
Estagiária em Comunicação na PMPA.
Desafio Porto Alegre Resiliente
(51) 9862.2304


Etiene Dalcol

unread,
Aug 5, 2015, 1:30:06 PM8/5/15
to Ana Carolina Pereira, lua-l...@googlegroups.com
Yes, it needs to be the same as github, thats why I told first to register on github. If by any chance the username is taken at github, you'll have to do the config again with the correct username :)

And Ana, don't forget to email to the group! :)

2015-08-05 18:27 GMT+01:00 Ana Carolina Pereira <anali...@gmail.com>:
EUREKA! 
 user name shows AnaCarolina@CAROL
user email shows anali...@gmail.com

but i need to put the same user name that Github? 

Ana Carolina Pereira
Graduanda em Medicina Veterinária - UFRGS
Estagiária em Comunicação na PMPA.
Desafio Porto Alegre Resiliente
(51) 9862.2304


psyne0

unread,
Aug 5, 2015, 3:22:20 PM8/5/15
to Etiene Dalcol, lua-l...@googlegroups.com
Hey! Sorry for missing the first email as well. Registered for github and got the config set up! My user name is psyne0. :) 


--
You received this message because you are subscribed to the Google Groups "Lua Ladies" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lua-ladies+...@googlegroups.com.
To post to this group, send email to lua-l...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lua-ladies/CAGYVmNihJOpkFjqGSVnNEkQ6PYcvr5%3D6MRBpb3JPH5HutKUPHg%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

Soni L.

unread,
May 26, 2016, 12:45:36 PM5/26/16
to Lua Ladies
Hey, in terms of editors, what about ZeroBrane Studio? It's a Lua IDE written in Lua, it also has a debugger!
Reply all
Reply to author
Forward
0 new messages