« first day (1189 days earlier)      last day (4128 days later) » 

00:00
Now I need a way to stop this once everything has 5 in it.
@TheProgramm3r Looks good.
@hasherr what looks good?
Google Summer of Code.
    ArrayList<Object> allObjects;
    ArrayList<Class> allTypes;


    HashMap<Class, ArrayList<Object>> buckets = new ....
    int emptybuckets = allTypes.size();
    for(Object o : allObjects) {
        Class c = o.getClass();
        if(!buckets.ContainsKey(c))
            buckets[c] = new ArrayList<Object>();
        ArrayList<Object> bucket = buckets[c];
        if (bucket.Count == 5)
            ; // skip
        if (bucket.Count == 4)
            emptybuckets--; // we just filled one up;
something like so?
00:06
okay, time to ragequit. no more png loaders for me.
I understand the format, which is the main thing I wanted
i got stuff done for like 5 mins, then got lost in licenses and the like....
I wrote a PNG loader once. it's not too bad if you aren't concerned about supporting all the things
I can currently load a very small subset of png images. mainly the ones with no compression, or that use the static huffman codes.
though getting the static codes working required skipping 8 bits for absolutely no freaking reason
00:08
@TheProgramm3r not participating.
I like it, but then my time is going to be devoted to TRTWNT.
wassap
thats cool :P
Icy distracted me and now I am not getting anything done
wait...crazy idea...
*goes back to working on loader*
@IcyDefiance invalid option
00:09
and Clash of Clans came out for Android :D
only happy b/c i have some friends who play it on iOS
@prototypical See comment on your game jam entry.
Alright, think I got it.
Time to go home
@Jimmy I had something like that
ah, any suggestions ?
//TODO: My eyes, are bleeding. Re-factor so that the correct information is returned in the future.

        ArrayList<Place> bucketPlace = new ArrayList<Place>();
        HashMap<String, ArrayList<Place>> bucket = new HashMap<String, ArrayList<Place>>();


        Iterator<Place> sortIterator = places.iterator();

        for(int i = 0; i <=Constants.POI_CATEGORY_COUNT; i++){
        	bucket.put(Constants.POI_NAME_MAP[i], bucketPlace);
        }
        boolean[] result = new boolean[Constants.POI_CATEGORY_COUNT];
sorry, i have ad blocker too, didn't notice
00:12
@prototypical Not sure, I haven't hosted flash before.
You could host with dropbox?
@noctrine instead of keeping an array of booleans
why not just decrement a counter each time you fill up a bucket
when it reaches zero, you break
that eliminates the need for the freedom function
Yeah, that's what you posted. It looks a lot more sane.
It only finally got quiet now, but now I'm tired :(
Will change to that tomorrow. Want a bit of energy to work on things that are actually fun.
does it allow someone to link and play ?
i have google drive too... but if you link it makes them download
Anyone know any good links about designing skill systems?
00:18
sm4 hosted on dropbox.
Seems to work.
@noctrine it also looks like you keep inserting and removing the same bucket list
i thought he had a website
let me check
from each slot
indeed he did. I tried google drive, that didn't work
will switch to dropbox
Maybe you'll have to make an index page that points to your flash file?
Or directly to the swf file, I'm not sure if that'll work.
00:20
yeah, i was in a rush due to the deadline
so took the simplest way.
Yeah, no problem.
I think just the one person that doesn't use adblock tried your game :)
yeah, i understand. Sorry, handling it now
here's a question: I've heard in C++, you shouldn't link to static libraries from other static libraries. If I'm making an engine for other people to use, though, this means the user will have to link to some half dozen lib files and growing. Does this mean I should really be compiling into just one lib?
I wonder if I can combine them... visual studio's project concept gets annoying that way, but I should probably try that.
lol
goodnight, all!
I have to go to dinner, then do homework, then bed
bye!
00:28
/\/\/\/
@icy o too bad. ur dude fell on spikez
i cri evry time
@IcyDefiance I LEARN FROM THE BEST
@Grey ARE YOU IMPLYING I'M RUDE?
Explicitly.
HUIEhauiehuiae
why thank you
00:29
gj
new mouse
me like so far
cept command software not seem to be mac compatible. well it is, but doesn't seem to support the device
@byte56 ok, done
@prototypical Nice work. Thanks for getting that cleared up.
no problem
00:54
annnd back
Wow, I found a really weird/cool/unique bug in my code.
going through some of my old bookmarks. I don't even know where I got this link, but it's pretty awesome: youtube.com/watch?v=63ARNV1YB20&hd=1
@IcyDefiance I'm having a weird OpenGL bug where my texture, which is wrapped onto a quad, is being wrapped up into a 3D shape, as if it was a piece of paper being wrapped around a pencil.
It's really weird...
sounds weird
Yeah, it is. I've never seen anything like it.
00:59
I'm sure.
._.
It's warping my texture. I know why it's doing it, not sure how to prevent it.
It's similar to this: en.wikipedia.org/wiki/…
The texture is going all affine on me :/
ooh okay. your quad might be screwed up.
try double-checking the vertex positions
That's the thing
The vector that represents the quad's positions are constantly changing.
Due to the velocity of the quad.
but if the shape is staying the same, the problem is most likely the initial positions, if that's the problem at all
can you set breakpoints in Java?
Yeah, but it wouldn't be affective here.
e&
e*
01:04
I'd go with e&. it's safer.
Print debugging, hold on
X: 571.000007532537 Y: 366.00000435113907
X: 569.500007532537 Y: 364.50000435113907
X: 569.500007532537 Y: 364.50000435113907
X: 567.9000075086951 Y: 362.9000043272972
X: 567.9000075086951 Y: 362.9000043272972
X: 566.2000074610114 Y: 361.2000042796135
X: 566.2000074610114 Y: 361.2000042796135
X: 564.4000073894858 Y: 359.4000042080879
X: 564.4000073894858 Y: 359.4000042080879
X: 562.5000074133277 Y: 357.5000042319298
X: 560.6000074371696 Y: 355.5000042319298
X: 558.7000074610114 Y: 353.40000408887863
Let me calculate some displacement, hold on..
Yep, the texture is getting warped.
So we know that that's the problem.
hmm...I got nothin'
try punching it
No, it'll only have to go years of therapy and have to go live with it's mother.
better her than you, right?
@Override
    public void draw() // Draw the player sprite onto the screen.
    {
        playerSprite.bind();
        glBegin(GL_QUADS);
            glTexCoord2f(0.0f, 1.0f);
            glVertex2d(pos.x, pos.x);

            glTexCoord2f(1.0f, 1.0f);
            glVertex2d(pos.x + 128, pos.y);

            glTexCoord2f(1.0f, 0.0f);
            glVertex2d(pos.x + 128, pos.y + 128);

            glTexCoord2f(0f, 0.0f);
            glVertex2d(pos.x, pos.y + 128);
        glEnd();
    }

    public void update()
There's my draw methods.
Tell me if it's wrong.
01:07
"glVertex2d(pos.x, pos.x);"
looks wrong
WAT
FUCK YOU!~
:(
see if I help you again
ungrateful brat
Thanks, for realz. I wanted to find the bug though :(
01:09
then don't post here!
Thanks, seriously. I thought there was something seriously wrong with my drawing.
Just a dumb typo.
no problem. didn't take long.
For your hard work, here's a screenshot.
01:21
@IcyDefiance Can I get your advice on a piece of code?
probably
Anyone know of any good links to designing skill systems in games?
This is my move method:
@Override
    public void move(Direction dir)
    {

        if (dir == Direction.NORTH)
        {
            velocity.y = 0.08f * Game.fps;
        } else if (dir == Direction.SOUTH)
        {
            velocity.y = -0.08f * Game.fps;
            System.out.println("X: " + pos.x + " Y: " + pos.y);
        } else if (dir == Direction.EAST)
        {
            velocity.x = 0.08f * Game.fps;
            System.out.println("X: " + pos.x + " Y: " + pos.y);
        } else if (dir == Direction.WEST)
fps returns the delta, which is usually relatively around 60
I'm getting a weird bug though where the sprite will move fine and then decelerate nearly to a stop, and then continue at the same pace. It's annoying, and I think it might have something to do with the delta.
Actually, no, it decelerates to a stop and then continues.
hmm, I don't see anything wrong with that right off hand, other than that the println's might slow things down a lot
don't take that as gospel, though, I'm not going to examine it too closely
They were there mainly for debugging purposes. I planned on taking them out...
01:28
Use the prints to give you delta for testing
So you can see dat delta brah
First of all, you're using K&R bracing. This will destroy every last bit of your soul, leaving you a hollow husk of a zombie programmer.
Get with the Allman program man.
wait
it's some kind of weird mutant bracing!
ARGH!!!
GET THOSE ELSES ON THEIR OWN LINES FOR GOD'S SAKE!
K&R bracing?
You're talking about each brace on each individual line, right?
if(something){
..blah blah
} else {
..blah blah
}
that's K&R
if(something)
{
..blah blah
}
else
{
..blah blah
}
that's allman
I'm not using K&R.
K&R is awesome and Java inspired
01:30
If you notice, I said you're not and that it's some weird mutant
K&R is not Java inspired!
K&R comes from Kernigan and Ritchie
they invented C
and insisted on that kind of bracing
Oh
I am wrong
probably because they were using crappy line editors on 24-line terminals and needed to conserve vertical space
it's ok!
the only reason I can find for Java devs normally using K&R is that's how Eclipse generates them by default
01:31
Not a big deal. But you should know hwere it comes from. Small fucking screens.
Yay Eclipse :3
:)
booooo Eclipse
boo Java in general, but that's a given
K&R is awful.
but it's not like C# devs are better that way. visual studio generates allman by default, so that's probably why they normally use that.
01:32
hahah :)
I'm superior, though, I use allman because it's FREAKING BETTER
I use allman because it looks way cleaner and better, yeah.
no you use crazy mutant bracing
I AM GONNA KILL MY ROUTER
01:33
WHY? IS IT USING K&R?!?
} else if (dir == Direction.SOUTH)
{
^ mutant
yes mutant
frightening
puts the world off its axis
fucking with the seasons and shit
^ another mutant
don't be wolverine
hahaha
I fixed it, you happy?
01:38
yes
I can tell because the temperature outside is going back to normal
oh hey, here's another bookmark I have. this one might be real useful for people here: lunametrics.com/blog/2012/11/12/…
wow
good info if you need it
I don't, but it's very useful if you do
yeah I don't either, right now. people releasing a game and trying to publicize the thing might, though.
Ugh, supid bug. :(
try a chainsaw
01:48
yeah
:(
brb getting corn
whoa whoa
I went to sleep, had a dream that I was developing games, and went to sleep, and had a dream about a game
Now I just had to get up to write it down because the game in the dream in the dream was awesome
man you just been inceptioned
you sure there was no one else in the room with you?
Yeah I know
yeah I am pretty sure

« first day (1189 days earlier)      last day (4128 days later) »