These are chat archives for Azurasky1/DragonArena

15th
Apr 2016
Billy B.
@Azurasky1
Apr 15 2016 19:59
hey
@andreasonny83 this is much easier
Andrea Sonny
@andreasonny83
Apr 15 2016 19:59
howdy
Billy B.
@Azurasky1
Apr 15 2016 20:00
i sent you an email a moment ago - have you had a chance to check it out?
Andrea Sonny
@andreasonny83
Apr 15 2016 20:00
I think I already replied you back
Billy B.
@Azurasky1
Apr 15 2016 20:01
alright
Andrea Sonny
@andreasonny83
Apr 15 2016 20:01
so, how much experience do you have with GitHub and issues tracker in general?
Billy B.
@Azurasky1
Apr 15 2016 20:01
i used github for a project that i helped a friend with for the fun of it
also a very quick learner and can pick up just about anything with some independent research
issues tracker is unfamiliar to me
Andrea Sonny
@andreasonny83
Apr 15 2016 20:02
Git is a quite powerfull tool and it’s getting stronger every day
Billy B.
@Azurasky1
Apr 15 2016 20:03
yeah that part is evident for sure
Andrea Sonny
@andreasonny83
Apr 15 2016 20:03
basically, what you do with git when you work in a development team, is defining a road map
that is pretty straightforward in GitHub. You can see in your repo an Issue tab already: https://github.com/Azurasky1/2dgame/issues
there is where you will have to create some tasks and story before start developing
Billy B.
@Azurasky1
Apr 15 2016 20:05
interesting
Andrea Sonny
@andreasonny83
Apr 15 2016 20:05
yes
Billy B.
@Azurasky1
Apr 15 2016 20:06
i can get started on that right now, i have an idea of the different types of things that i would like to do, it's just choosing where to start
Andrea Sonny
@andreasonny83
Apr 15 2016 20:06
you will need to familiarize with the concept of Git flow as well, another powerfull tool that integrates with git
Billy B.
@Azurasky1
Apr 15 2016 20:08
reading up on that now
Andrea Sonny
@andreasonny83
Apr 15 2016 20:08
gitflow simply define different git tracks (branches). Every time you work on something new , you should open a feature branch starting from the develop branch
Billy B.
@Azurasky1
Apr 15 2016 20:08
right right i was reading something about that
Andrea Sonny
@andreasonny83
Apr 15 2016 20:08
in this way, the develop branch is alway clean and bug less
Billy B.
@Azurasky1
Apr 15 2016 20:09
branches in particular and how first the changes are made to the develop branch, and then a pull request is sent
upon confirmation that code is added to the main branch
Andrea Sonny
@andreasonny83
Apr 15 2016 20:09
then there is the master branch, that should point to the live website
Billy B.
@Azurasky1
Apr 15 2016 20:09
right right
Andrea Sonny
@andreasonny83
Apr 15 2016 20:09
right
and pull request means than you ask other developers to review your code before merging
in this way you are sure your code is good (more or less. for the serie: 4 eyes are better than 2)
Billy B.
@Azurasky1
Apr 15 2016 20:11
exactly
which is what makes git really awesome for collaboration
Andrea Sonny
@andreasonny83
Apr 15 2016 20:12
anyway. you create a task (or issue in GitHub language), then you open a feature branch for working on that issue, once is done, you open a pull request to merge that feature into the develop branch. et voila'
Billy B.
@Azurasky1
Apr 15 2016 20:12
i was trying to create branches manually, i suppose that gitflow streamlines that process
that is awesome
i am very excited
Andrea Sonny
@andreasonny83
Apr 15 2016 20:13
yes you can use your terminal and just: git branch develop, or git branch feature/my-first-feature-branch
this is what gitflow does
no magic
just name conventions
Billy B.
@Azurasky1
Apr 15 2016 20:15
reading a blog article about that and command line syntax now
this one in particular
Andrea Sonny
@andreasonny83
Apr 15 2016 20:16
good good
you can see a real example in one of my repo here: https://github.com/andreasonny83/carcassonne-scoreboard-client/issues
you don’t see any feature branch because they are deleted once the issue is closed and the code merged into Develop
Billy B.
@Azurasky1
Apr 15 2016 20:24
interesting so i can use git flow to quickly create branches, which make it easier for dividing up individual tasks
it looks like i will need to make a local clone of the repository
Andrea Sonny
@andreasonny83
Apr 15 2016 20:25
yes absolutelly
you should always start on your local machine, then pushing your code to a remote repository
your repo misses all the images btw
Billy B.
@Azurasky1
Apr 15 2016 20:31
ok i will add those
playing around with git bash right now
Andrea Sonny
@andreasonny83
Apr 15 2016 20:32
well done
do you have a Mac?
Billy B.
@Azurasky1
Apr 15 2016 20:32
no
i run windows
Andrea Sonny
@andreasonny83
Apr 15 2016 20:32
ok
Billy B.
@Azurasky1
Apr 15 2016 20:33
what is the command for updating my login info
i recently updated my information so i'm not able to clone the repository
Andrea Sonny
@andreasonny83
Apr 15 2016 20:33
what do you mean for "updating my login info"
Billy B.
@Azurasky1
Apr 15 2016 20:34
git bash requires github info in order to push changes, right
Andrea Sonny
@andreasonny83
Apr 15 2016 20:34
git config --global user.email "your_email@example.com"
git config user.name “Your github name"
does it work?
Billy B.
@Azurasky1
Apr 15 2016 20:37
updated my info getting some weird error
error setting certificate verify locations
Andrea Sonny
@andreasonny83
Apr 15 2016 20:37
what king of error
Billy B.
@Azurasky1
Apr 15 2016 20:37
troubleshooting it now
here is the full error
$ git clone https://github.com/Azurasky1/2dgame.git
Cloning into '2dgame'...
fatal: unable to access 'https://github.com/Azurasky1/2dgame.git/': error settin g certificate verify locations:
CAfile: C:/RailsInstaller/Git/mingw64/ssl/certs/ca-bundle.crt
CApath: none
Andrea Sonny
@andreasonny83
Apr 15 2016 20:39
do you have your certifate under C:/RailsInstaller/Git/mingw64/ssl/certs/ca-bundle.crt?
Billy B.
@Azurasky1
Apr 15 2016 20:39
oh that's weird
so the ssl directory is actually in the git folder
and that has the certs
Andrea Sonny
@andreasonny83
Apr 15 2016 20:40
here is a good guide to git configuration: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration
what is your git config --global --get user.name and user.email saying?
is that ok?
Billy B.
@Azurasky1
Apr 15 2016 20:42
the information is correct
didn't see anything in the guide about the particular issue i'm having though
Andrea Sonny
@andreasonny83
Apr 15 2016 20:42
are you trying to clone into an empty folder, right?
Billy B.
@Azurasky1
Apr 15 2016 20:43
how do i designate where the clone will be created
i'm gonna check out my tab on clone documentation
Andrea Sonny
@andreasonny83
Apr 15 2016 20:44
git creates a folder based on your repository name, so if you clone that one from your C:/, Git will create a 2dgame folder for you
anyway, that is a public Git repository, so everyone should be able to clone that repo without a specific certification
Billy B.
@Azurasky1
Apr 15 2016 20:45
i'm gonna try just moving the ssl directory
Andrea Sonny
@andreasonny83
Apr 15 2016 20:46
I’m not very expert using Win any more
in Linux and Mac is pretty different
Billy B.
@Azurasky1
Apr 15 2016 20:47
the bundle that it is looking for doesn't even exist
Andrea Sonny
@andreasonny83
Apr 15 2016 20:48
you can download SourceTree and stop your pain :) https://www.sourcetreeapp.com/
it’s a really great tool and it’s free
Billy B.
@Azurasky1
Apr 15 2016 20:53
so i got that and i get a similar error
i'm thinking i should just reinstall git
Billy B.
@Azurasky1
Apr 15 2016 20:59
there
i fixed it
was a pretty easy solution in the end
Andrea Sonny
@andreasonny83
Apr 15 2016 20:59
great
Billy B.
@Azurasky1
Apr 15 2016 21:01
sourcetree is up and running
Andrea Sonny
@andreasonny83
Apr 15 2016 21:04
sourcetree shold also have gitflow integrated
Billy B.
@Azurasky1
Apr 15 2016 21:06
so for the issue tracking
it looks like that isn't part of sourcetree
i'll just do that in the browser then
i'm going to add a couple things
Andrea Sonny
@andreasonny83
Apr 15 2016 21:09
yes, that’s in github only
is not part of git
is that store part of the game?
Billy B.
@Azurasky1
Apr 15 2016 21:13
yes
Andrea Sonny
@andreasonny83
Apr 15 2016 21:13
ok
Billy B.
@Azurasky1
Apr 15 2016 21:13
the user will earn currency from interacting with the dragon and other players that can be used at the store to purchase better items
Andrea Sonny
@andreasonny83
Apr 15 2016 21:14
maybe you can write down dome documentation in the Wiki section to explain the project you have in mind
Billy B.
@Azurasky1
Apr 15 2016 21:14
will do
Andrea Sonny
@andreasonny83
Apr 15 2016 21:14
I see
cool
Billy B.
@Azurasky1
Apr 15 2016 21:14
the store is one of the key elements to the game. will update that wiki now
Andrea Sonny
@andreasonny83
Apr 15 2016 21:14
any idea about my role in this project
Billy B.
@Azurasky1
Apr 15 2016 21:15
take a look at the code that i have written already for the store found in mygame.js
yes
Andrea Sonny
@andreasonny83
Apr 15 2016 21:16
do you want we develop the different part of the project together or you want me to stay focus on certain aspect only
can you upload the missing images as well?
Billy B.
@Azurasky1
Apr 15 2016 21:17
how familiar are you with requestAnimationFrame() and the canvas element
yes
will do that now
there are a few different parts of this project and i'm gonna write this all in the wikia but briefly
Andrea Sonny
@andreasonny83
Apr 15 2016 21:18
I used them only in that project I shared the link with you, but there is not too much about that. that is just about animating a sprite
maybe we work together until we define a path to follow
Billy B.
@Azurasky1
Apr 15 2016 21:20
ok, the main parts of this project are going to be: the canvas element and managing the different animations, the javascript that will keep track of all of the items and user properties
Andrea Sonny
@andreasonny83
Apr 15 2016 21:20
so you can write your code, I can review that and maybe I can work on creating a clean file structure and setting up a task runner like Gulp for automate the development process
Billy B.
@Azurasky1
Apr 15 2016 21:20
to start, it doesn't have to be complex, but i want a simple animation that is dependant upon user input
Andrea Sonny
@andreasonny83
Apr 15 2016 21:20
of course
Billy B.
@Azurasky1
Apr 15 2016 21:20
and we can smooth it out as we go along and add more frames
you see what i'm getting at?
Andrea Sonny
@andreasonny83
Apr 15 2016 21:21
then we will need the server side application as well
Billy B.
@Azurasky1
Apr 15 2016 21:21
of course
in addition another important element of all of this
we will need to add our own collision detection
like i said, i want to do this without any libraries
so that when the user interacts with the dragon, or another player, we can give them points, reduce health, add any particle effects that we want
Andrea Sonny
@andreasonny83
Apr 15 2016 21:21
that great, I love vanilla javascript
no images so far
Billy B.
@Azurasky1
Apr 15 2016 21:22
yeah i gave them very obscure titles so i am looking for them
we need the foundation first. the game should be bare bones and then we can add more
i'm going to get those images for you give me a second
Andrea Sonny
@andreasonny83
Apr 15 2016 21:22
fine
anyway, let’s use this repository for experimenting only and keep confidend with the project. We will need to redesign the entire project as soon as it becomes more complex
Billy B.
@Azurasky1
Apr 15 2016 21:24
yeah that's what i am anticipating
Andrea Sonny
@andreasonny83
Apr 15 2016 21:24
for experience I know that it’s better starting a project from scratch instead of refactoring a lot of code
Billy B.
@Azurasky1
Apr 15 2016 21:25
i am going to attempt to write a basic store with as little code as possible
for now, i want you to use drawImage() and clearRect() to animate a still image with user input, so the arrow keys basically
Andrea Sonny
@andreasonny83
Apr 15 2016 21:27
roger that
Billy B.
@Azurasky1
Apr 15 2016 21:27
afterwards, we take a look at each other's code, 2 sets of eyes better than one after all
Andrea Sonny
@andreasonny83
Apr 15 2016 21:28
:+1:
Billy B.
@Azurasky1
Apr 15 2016 21:29
make sure the user starts at the center of the canvas. ok, i'm gonna get started
Andrea Sonny
@andreasonny83
Apr 15 2016 21:36
hey
Billy B.
@Azurasky1
Apr 15 2016 21:36
yo
Andrea Sonny
@andreasonny83
Apr 15 2016 21:36
you have a player image already?
Billy B.
@Azurasky1
Apr 15 2016 21:36
i'll upload one for you to use
Andrea Sonny
@andreasonny83
Apr 15 2016 21:37
great
Billy B.
@Azurasky1
Apr 15 2016 21:40
i uploaded a sprite for you
it's small but shouldn't matter
Andrea Sonny
@andreasonny83
Apr 15 2016 21:40
ok tnx
Billy B.
@Azurasky1
Apr 15 2016 21:40
yep
Andrea Sonny
@andreasonny83
Apr 15 2016 21:41
the wizard one?
Billy B.
@Azurasky1
Apr 15 2016 21:41
the very same
Andrea Sonny
@andreasonny83
Apr 15 2016 21:41
is not a sprite. can I use somehing different?
Billy B.
@Azurasky1
Apr 15 2016 21:42
you can still animate it since it's an image
feel free to use whatever you find, we just need proof of concept
Billy B.
@Azurasky1
Apr 15 2016 21:58
pushed what i had to a branch entitled changes to js file
gonna grab dinner real quick
Andrea Sonny
@andreasonny83
Apr 15 2016 21:59
ok
Billy B.
@Azurasky1
Apr 15 2016 22:29
back
Andrea Sonny
@andreasonny83
Apr 15 2016 22:29
ok
i’m still working on rendering engine
Billy B.
@Azurasky1
Apr 15 2016 22:30
ok
Billy B.
@Azurasky1
Apr 15 2016 22:43
bare bones store is functional
Andrea Sonny
@andreasonny83
Apr 15 2016 22:56
I created something in my feature branch
but still no animations
Billy B.
@Azurasky1
Apr 15 2016 22:56
ok
i'll take a look
Andrea Sonny
@andreasonny83
Apr 15 2016 22:57
did you push your code?
Billy B.
@Azurasky1
Apr 15 2016 22:58
yes
i pushed it to uhhh
Andrea Sonny
@andreasonny83
Apr 15 2016 22:58
where I cannot see that
Billy B.
@Azurasky1
Apr 15 2016 22:58
changes to js file
are you able to see that branch
Andrea Sonny
@andreasonny83
Apr 15 2016 22:58
no, the last one is wizard
Billy B.
@Azurasky1
Apr 15 2016 22:59
it's in 2dgame.js in that particular branch
how come you can't see that
Andrea Sonny
@andreasonny83
Apr 15 2016 22:59
oh yes, now I can see that
Billy B.
@Azurasky1
Apr 15 2016 22:59
ok cool
which branch is yours in
Andrea Sonny
@andreasonny83
Apr 15 2016 23:00
because it’s on origin. I was expending to see that under the feature folder
Andrea Sonny
@andreasonny83
Apr 15 2016 23:07
I’m going to sleep man
Billy B.
@Azurasky1
Apr 15 2016 23:07
ok
good work today
:)
looking forward to how great the game will look in this final form, let's keep at it