« first day (1845 days earlier)      last day (3176 days later) » 

Joe
6:00 PM
         if ( this.tiled ){
                ctx.translate(t.position.x, t.position.y);
                var finalPattern = ctx.createPattern(this.patternCanvas, "repeat");
                ctx.fillStyle = finalPattern;
                ctx.fillRect(0, 0, t.size.x, t.size.y);
                ctx.translate(-t.position.x, -t.position.y);
            }
that worked... but now i have horrible tearing
i can deal with the tearing later i guess
 
Though... there's only 4*3*2=24 cases where you would actually have 4 different types, if I complicate the code a bit to create a list of all intersections with 2 types, and a list of all intersections with 3 types
 
@Joe :P wait dont do that :
lol i was trying to make a example for u with jsfiddle
But its giving me problems with external images xD
Before u translate do ' ctx.save();'
And once u finish drawing that do 'ctx.restore();'
This way it saves current context before u translate it
 
Joe
then i dont need the second translate?
 
Joe
ill have to read on it
 
6:03 PM
Then when u do restore it restores the context back to before u translated :D
 
Joe
how many K do you think i need for sounds?
 
wait let me check mine :P
@Joe all my sounds and images zipped together are 4kb
@Joe
if ( this.tiled ){
ctx.save();
ctx.translate(t.position.x, t.position.y);
var finalPattern = ctx.createPattern(this.patternCanvas, "repeat");
ctx.fillStyle = finalPattern;
ctx.fillRect(0, 0, t.size.x, t.size.y);
ctx.restore();'
}
Try this :D
 
dood use the "fixed font" button when you paste code
 
Master almo, can u plz tell how i could do it?
D: i cant do it anymore, no more edits allowed
 
if(this.tiled)
{
    ctx.save();
    ctx.translate(t.position.x, t.position.y);
    var finalPattern = ctx.createPattern(this.patternCanvas, "repeat");
    ctx.fillStyle = finalPattern;
    ctx.fillRect(0, 0, t.size.x, t.size.y);
    ctx.restore();
}
 
6:14 PM
@KevinvanderVelden Short answer: Yes.
 
@MartinSojka Long answer: You need a shitton more variants and data
 
@KevinvanderVelden Long answer: It's a bit complicated. Some things (like when the "outside" tiles form two distinct groups, for example in tile 7 or 17), you get this automatically as long as each "group" consists solely of the same "outside" terrain.
And no, it's not a "shitton" really.
 
You sound like Hiemerdinger... "Hmmm... not enough variables. Not nearly enough variables!"
 
Well, I was talking about allowing tiles having arbitrary neighbours
So, desert on the top, water on the left, plains on the bottom and mountain on the right
 
The trick behind this sub-tile setup is that "arbitrary" means "At most three, and even that only in a few cases".
 
6:17 PM
xD hey just wondering, do u guys create your own music for your games? (mixing loops doesnt count)
(if u did, how did u learn to write songs D:)
 
@MartinSojka that latter doesn't really work if you don't know that in advance
 
@Almo just sprinkle some more variables on top of the code, like salt
 
ahhaha
 
@KevinvanderVelden Ok, off to Inkscape to make another visualisation then. :)
 
is it okay to use single letter variable names when they're just there for flavor anyway?
 
6:21 PM
Single-letter variable names are ok when you use them consistently. I typically use i, j, k for indices; e for errors; x, y, z for position or direction; u, v, w for texture location; r, g, b, a for colour information.
 
that's pretty reasonable there martin
 
Joe
if it works for you seems fine, but if you need to show that code to someone else could get annoying - most of those are straightforward though. Im of the school that if you are using any modern IDE long variable names shouldn't matter because we all should have autocomplete. you should only ever have to type the full thing once
 
I was completely joking with that question, but yeah, those are pretty standard variable names
though it really annoys me when I have to use j or k for indices. they're way too easy to mix up, especially i and j, so if I'm nesting loops I'll usually pick something more descriptive.
 
6:37 PM
45
Q: Fastest way to sort 10 numbers? (numbers are 32 bit)

bodacydoI'm solving a problem and it involves sorting 10 numbers (int32) very quickly. My application needs to sort 10 numbers millions of times as fast as possible. I'm sampling a data set of billions of elements and every time I need to pick 10 numbers out of it (simplified) and sort them (and make con...

check out the Waksman sort net, found in 1969
 
70
Q: Naming conventions: camelCase versus underscore_case ? what are your thoughts about it?

poelincaI've been using underscore_case for about 2 years and I recently switched to camelCase because of the new job (been using the later one for about 2 months and I still think underscore_case is better suited for large projects where there are alot of programmers involved, mainly because the code is...

 
Joe
@Almo wtf?
 
:D
I am reminded of Duff's device.
 
Pip
@TheMuffinCoder I use camelCase
 
lol so do i
 
Pip
6:42 PM
TrueCamelCase for classes/methods/public properties
 
I think Java being the first language I learned influenced me the most
 
Pip
falseCamelCase for local variables
_camelCase for private things
 
Joe
@Almo im trying really hard to make sense of the logic because the sequence matters here... and im failing
 
NOoooooooooo
 
Pip
oh god Java
 
6:43 PM
I hit remove accidently ; - ;
 
Pip
lol
you deserved it
Java does not belong in this chat
 
ProblemFactory.getLocalInstance().getPotatoChips().eat();
>:^)
 
Pip
NOO
 
@Joe heh it's the kind of think I look at, think "that's clever and probably works" but I don't bother trying to work out exactly how.
probably why my TIS scores aren't the best ;)
 
@Pip noooooo D:
underscores evil
 
6:44 PM
Pip is JavaScript allowed in this chat? :3
 
underscores are evil
 
Joe
@Almo im sure theres reason for this logic here... i just cant see what it is
 
the root of all evil?
 
Joe
lol
 
Pip
I hate how Java developers use getFuckingRetardedMethodName
@IcyDefiance @Almo why?
 
6:44 PM
getter setters shudders
 
@Joe looks like it's going through some sort algo, but hardwired for 10
 
@Pip 'cuz they're harder to type than letters
 
yeah an underscore is two keystrokes
 
Unless u bind it to a different key!!!
NOOOO my keyboard doesnt have the scroll key
D: i cant do it then ; - ;
 
Pip
All of my public properties also start with a capital which is two keystrokes as well
so it doesn't matter :P
 
6:46 PM
so just do what java does!
 
Joe
@TheMuffinCoder i just installed a thermometer in my space bar... and I just type by raising and lowering my blood temperature at will
 
I just use the same thing for local/private variables, start with a lower case letter, never had a problem telling them apart. functions should generally be short enough to keep track of the variables in your head anyway.
 
@Joe LOOOOL
 
@TheMuffinCoder I also use camelCase. I think it's easier because pressing shift + letter is faster for me than shift + '_'
 
:D
Yep it is for me too!
But who needs variable names when u can just letters!
 
6:47 PM
@TheMuffinCoder actually there are a bunch of tutorials about rebinding the caps lock key, since most people don't use it. you could bind it to an underscore. of course, then you can't rage on the internet as easily.
 
@IcyDefiance but the caps lock key holds a special place in our lives
 
CAPS LOCK IT'S LIKE THE CRUISE CONTROL FOR AWESOME
 
HOW ELSE CAN I DECLARE CONSTANTS
 
I know, cruise control for cool and all that, but some things you just have to let go
and constants are very seldom useful in C# anyway, because you can't assign a class instance to them. static readonly is usually what you want.
 
6:51 PM
because it's annoying
honestly, my experience with Java is almost all on android.
I suspect the annoyance is android, not java itself
 
lol all this hate of Java is pushing me to go use Java
:3 come on Java lets make some secure high performance applications
 
here's what a cofounder of stackoverflow has to say about java-only CS schools
interesting article
 
yeah Android is far, far worse than Java itself. Java is still fairly annoying though.
6
 
Pip
@Almo I actually usually just hold down shift
 
when I want to make the point hat I'm holding shift, I"LL TYPE STUFF LIKE THIS
caps lock doesn't turn the single quote into a double quote
 
6:54 PM
Lol just wondering, is JavaScript hated this much too? :P
 
yes, at least for me, but in a different way
 
>:^) okay good
I want to main JavaScript
 
see, as a language, I don't hate Java, but I hate working with it because it takes forever to get anything done.
JavaScript is the other way around. I hate the language, but I don't hate working with it.
 
at least until I have to debug something complicated in javascript
then I hate working with it
 
6:56 PM
@KevinvanderVelden: i.imgur.com/WKbegox.png
 
Inline for everyone else:
 
fuck microsoft. I change the IM sound in the control panel, and lync ignores the setting
typical
really hate this default IM sound
 
That's it; 15 tiles (broken into half-tiles in the picture) for the 2-terrain combination, 24 for the 3-terrain one and 6 for the three-terrain one - total 45.
 
i really like the one in window 10 tho
 
user92578
6:58 PM
@MartinSojka Thanks for the image. All tough Im not quite sure if that'll help me with the masking tough
 
But it kills my ears when my sound is higher than 40
 
@TheMuffinCoder I'm going to guess that's because Java is a lot more popular for enterprise systems than in startups. That kind of system is generally more complicated and requires more expertise to work with, and the language is irrelevant.
 
@IcyDefiance ooo i see then
 
just a guess. can't say anything for sure.
 
lol thats what it see lower in the article xD
Large Corporations Have a Larger Influence
 
6:59 PM
@MartinSojka nice
 
you should look up what COBOL programmers are paid
 
Question: are the lines a half-cell off (in both directions) in comparison with what is stored there?
 
@IcyDefiance :3 but they're so scarce
 
Or no wait
 
colleges don't teach COBOL anymore, and it's not used for anything new or exciting, so the people who are both able and willing to use it are literally dying off and large corporations who can't/won't upgrade are pretty desperate to find new programmers.
 
7:01 PM
@KevinvanderVelden The trick here is that you don't typically use the four-terrain one if you can't help it. When the terrain on the "edges" is the same, you ignore what's in the "corner" and draw the two-terrain one. And also: This needs the same with the three other terrains as the main one (so another 45 at least).
(... and now I need to go back to the "easy" variant, with hexagons)
 
Well, my brain is already fried from the weekend, I'll just implement autocreating the 2 tile variant with a mask image and a source texture and then head to bed
 
7:30 PM
Yay!
 
Pip
nice
 
Next up creating the relevant bits of the image @MartinSojka posted earlier
 
7:42 PM
That was surprisingly easy:
 
Pip
huh
you want to open-source the code for that?
 
John Carmack's Son's game, made with racket - groups.google.com/forum/?hl=en#!topic/racket-users/yjRuIxypUQc
 
@Pip uuh probably
 
Pip
I meant now since I'm a bit bored atm :P
 
Heh sure
Everything is currently hardcoded but whatever
 
Pip
7:47 PM
@Noctrine haha his son is at the same point in math that I am
and he's fucking 10
:/
 
@KevinvanderVelden The bottom three ones are actually not needed, I just included them for completeness' sake (in the original, they are variants on the "full tile" theme).
 
@MartinSojka aah I was wondering
I'll get rid of them then, it's just deleting 2 lines :D
 
The idea is that you have only the five "basic" in the texture and use UV coordinates to map the right half-tile to the right place. Saves you texture space in exchange for more vertices and faces, but in tile-based games, you don't typically have a vertex count which would make modern graphic cards sweat - not even on mobile devices.
 
True, well I'm outputting both the minimal and the full anyway so
 
Pip
awesome, thanks
 
7:54 PM
I pushed it to a different branch in my utilities repository because, meh
 
Pip
why didn't you include the layout thing?
 
Because it's trivial to make =p
Here:
Also, written in python3, no dependencies but what's included
 
Pip
coolcool
 
(Also if you want to use python2, I'm just using the fairly standard png.py file, which I used 2to3 on to get it to run under python3)
 
Pip
Nope, we're good with 3
I prefer it actually
 
8:02 PM
Also if you want to work on the code, might I recommend this (shameless plug) utility? github.com/KevinVDVelden/Watchdog - It can automatically regenerate the output everything you edit the script
 
Pip
Pretty nice
I'll take a look :D
 
Sweet, and in the meantime I'll take a look at my eyelids
Cause I'm nearly falling asleep in my chair already
 
Pip
:D
 
The hex variant on the "cut up to reduce the amount of variants" idea is also relatively easy, thankfully:
 
Joe
8:21 PM
@KevinvanderVelden any good reading anywhere on masking?
 
Jon
man, carmack's kid sucks
he says his game is available for download, but provides no link
 
He really needs to improve his website UX, yeah.
 
Jon
ok, so the links to his games are on his main page
 
Yeah
 
Jon
damn
angry face is an actual game
 
8:32 PM
Yep
 
Jon
this kid is making games better than most people in here
i wonder how much code carmack does for him, lol
 
Fly is like Flappy Birds
He explains what he did and how he did it in places. (The son)
He seems pretty autonomous.
This is awesome though.
Now I get to show him how there is actually a cleaner 1000 line program hiding inside his 2000 line program.
 
Pip
After LD I have totally lost all initiative for programming projects. Maybe I just need some sleep.
 
Jon
i thought about making something at the 10 hours left mark
 
8:53 PM
I really wish I could fit a song into my game under 5kb
 
Lync issue fixed
0
Q: How do I change the sound Lync makes when a new message comes in?

AlmoI'm using "Skype for Business (Lync)" at work for communications. I went to its "Ringtones and Sounds" options page, which has a button labelled "Sound Settings". I go there, and set a new sound for "Incoming IM" under "Lync". Despite having my new sound selected, and it playing properly when...

 
Vectorizing an existing illustration is suprisingly easy
Though after a while you lose the ability to judge whether something is good or terrible
 
hahahaha
 
Though I do know for sure that the one eye I've done so far is.. not right. :P
 
heh
 
8:58 PM
D: how did they get a song to fit in 1kb!?!?!?!
 
hi all
 
procedurally generated waveforms, and a tracker for the notes :)
hey ragdoll
sorry i missed you last time
 
ooo
Hi Ragdool! Im a muffin
 
a cute, happy muffin
 
im a cat irl
 
9:00 PM
xD
Almo is a Almo
It's a rare species
Never to be seen by us mortals
 
hahah
you mean "mortals"
:D
 
what type of games are you working on?
 
at work I'm on a big console game
at home, a phone puzzle game
you ios or android user?
 
android
i'm working a graphics engine
im almost at the point where i can present something
 
9:04 PM
cool
that's my currently released game
it's a MMONGG
massively multiplayer online number guessing game. :)
still not a lot of users
once the droid dev releases the next version, we'll be advertising it
 
that is the most least ambitious multiplayer game i've ever heard of
 
This is my entry for the js13k so far :D
Need to work on adding death particles from the monsters, better wave spawning, and music D:
 
@Ragdoll it appeals to a certain audience who like looking at past data to predict future behavior in a group of unknown actors
only takes about 4-5 players for it to become fun
and the rewards scale as the number of players increases
the fundamental problem is getting the right people exposed to it
 
9:32 PM
"gabe doesn't rub himself with money he has people he pays to do that"
 
Screw it. Eren will have to be faceless.
Can't get these damn eyes to look acceptable.
 
10:09 PM
But it has a Apache license and I plan on minifying it, is it good enough that I leave the top comment(with all that license stuff) in the file?
 
Why would you implement a list of entities as a linked list instead of an array in an ECS?
 
10:32 PM
faster removal
faster increased size
slower traversal, but overall more dynamic with the cost of more memory consumption
entities i imagine is a highly dynamic list
 
10:43 PM
@Ragdoll thanks :)
 
if anyone is looking for an interesting project to join please read this ad I put up on reddit
 
Jon
cooool
upvotaed
you made the frontpage of my /m/ multireddit
 
cool
 
Jon
11:08 PM
i really like the concept of "build a fort" then "fight it out" team based gameplay
they are playing against idiots
 
11:30 PM
@IcyDefiance interrupt handler... got under your cycle count. not sure how you got the instructions so low though! Still looking :)
 
lol that one, it didn't feel like the instruction count was low XD
 
fukin hard game
 
11:46 PM
@IcyDefiance oooh! instruction count 51!
 
whoa, my cycle count for signal pattern detector is almost 2x yours
higher instruction count too
you must have had a genius solution for that one
 
it's pretty efficent
not furthest left on the histogram though... I wonder what other people did!
(not that I would look)
really enjoying figuring this shit out for myself
pizza time; talk later
 
i added jsfxr to my game but i need some constructive criticism on what I should improve for the sound effects
(too loud? too annoying? too repetitive?)
 

« first day (1845 days earlier)      last day (3176 days later) »