These are chat archives for Azurasky1/DragonArena

16th
Apr 2016
Andrea Sonny
@andreasonny83
Apr 16 2016 13:44
hello
I finished the animation module and puhed a pull request
Billy B.
@Azurasky1
Apr 16 2016 19:26
yo
that's awesome
i'll take a look at it now
Andrea Sonny
@andreasonny83
Apr 16 2016 19:31
cool
Andrea Sonny
@andreasonny83
Apr 16 2016 19:39
is everything ok?
I know the sprite sucks :)
Billy B.
@Azurasky1
Apr 16 2016 19:41
checked out all your code looks good
Andrea Sonny
@andreasonny83
Apr 16 2016 19:41
is that similar to what you had in mind?
Billy B.
@Azurasky1
Apr 16 2016 19:44
just ran it in a browser
yes it was
the next step would be to allow it to interact with the game board
Andrea Sonny
@andreasonny83
Apr 16 2016 19:46
yes
Billy B.
@Azurasky1
Apr 16 2016 19:46
probably as simple as just updating coordinates whenever the user presses a key
Andrea Sonny
@andreasonny83
Apr 16 2016 19:46
so, where should the game board present in the game?
is that a different page? or always visible near to the canvas
Billy B.
@Azurasky1
Apr 16 2016 19:47
how do you mean
Andrea Sonny
@andreasonny83
Apr 16 2016 19:48
well, we need to define the main application stack
so we need to know if the game is going to be rendered in a single page or there are different pages
Billy B.
@Azurasky1
Apr 16 2016 19:49
i was thinking the same page
and whenever a user or enemy moves, the page is updated with the new coordinates
now i've never done a project like this before so i don't know how resource intensive it is to do something like that, especially when multiple players are involved at once
let me know if you have a better idea on how to do that
if you haven't done it already i would like to finish sprite movement across the canvas
Billy B.
@Azurasky1
Apr 16 2016 19:53
ok now correct me if i'm wrong
i was under the impression that the game board was itself the canvas
not two separate entities
Andrea Sonny
@andreasonny83
Apr 16 2016 19:55
hm, no I don’t think it would be a good idea to put html code inside a canvas
Billy B.
@Azurasky1
Apr 16 2016 19:55
i intended for the canvas to expand the size of the browser, similar to something like this: http://agar.io/
Andrea Sonny
@andreasonny83
Apr 16 2016 19:55
is better leaving the console board outside
hah aI like that
yes ok that is possible, but if you have a look at the Agar.io login page, that is html div pot in front of the canvas
so we can do something similar
let me update the wireframe
Billy B.
@Azurasky1
Apr 16 2016 19:57
ok, have a go
that's cool i'm looking at their code
the canvas dynamically expands to however much room you have in the browser... so if i move dev. tools to take up less room, the canvas gets bigger
i really want us to do something like that, too
Andrea Sonny
@andreasonny83
Apr 16 2016 19:59
yes it’s doable
Billy B.
@Azurasky1
Apr 16 2016 20:00
there's a conundrum that i want to solve, it's a problem that i have never worked with before, which is how the javascript will account for the difference in monitor resolutions
Andrea Sonny
@andreasonny83
Apr 16 2016 20:01
If you look inside my code, I’ve already defined var screenHeight = document.body.offsetHeight;
that is going to fetch the user document size
Billy B.
@Azurasky1
Apr 16 2016 20:02
The HTMLElement.offsetHeight read-only property is the height of the element including vertical padding and borders, in pixels, as an integer.
well that sure is useful
Andrea Sonny
@andreasonny83
Apr 16 2016 20:03
inside the function startGame() I set the canvas size to that value so you can see the canvas is rendered in full screen
Billy B.
@Azurasky1
Apr 16 2016 20:05
ok
let's change the background color of the canvas
i'll do that
i was thinking white for now
Andrea Sonny
@andreasonny83
Apr 16 2016 20:07
I’m changing the file structure. will be ready in a couple of minutes
Billy B.
@Azurasky1
Apr 16 2016 20:07
ok :)
Andrea Sonny
@andreasonny83
Apr 16 2016 20:09
pull request sent
we’re going to work setting develop as our main branch and we forget about the master branch for a while
master should be use for the releases
so, if you go inside your repository’s setting, you should set Develop as default branch for best practice
in this way, all the pull request are automatically send to the develop branch instead of master
Billy B.
@Azurasky1
Apr 16 2016 20:13
good plan. done
Billy B.
@Azurasky1
Apr 16 2016 20:48
finished some potion logic
Andrea Sonny
@andreasonny83
Apr 16 2016 20:49
and I’m done with the store integration
pull request sent
Andrea Sonny
@andreasonny83
Apr 16 2016 21:05
hove you seen the implentation?
Billy B.
@Azurasky1
Apr 16 2016 21:06
yea
the store is super clunky visually
i have little practice with positioning of div containers
so when i built it, it was just a lot of experimentation, trying to get things where i want them
Andrea Sonny
@andreasonny83
Apr 16 2016 21:07
yes sure we need to do some restyling
Billy B.
@Azurasky1
Apr 16 2016 21:09
so generally each user should have health and i was thinking we display that above each player in-game with a <progress> bar
just switch up the values when an interaction happens (collision)
and probably a box at a corner of the screen to display relevant information like user.health, user.balance
i'm learning collision detection, found an interesting tutorial on that and other relevant game concepts: https://vimeo.com/105955605
what do you think about those ideas
Billy B.
@Azurasky1
Apr 16 2016 21:15
gonna go shower and grab dinner, think about those ideas i mentioned
Andrea Sonny
@andreasonny83
Apr 16 2016 21:20
sure
Billy B.
@Azurasky1
Apr 16 2016 22:52
back
so since a lot of the time we won't be on at the exact same time i'll post any progress that i have made in this chat then you can go and review it and i'll do the same for you
i'm gonna get started on all the stuff that i mentioned
Andrea Sonny
@andreasonny83
Apr 16 2016 22:57
Ok great
I'm done for today
Billy B.
@Azurasky1
Apr 16 2016 22:58
sure thing get some sleep
take care