These are chat archives for monodop/cs413_puzzles

13th
Feb 2015
Sean Baquiro
@sebaqu11
Feb 13 2015 00:00
making the menu dance
Harrison Lambeth
@monodop
Feb 13 2015 00:00
sweet
I got snake controls and collisions in
Sean Baquiro
@sebaqu11
Feb 13 2015 00:01
that was fast
Harrison Lambeth
@monodop
Feb 13 2015 00:01
I'm trying to get them to render right with the corner pieces
Harrison Lambeth
@monodop
Feb 13 2015 00:35
Ok got the corner pieces working
Going to commit
Going to get multiple snakes to spawn now
Harrison Lambeth
@monodop
Feb 13 2015 00:43
boom done
kgranch
@kgranch
Feb 13 2015 00:43
claps
Now I gotta get the scoring system in there.
Harrison Lambeth
@monodop
Feb 13 2015 00:43
Do you think we should have a tail sprite?
Sean Baquiro
@sebaqu11
Feb 13 2015 00:44
nice, I'm gonna try make a nice background
we could
kgranch
@kgranch
Feb 13 2015 00:44
Yeah. It would be nice.
Harrison Lambeth
@monodop
Feb 13 2015 00:45
The menu is clipping for me
SnakeTRIS is under New Game
Sean Baquiro
@sebaqu11
Feb 13 2015 00:47
hmm
kgranch
@kgranch
Feb 13 2015 00:49
Change the y-coordinate.
On line 58.
Sean Baquiro
@sebaqu11
Feb 13 2015 00:50
I'm trying to figure out why it looks fine to me
Harrison Lambeth
@monodop
Feb 13 2015 00:50
Probably have different build resolutions
kgranch
@kgranch
Feb 13 2015 00:50
Yeah.
Harrison Lambeth
@monodop
Feb 13 2015 00:50
make sure you have
-swf-header 768:1024:60:000000 \
and something like
$(ADL) -profile tv -screensize 768x1024:768x1024 game.xml
for your test
Sean Baquiro
@sebaqu11
Feb 13 2015 00:52
oh ok I see it now
I'll fix it
kgranch
@kgranch
Feb 13 2015 00:54
in Main.hx
Sean Baquiro
@sebaqu11
Feb 13 2015 00:54
yup should be good now
you guys mind if I change transitionOut to something else?
Harrison Lambeth
@monodop
Feb 13 2015 01:00
not at all
Sean Baquiro
@sebaqu11
Feb 13 2015 01:00
cool
Harrison Lambeth
@monodop
Feb 13 2015 01:10
Okay, new commit
Harrison Lambeth
@monodop
Feb 13 2015 01:15
Sorry, one more
Forgot one thing
Harrison Lambeth
@monodop
Feb 13 2015 01:26
I am going to work on losing conditions
Dude this music is growing on me
Sean Baquiro
@sebaqu11
Feb 13 2015 01:27
right? lol
kgranch
@kgranch
Feb 13 2015 01:33
sebaqu11: Trying to get the score up in the game.
Puttin the int into a string, then displaying that in the game.
Harrison Lambeth
@monodop
Feb 13 2015 01:35
I added a losing condition
We should make a losing screen
Sean Baquiro
@sebaqu11
Feb 13 2015 01:36
how would you add a delay after a tween finishes, because when transitionOut is midway through finishing the gameboard is already rendered
would be nice to have like a 1 second delay to finish the transition animation
Harrison Lambeth
@monodop
Feb 13 2015 01:37
before starting the game?
Sean Baquiro
@sebaqu11
Feb 13 2015 01:37
yeah
Harrison Lambeth
@monodop
Feb 13 2015 01:37
So one thing you could do
hmm
ok so
Maybe we should move the board creation logic into new()
And then don't call startGame() until the transition is done
Sean Baquiro
@sebaqu11
Feb 13 2015 01:38
ah
Harrison Lambeth
@monodop
Feb 13 2015 01:38
the board can be created in new
and anything else that shouldn't run
and then everything else in startGame I think
kgranch
@kgranch
Feb 13 2015 01:42
Wait until the menu is removed.
kgranch
@kgranch
Feb 13 2015 01:56
I think that came out wrong.
I mean, while it's transitioning,
don't have the game appear.
Instead, wait until the removeChild() fn. is used
to remove the main menu.
Sean Baquiro
@sebaqu11
Feb 13 2015 02:09
well inkscape just crashed while making a background
lame
kgranch
@kgranch
Feb 13 2015 02:22
Heading back to my dorm now.
I'll get some dinner now within this hour.
David Terry
@FlintyFalcon
Feb 13 2015 03:11
-you guys wanted a tail sprite?
done
gimme a few to work on that now
Sean Baquiro
@sebaqu11
Feb 13 2015 03:11
made the new background, tell me what you guys think
Harrison Lambeth
@monodop
Feb 13 2015 03:11
cool ")
Sean Baquiro
@sebaqu11
Feb 13 2015 03:11
also added a score text in game but doesn't do anything yet
I'm going to take a break and get some food
jab743
@jab743
Feb 13 2015 03:19
That background looks awesome!
Harrison Lambeth
@monodop
Feb 13 2015 03:19
ok I'm back.
Went and had dinner
Need to figure out what to do next
Whoa didn't expect that background!
jab743
@jab743
Feb 13 2015 03:21
I think all we have left is the score and the end game screen
Harrison Lambeth
@monodop
Feb 13 2015 03:21
I want to add progressive difficulty, but that might depend on the score
jab743
@jab743
Feb 13 2015 03:22
oh yeah we could have the snakes move faster at a certain score or something
Harrison Lambeth
@monodop
Feb 13 2015 03:22
yeah
We need more colors
kgranch
@kgranch
Feb 13 2015 03:22
var score_textfield:TextField;

var score = 0;
var high_score = 1000;
Harrison Lambeth
@monodop
Feb 13 2015 03:22
I don't think 6 is enough
kgranch
@kgranch
Feb 13 2015 03:22
Here's the code I was doing for the score.
    score_textfield = new TextField(0, 0, string(score));
Harrison Lambeth
@monodop
Feb 13 2015 03:22
Okay
kgranch
@kgranch
Feb 13 2015 03:22
The deal here is that the score is an integer,
jab743
@jab743
Feb 13 2015 03:22
yeah I think its simple with 6 colors
Harrison Lambeth
@monodop
Feb 13 2015 03:23
Do you want me to hook the scores in?
kgranch
@kgranch
Feb 13 2015 03:23
but I'm trying to put that in a text field
Harrison Lambeth
@monodop
Feb 13 2015 03:23
Isn't Std.string a function?
David Terry
@FlintyFalcon
Feb 13 2015 03:23
Ok well i'm out of primary and secondary colors. Should I combine them? Like, have a blue snake with red highlights?
That seems too confusing
but maybe that would be good for later difficulties
Harrison Lambeth
@monodop
Feb 13 2015 03:23
They need to be distinct
I think orange/yellow and blue/purple might be too close also
jab743
@jab743
Feb 13 2015 03:24
they dont need to be primary and secondary colors, just different
Harrison Lambeth
@monodop
Feb 13 2015 03:24
yeah
kgranch
@kgranch
Feb 13 2015 03:24
Teal, Magenta, Vermillion
Harrison Lambeth
@monodop
Feb 13 2015 03:24
Are we going to have special snakes?
or blocks?
David Terry
@FlintyFalcon
Feb 13 2015 03:24
Well if purple and blue are too close then vermillion and green are going to be way to close
I'll work on it
jab743
@jab743
Feb 13 2015 03:25
what kind of special snakes?
Harrison Lambeth
@monodop
Feb 13 2015 03:25
like
I dunno
maybe a snake that clears snakes of the same color it hits?
like a wildcard?
jab743
@jab743
Feb 13 2015 03:25
so like a rambow snake
rainbow*
Harrison Lambeth
@monodop
Feb 13 2015 03:25
Or maybe it could clear all snakes of the color it hits
David Terry
@FlintyFalcon
Feb 13 2015 03:26
ok
jab743
@jab743
Feb 13 2015 03:26
so whichever snake it hits first it will clear all of that color?
Harrison Lambeth
@monodop
Feb 13 2015 03:26
yeah that'd be cool
David Terry
@FlintyFalcon
Feb 13 2015 03:26
so a rainbow snake would be easy, just all the colors already there
and would a white snake be too bland?
or brown?
Harrison Lambeth
@monodop
Feb 13 2015 03:26
maybe like a beige?
David Terry
@FlintyFalcon
Feb 13 2015 03:26
oh like sand color?
yeah alright
jab743
@jab743
Feb 13 2015 03:27
yeah
Harrison Lambeth
@monodop
Feb 13 2015 03:27
White would blend too much with the board
and speaking of which
should we redo the board grid?
David Terry
@FlintyFalcon
Feb 13 2015 03:27
i though the board was gray?
jab743
@jab743
Feb 13 2015 03:27
to change it to what?
Harrison Lambeth
@monodop
Feb 13 2015 03:27
The board is white
jab743
@jab743
Feb 13 2015 03:27
the board is white right now
Harrison Lambeth
@monodop
Feb 13 2015 03:28
I noticed something funky is happening with the game over
Anyway I'm going to add some sound effects to things
Sean Baquiro
@sebaqu11
Feb 13 2015 03:30
might be too hard to implement but at later difficulties we can have the snake change colors and when it lands have it lock a color lol
David Terry
@FlintyFalcon
Feb 13 2015 03:30
well shit
Harrison Lambeth
@monodop
Feb 13 2015 03:31
?>
David Terry
@FlintyFalcon
Feb 13 2015 03:31
since we don't have the tiles in the assetes folder and I didn't save them I'll have to try and remember what they looked like
oops
Harrison Lambeth
@monodop
Feb 13 2015 03:31
They're under old aren't they?
David Terry
@FlintyFalcon
Feb 13 2015 03:31
for the new colors
oh are they?
jab743
@jab743
Feb 13 2015 03:31
they are in the snaketrissprites
David Terry
@FlintyFalcon
Feb 13 2015 03:32
-oh sweet they are in old good call
Harrison Lambeth
@monodop
Feb 13 2015 03:32
cool
jab743
@jab743
Feb 13 2015 03:33
so are we going to have blocks on the board that the snakes cannot pass through?
Harrison Lambeth
@monodop
Feb 13 2015 03:34
I would like to
but we need a sprite for that
David Terry
@FlintyFalcon
Feb 13 2015 03:34
alright I'll make something for that.
Harrison Lambeth
@monodop
Feb 13 2015 03:34
By the way does anyone have the link for that sound generator palmer was talking about?
David Terry
@FlintyFalcon
Feb 13 2015 03:34
also
jab743
@jab743
Feb 13 2015 03:34
it wouldt be hard right, just a brown box or something?
David Terry
@FlintyFalcon
Feb 13 2015 03:34
bfxr
Harrison Lambeth
@monodop
Feb 13 2015 03:35
Yeah sure
kgranch
@kgranch
Feb 13 2015 03:36
I used that already to make some of the sound effects earlier.
Harrison Lambeth
@monodop
Feb 13 2015 03:36
Yeah I want to make a few other ones
David Terry
@FlintyFalcon
Feb 13 2015 03:38
Alright so I've got a decent sand color nailed down
so maybe like a pink snake?
like fluorescent freakin pink?
jab743
@jab743
Feb 13 2015 03:39
yeah
that would be fine
For the blocks that the snakes can not go through what is a good maximum number for the amount of blocks
David Terry
@FlintyFalcon
Feb 13 2015 03:44
How big is the board right now?
Harrison Lambeth
@monodop
Feb 13 2015 03:44
I'm sort of thinking they should appear over time maybe?
David Terry
@FlintyFalcon
Feb 13 2015 03:44
ok
Harrison Lambeth
@monodop
Feb 13 2015 03:44
and disappear?
I dunno
David Terry
@FlintyFalcon
Feb 13 2015 03:44
like in an animation?
i could make a couple of tiles
Harrison Lambeth
@monodop
Feb 13 2015 03:45
@jab743
David Terry
@FlintyFalcon
Feb 13 2015 03:45
like
jab743
@jab743
Feb 13 2015 03:45
hmm wouldn't that be hard to do with the snakes on the board?
David Terry
@FlintyFalcon
Feb 13 2015 03:45
one for when its about to show
one for when its there
Harrison Lambeth
@monodop
Feb 13 2015 03:45
You could just pick points until you hit a grid space that's empty
David Terry
@FlintyFalcon
Feb 13 2015 03:45
and one for when its almost timed out
jab743
@jab743
Feb 13 2015 03:46
hmm ok, where is the score being implemented?
Harrison Lambeth
@monodop
Feb 13 2015 03:47
I don't think there's anything committed yet
Is anyone working on hooking the score into the game yet?
I can add that in real quick
jab743
@jab743
Feb 13 2015 03:48
I thought that someone was working on it but im not sure
David Terry
@FlintyFalcon
Feb 13 2015 03:49
kyle mentioned it but he's afk right now i think
Sean Baquiro
@sebaqu11
Feb 13 2015 03:49
I was going to also but I got carried away on the background and stuff lol
Harrison Lambeth
@monodop
Feb 13 2015 03:50
@kgranch are you here?
@sebaqu11 can you get the new sprites packed in please? :)
Sean Baquiro
@sebaqu11
Feb 13 2015 03:53
yup
David Terry
@FlintyFalcon
Feb 13 2015 03:54
yeah my bad I don't have the software for it
Harrison Lambeth
@monodop
Feb 13 2015 03:54
Also, if you could rename the sprites so they all use the same color names too
(for all of the tails)
so Orange vs orange
David Terry
@FlintyFalcon
Feb 13 2015 03:55
shoot I wasn't paying attention to that my bad (again)
Harrison Lambeth
@monodop
Feb 13 2015 03:55
Just makes it easier to load them in
kgranch
@kgranch
Feb 13 2015 03:55
score_textfield = new TextField(150, 150, Std.string(score));
    this.addChild(score_textfield);
Yep. Here.
Harrison Lambeth
@monodop
Feb 13 2015 03:55
Ok
kgranch
@kgranch
Feb 13 2015 03:55
Added the score field, but it doesn't show up.
score_textfield = new TextField(150, 150, Std.string(score));
Sean Baquiro
@sebaqu11
Feb 13 2015 03:56
so for the tail sprites you want me to rename them to like SnaketailOrange or something?
Harrison Lambeth
@monodop
Feb 13 2015 03:56
No just like
Make sure the colors are spelled the same and have the same case
Orange_tail.png is fine
Sean Baquiro
@sebaqu11
Feb 13 2015 03:56
ok
jab743
@jab743
Feb 13 2015 03:56
So when one of the blocks is added in do we need to remove it? Or do we want to just keep adding more blocks?
Harrison Lambeth
@monodop
Feb 13 2015 03:57
@kgranch what kind of TextField is that?
There should be a way to clear blocks, or at least have a max number of them
Otherwise the whole board could be blocks lol
jab743
@jab743
Feb 13 2015 03:58
is there a way to access the score as an integer?
or will there be?
Harrison Lambeth
@monodop
Feb 13 2015 03:59
The score should be an int right..?
jab743
@jab743
Feb 13 2015 03:59
I think its a text field right now
kgranch
@kgranch
Feb 13 2015 03:59
Just a plain out text field.
Yes, the score is an integer.
But it's being converted into a string.
Harrison Lambeth
@monodop
Feb 13 2015 04:00
I can't find "plain out text field"
I found Flash.text.TextField
but that's the only one I could find for haxe/starling
jab743
@jab743
Feb 13 2015 04:00
does it start as an int somewhere in game?
Harrison Lambeth
@monodop
Feb 13 2015 04:00
I think it's only in Kyle's local branch
jab743
@jab743
Feb 13 2015 04:01
oh ok, thats why im confused
Harrison Lambeth
@monodop
Feb 13 2015 04:01
I don't see it in the master branch yet
kgranch
@kgranch
Feb 13 2015 04:01
    score_textfield = new TextField(250, 150, Std.string(score), "font");

    score_textfield.fontSize = 40;
    score_textfield.color = Color.WHITE;
    score_textfield.x = 150;
    score_textfield.y = 150;

    this.addChild(score_textfield);
I haven't submitted it yet, bc it's too unfinished to be usable.
Harrison Lambeth
@monodop
Feb 13 2015 04:02
and no compiler errors with that?
kgranch
@kgranch
Feb 13 2015 04:02
var score_textfield:TextField;

var score = 0;
var high_score = 1000;
No compiler errors.
Harrison Lambeth
@monodop
Feb 13 2015 04:02
huh. Can I see what imports you are using?
kgranch
@kgranch
Feb 13 2015 04:02
After adding
import starling.utils.Color;
I added these two to Game.hx:
import starling.utils.Color;
import Std;
Harrison Lambeth
@monodop
Feb 13 2015 04:03
I just can't find anything in the haxe docs about TextField
kgranch
@kgranch
Feb 13 2015 04:04
This too:
import starling.text.TextField;
Whoops.
Harrison Lambeth
@monodop
Feb 13 2015 04:04
Alright
That's what I was looking for
is font loaded in?
Try using "Verdana" or something
kgranch
@kgranch
Feb 13 2015 04:06
It has import starling.text.BitmapFont; in there already, but nothing.
It's all invisible.
David Terry
@FlintyFalcon
Feb 13 2015 04:07
alright i made the "armor" block
Harrison Lambeth
@monodop
Feb 13 2015 04:07
Try setting score to something bigger than 0
David Terry
@FlintyFalcon
Feb 13 2015 04:07
any other sprites we need?
Sean Baquiro
@sebaqu11
Feb 13 2015 04:07
maybe try mess around with the x,y coords also
Harrison Lambeth
@monodop
Feb 13 2015 04:07
150,150 SHOULD be in the screen
Sean Baquiro
@sebaqu11
Feb 13 2015 04:07
new spritesheet up
Harrison Lambeth
@monodop
Feb 13 2015 04:08
This is the existing score textfield: public var score:TextField = new TextField(490, 700, "Score:", "font");
Just noticed that
thanks @sebaqu11
Don't see it in the repo
Sean Baquiro
@sebaqu11
Feb 13 2015 04:09
forgot to push sync
should be there now lol
Harrison Lambeth
@monodop
Feb 13 2015 04:09
ok cool :P
I need to stop using : P
Sean Baquiro
@sebaqu11
Feb 13 2015 04:09
lol
Harrison Lambeth
@monodop
Feb 13 2015 04:14
Okay, new commit
snakes/tails, and sound effect for clearing snake
I'm trying to think if there should be a sound effect for snake slithering
I can't make anything sound good
Sean Baquiro
@sebaqu11
Feb 13 2015 04:15
someone would have to record themselves slithering
Harrison Lambeth
@monodop
Feb 13 2015 04:15
Or use the sound generator (which isn't working super well)
David Terry
@FlintyFalcon
Feb 13 2015 04:15
yeah i noticed it really doesn't do long sounds for looping
Harrison Lambeth
@monodop
Feb 13 2015 04:15
Yeah
David Terry
@FlintyFalcon
Feb 13 2015 04:16
also we've been have looping problems anyway
Harrison Lambeth
@monodop
Feb 13 2015 04:16
I'm going to implement down arrow functionality
to make the snake fall faster
Sean Baquiro
@sebaqu11
Feb 13 2015 04:23
gonna make the game over screen
Harrison Lambeth
@monodop
Feb 13 2015 04:26
ok
Can you add the sound effect for losing too?
Sean Baquiro
@sebaqu11
Feb 13 2015 04:28
sure
Harrison Lambeth
@monodop
Feb 13 2015 04:29
I hate how windows can't play sounds through windows media player when they are on your non primary hard drive
kgranch
@kgranch
Feb 13 2015 04:29
I'll record a quick sound.
Harrison Lambeth
@monodop
Feb 13 2015 04:30
I got one made for snake crawling
there's already one for game over I think
kgranch
@kgranch
Feb 13 2015 04:32
Got a slither sound ready.
Harrison Lambeth
@monodop
Feb 13 2015 04:37
Did you ever finish your score changes kyle?
I'm waiting on that to add difficulty progression
kgranch
@kgranch
Feb 13 2015 04:38
I did not finish those.
Harrison Lambeth
@monodop
Feb 13 2015 04:39
ok
I think I found the problem kyle
does our font contain numbers?
Because I think it doesn't
'doh
Sean Baquiro
@sebaqu11
Feb 13 2015 04:42
lol woops
Harrison Lambeth
@monodop
Feb 13 2015 04:43
But yeah
changing the font to "Verdana" made that obvious
jab743
@jab743
Feb 13 2015 04:46
So I tried to add in the block, and I created a block and a blocktile class, but when I try to add in the block variable like how the snake is added I get an error saying that Type name Snake is redefined from module Snake. What does that mean?
Harrison Lambeth
@monodop
Feb 13 2015 04:46
did you make your classes extend Tile?
jab743
@jab743
Feb 13 2015 04:46
Yeah blocktile does
Harrison Lambeth
@monodop
Feb 13 2015 04:46
ok
Can I see your code?
jab743
@jab743
Feb 13 2015 04:47
and block extends sprite
Oh, I found it... I for some reason had the class in block called snake...
Confirmed.
No number whatsoever.
*numbers
What was the name of that font again...
*font making website
Sean Baquiro
@sebaqu11
Feb 13 2015 04:51
literra
Harrison Lambeth
@monodop
Feb 13 2015 04:52
Well I was implementing score to see if I could figure out the issue, and I finished implementing it
I can commit it or wait or?
kgranch
@kgranch
Feb 13 2015 04:55
Gotta get the font fixed and put the numbers into their proper places first.
Harrison Lambeth
@monodop
Feb 13 2015 04:56
Yeah
I changed it to Verdana for testing and it seems to work
kgranch
@kgranch
Feb 13 2015 04:59
Does anyone know the font we used for the options.
Verdana looks out of place.
And bland.
Harrison Lambeth
@monodop
Feb 13 2015 05:00
Yeah of course but it's just a placeholder for now
I am going to commit so I can start working on difficulty and get to bed at a reasonable time
kgranch
@kgranch
Feb 13 2015 05:03
Go right ahead then.
Harrison Lambeth
@monodop
Feb 13 2015 05:03
I don't mean to step on your toes but there's not much time left
kgranch
@kgranch
Feb 13 2015 05:04
I'll submit whatever you didn't complete.
DO you want to upload it to CEFNS or should I?
I can easily do it.
Harrison Lambeth
@monodop
Feb 13 2015 05:04
Sure
Sean Baquiro
@sebaqu11
Feb 13 2015 05:12
commiting game over screen now
Harrison Lambeth
@monodop
Feb 13 2015 05:14
We need a level-up sound too I think
jab743
@jab743
Feb 13 2015 05:15
How do I resolve a merge conflict with the git shell?
Harrison Lambeth
@monodop
Feb 13 2015 05:16
I think you may need a merge tool or you will have to do it manually
Sean Baquiro
@sebaqu11
Feb 13 2015 05:17
hmm
not sure if I messed something up
but I lose the game as soon as the snake hits the red line from the top
kgranch
@kgranch
Feb 13 2015 05:22
Pressin down is what's screwing things up.
Harrison Lambeth
@monodop
Feb 13 2015 05:22
how so?
kgranch
@kgranch
Feb 13 2015 05:24
Sounds are playing randomly when I do it.
Harrison Lambeth
@monodop
Feb 13 2015 05:24
It's just that the sound manager can't keep up with playing the sounds I think
kgranch
@kgranch
Feb 13 2015 05:24
Also, the game erroneously exits when I lower the pieces too much.
Harrison Lambeth
@monodop
Feb 13 2015 05:25
There was a bug where the game wouldn't stop even after the object was disposed, but one of my commits fixed that
Sean Baquiro
@sebaqu11
Feb 13 2015 05:26
@monodop is the game working for you fine?
I think the merge conflict messed up something for me
Harrison Lambeth
@monodop
Feb 13 2015 05:27
I get gameover after hitting the top line
Sean Baquiro
@sebaqu11
Feb 13 2015 05:27
ok me too
Harrison Lambeth
@monodop
Feb 13 2015 05:28
really odd
Oh I see the issue
the merge messed up the logic
I'll fix it and commit hang on
Sean Baquiro
@sebaqu11
Feb 13 2015 05:29
cool
Harrison Lambeth
@monodop
Feb 13 2015 05:31
ok
committing
kgranch
@kgranch
Feb 13 2015 05:32
Are we submitting it through CEFNS?
jab743
@jab743
Feb 13 2015 05:32
Ok I fixed my conflict, but the game does end almost instantly.
Harrison Lambeth
@monodop
Feb 13 2015 05:33
not yet, gotta fix these conflicts lol
kgranch
@kgranch
Feb 13 2015 05:33
I know.
Harrison Lambeth
@monodop
Feb 13 2015 05:33
had mine ready right when you pushed @jab743 lol
kgranch
@kgranch
Feb 13 2015 05:33
But are we going to submit the game through there?
Harrison Lambeth
@monodop
Feb 13 2015 05:34
We have to right?
jab743
@jab743
Feb 13 2015 05:34
well I dont know what I did...
Harrison Lambeth
@monodop
Feb 13 2015 05:34
ok so you added the blocks in right?
Are they linked into the code or are they just created so far?
jab743
@jab743
Feb 13 2015 05:35
no, I couldnt figure out how to add them in, I tried to do it somewhat like the snakes but it wouldnt load them
kgranch
@kgranch
Feb 13 2015 05:35
But in the CEFNS folder,
I had to create the one for Proj 2 just now.
Harrison Lambeth
@monodop
Feb 13 2015 05:36
ok I committed the changes / merge conflicts
Do you want me to mess with it @jab743 ?
jab743
@jab743
Feb 13 2015 05:38
Uh yeah that might be faster. I can just look at what you did and figure out how to do it from taht
Harrison Lambeth
@monodop
Feb 13 2015 05:39
If not that's fine too :)
jab743
@jab743
Feb 13 2015 05:41
No, go ahead, Ill just look at what you diid
Harrison Lambeth
@monodop
Feb 13 2015 05:41
alright
By the way the game is super hard after like level 5
Sean Baquiro
@sebaqu11
Feb 13 2015 05:41
still trying to come up with a game over sound
jab743
@jab743
Feb 13 2015 05:44
haha awesome
kgranch
@kgranch
Feb 13 2015 05:48
Replacing the one I made.
Yikes.
Sean Baquiro
@sebaqu11
Feb 13 2015 06:01
committed game over sound
Harrison Lambeth
@monodop
Feb 13 2015 06:03
I ran into a REALLY weird bug
one of the blocks just like disappeared and snakes started clipping
Sean Baquiro
@sebaqu11
Feb 13 2015 06:03
lol
Harrison Lambeth
@monodop
Feb 13 2015 06:04
It's WAAY to common
Oh I know what it is
Sean Baquiro
@sebaqu11
Feb 13 2015 06:06
hmm haven't seen it on my end
Harrison Lambeth
@monodop
Feb 13 2015 06:07
So the problem was
I forgot to remove the block tiles from the list that held them
so it was constantly trying to remove the block tiles
as a result, it was deleting whatever was in the grid where the tile was
but after the first time it wasn't the block lol
Sean Baquiro
@sebaqu11
Feb 13 2015 06:07
ahhh nice catch
Harrison Lambeth
@monodop
Feb 13 2015 06:09
I hate testing gameover lol
Sean Baquiro
@sebaqu11
Feb 13 2015 06:10
lol I just make the help screen go to it when testing
Harrison Lambeth
@monodop
Feb 13 2015 06:10
The sound is too quiet I think
Sean Baquiro
@sebaqu11
Feb 13 2015 06:11
ok
Harrison Lambeth
@monodop
Feb 13 2015 06:11
Do you mind if I make it louder?
Sean Baquiro
@sebaqu11
Feb 13 2015 06:11
can sound channel make it louder or do I have to create the mp3 again
Harrison Lambeth
@monodop
Feb 13 2015 06:12
Actually what was happening
is you had it set for 25% volume
That's what the .25 in the soundchannel was
Sean Baquiro
@sebaqu11
Feb 13 2015 06:12
oooh
Harrison Lambeth
@monodop
Feb 13 2015 06:12
I set it to 100% and I'll commit it
Okay
This game is looking pretty damn sexy
Sean Baquiro
@sebaqu11
Feb 13 2015 06:13
I had a sick idea of it screaming at you when you lose
Sean Baquiro
@sebaqu11
Feb 13 2015 06:14
haha
Harrison Lambeth
@monodop
Feb 13 2015 06:14
Sean Baquiro
@sebaqu11
Feb 13 2015 06:14
maybe for the next project xD
Harrison Lambeth
@monodop
Feb 13 2015 06:14
We'd have to revoice it lol
Sean Baquiro
@sebaqu11
Feb 13 2015 06:14
yeah
Harrison Lambeth
@monodop
Feb 13 2015 06:15
Oh I just realised we don't put the next snake anywhere
Sean Baquiro
@sebaqu11
Feb 13 2015 06:15
hmm yeah
we could leave it out for added difficulty lol
Harrison Lambeth
@monodop
Feb 13 2015 06:16
haha
game is already soo hard
kgranch
@kgranch
Feb 13 2015 06:16
Gene Wilder
Sean Baquiro
@sebaqu11
Feb 13 2015 06:18
wow the blocks make it annoying
lol
Harrison Lambeth
@monodop
Feb 13 2015 06:19
We need to show your final score on the game over screen
I'm pretty sure I got around 45k
Almost level 7!
kgranch
@kgranch
Feb 13 2015 06:21
public var help:TextField = new TextField(768, 1024, "And you final score is... std.String(score)", "font");

//reset the score to 0, but make that the new high score first
high_score = score;
score =0;
Something like this.
Harrison Lambeth
@monodop
Feb 13 2015 06:21
I just added
gameover.text = "Game Over!\nFinal Score:\n" + Std.string(score);
to the GameOver.hx start()
@sebaqu11 can you add numbers to the font?
We're still missing those
Sean Baquiro
@sebaqu11
Feb 13 2015 06:22
yeah let me find it
Harrison Lambeth
@monodop
Feb 13 2015 06:26
I think I'm going to call it for tonight though
I think there's still a few more things that can be done
Sean Baquiro
@sebaqu11
Feb 13 2015 06:27
commited font, should have numbers now
and sounds good
yup numbers show up
Harrison Lambeth
@monodop
Feb 13 2015 06:29
Sweetness
Sean Baquiro
@sebaqu11
Feb 13 2015 06:30
looks great, feel free to submit when you're ready @kgranch
Harrison Lambeth
@monodop
Feb 13 2015 06:31
@kgranch make sure when you do the final build, turn off the -debug flag
kgranch
@kgranch
Feb 13 2015 06:35
Seems like someone already did a final score display.
Sean Baquiro
@sebaqu11
Feb 13 2015 06:36
yeah Harrison did
Harrison Lambeth
@monodop
Feb 13 2015 06:36
So I think there's still some kind of bug where the game board persists after you lose
Sean Baquiro
@sebaqu11
Feb 13 2015 06:37
yeah noticed that too
kgranch
@kgranch
Feb 13 2015 06:37
Forgetting to remove the board when you lose.
Harrison Lambeth
@monodop
Feb 13 2015 06:37
let me mess with it for a few minutes
oh shit I might know what it is
so when you lose
it continues checking the rest of the snakes
instead of returning from gameTick() lol
Sean Baquiro
@sebaqu11
Feb 13 2015 06:38
ah
Harrison Lambeth
@monodop
Feb 13 2015 06:39
so it might have been making two gameover screens
and therefore two menus
and therefore two games when your restart
Sean Baquiro
@sebaqu11
Feb 13 2015 06:39
lol
Harrison Lambeth
@monodop
Feb 13 2015 06:41
ok I think the game is ready
just needs a thumbnail and to be uploaded
I put a new commit in just a few seconds ago with a fix to that bug
Sean Baquiro
@sebaqu11
Feb 13 2015 06:42
that bug was fixed with just return;?
haha
Harrison Lambeth
@monodop
Feb 13 2015 06:42
yep!
Sean Baquiro
@sebaqu11
Feb 13 2015 06:42
nice
Harrison Lambeth
@monodop
Feb 13 2015 06:42
90% sure
my theory that's hard to test is
the snake triggered a gameover
and kept running gameTick
then another snake also triggered gameover
So if that was the issue, then a return should fix it
If not I have no freaking clue
also I freaking love this music now
and the titlescreen jam thing
Sean Baquiro
@sebaqu11
Feb 13 2015 06:44
ever heard of maplestory?
kgranch
@kgranch
Feb 13 2015 06:44
Yup.
got the idea from this
this game had amazing music
kgranch
@kgranch
Feb 13 2015 06:46
Gonna have to remove that logging stuff too.
Wonder where that is.
Got it.
Darn it, still appears.
Harrison Lambeth
@monodop
Feb 13 2015 06:47
what logging?
also that song rocks @sebaqu11
kgranch
@kgranch
Feb 13 2015 06:48
At the beginning of the game,
when it's loading,
Harrison Lambeth
@monodop
Feb 13 2015 06:48
I don't think that's a huge deal
but ok
kgranch
@kgranch
Feb 13 2015 06:48
it shows some errors at the top-left for some nanoseconds or so.
Harrison Lambeth
@monodop
Feb 13 2015 06:48
Pretty sure that was all in the Root.hx
kgranch
@kgranch
Feb 13 2015 06:50
Yep.
Just a tracing fn.
Harrison Lambeth
@monodop
Feb 13 2015 07:02
Night guys
see you in class tomorrow!
Sean Baquiro
@sebaqu11
Feb 13 2015 07:02
gnight
kgranch
@kgranch
Feb 13 2015 07:02
Night.
kgranch
@kgranch
Feb 13 2015 08:55
Shh...don't tell anyone I added high score stuff.