« first day (1817 days earlier)      last day (3500 days later) » 

23:00
as you might know, I never actually grabbed any book, I just searched for whatever I needed and used the first thing I found
*I was 12 years old
user92578
wow that sounds really interesting
I've been programming since I was 12 and this year is the first year I've actually picked up a programming book
programming was always something magical to me, I loved playing games as a child, and I always imagined a day that I could actually develop games of my own
for that very reason, from the very first moment that I was introduced with programming, I just ran ahead of the class, and were always way ahead of it...
user92578
one of the coolest things I can remember from my child hood, is at when i was about 5 years old, i asked my dad what cool stuff he can do with a computer. a couple of minutes later he showed me a number guessing game he made for me
user92578
i loved to play it
user92578
23:03
and i was super impressed that my dad made something like that in such a short amount of time
user92578
now I of course know that from an experienced programmer it takes very little time
6 years form that time, when I was graduated from high school at age of 18, I had some programming experience, coupled with some concept of teaching programming
user92578
I bet most of the time he spent doing it was spent compiling :)
mostly because I attended programming classes. While having some different methods in my mind
The school I attended had a tradition, to invite it's newly graduated student to teach...
and me, as one of those gifted coders of my generated, started teaching there
user92578
thats really cool
user92578
23:05
wait how old are you now?
24
well, I'm gonna finish my 24th year of living in less than a month...
user92578
BTW (in no offense at all) my brother thinks that I'm helping Iranian terrorists to program bombs
he may think as he like... but I would love to talk to him, and convince him that he should not believe what the media says about us
user92578
yeah hes a smart kid, im sure hes just joking
Jon
Jon
I for one wonder how he would come to such a club conclusion
23:08
@Jon I guess you don't watch the news so often, do you?
user92578
He just likes to annoy me everytime I tell him something that I'm proud of
how old is he?
user92578
15
just a year younger than you?
user92578
two
23:10
then I guess it's just normal for brothers to have such quarrels :D
user92578
yeah :D
is he into programming as well?
user92578
no, not at all
lol
by the way, I'm the only one between my relatives who actually sits behind computer to produce something :D
if we exclude writing excel formulas that my father does from time to time, to ease his accounting :D
user92578
:D
user92578
23:15
user92578
Got the enemy parachute in place
user92578
still need to tweak the sprite a bit
@Tyyppi_77 you got the mail?
user92578
oh yeah
user92578
good that you mentioned, i normally only read my mail when i open the computer
user92578
23:22
I gotta make sure to read trough that one day
it's just a project that I started about 3 years ago... rewrote every aspects of it 3 times (except one single file), and never completed it
it's not something to read through... I actually gave you access with some evil intent: so that you help me finish it some day :D
user92578
ohhhh
user92578
super evil ali at it again :D
user92578
does it run at the state its at?
user92578
i might check it out tomorrow :)
23:25
yeah, it runs... you can even play it with your brother on lan
user92578
oh cool
well, you should reduce the number of AI players...
user92578
he wont even play gunhero with me tough, so i doubt that'll happen
there need to be at least 3 players in the game
and I'm not sure if I handled sending AI states over the net
user92578
WAIT IT HAS NETWORKING???
user92578
23:27
THATS AWESOME
but you can at least play that with current hoard of AIs (I think there are 63 of them right now)
with limit of at most 64 players in the game...
user92578
I so gotta check it out
@Tyyppi_77 serverless networking
user92578
doesn't matter
0
Q: How to detect a collision between a isosceles trapezoid and a circle

JovitoI figured one approach would be to divide the trapezoid in three parts, two triangles and a rectangle in the middle. Then for the circle-rectangle case I would check collision like this: function testCircleRectCollision(circle, rect) { closestX = clamp(circle.x, rect.left, rect.right) ...

user92578
23:28
even clientless networking would have had me wowd :D
it's both server less, and people can join/disconnect at will at any time
server-less as in it's p2p
user92578
@Jovito I wonder if you could use the edges for this
user92578
111
Q: Circle line-segment collision detection algorithm?

MizipzorI have a line from A to B and a circle positioned at C with the radius R. What is a good algorithm to use to check whether the line intersects the circle? And at what coordinate along the circles edge it occurred?

user92578
Doing that for every edge?
user92578
that's probably how I would do it
user92578
23:32
well
user92578
actually
user92578
I would just copy paste some one else's code
@Ali.S Who's keeping track of the IP's?
@Hjorthenify it's just on lan, remember? there is no need to keep track of ips
Ooh I missed that context :P
23:33
all players send broad cast whole game state (which is as tiny as 17 bytes) over the net
user92578
sounds simple
user92578
i doubt it is tough :D
Who's in control of the AI then?
@Hjorthenify actually there were plans to add a server which kept track of IPs, but it was postponed because lack of make files :P
user92578
oh man now i want to add lan multiplayer to gunhero...
user92578
23:35
but I know that way too hard
@Hjorthenify each game instance controls it's own set of AI players
user92578
specially this late in development
and the network system keeps track of data of which AIs should be sent over net and which should be updated with the incoming tarffic...
So each client decides for themselves what the AI does?
user92578
s.sin_addr.S_un.S_un_b.s_b1 now this looks like a fun struct :D
23:37
at least that was the design I was going to implement, I'm not sure if I actually did implement "multi-update" messages, which were required for a game to have both network and AI enabled at same time
@Hjorthenify each client introduces it's own set of AIs and only controls them
user92578
BTW the code looks super slick
user92578
really easy to follow and tell what's going on
user92578
anyways its almost 3AM
And each client could make up to 63 AIs?
user92578
so i'll head to bed now
23:40
@Tyyppi_77 fun note: there was a winsock library. at some point MS decided it needed to adopt berkley style socket headers (*nix) style and ended up with winsock2
that's how winsock2 looks like :D
user92578
oh lol :D
user92578
thanks for the chat guys, i had a really pleasant night coding session
@Hjorthenify there can be at most 64 players in a networked game playing on same field. it could be just a single client with 63 AIs, or two clients each having 31 AIs or 64 clients with none having any AI players
user92578
23:42
mum will be a bit pissed at 2PM tomorrow when I wake up, but that's something I'll worry about later :)
@Tyyppi_77 I gotta go get some sleep too... it's already passed 4am, and the class starts at 10:30am
@Hjorthenify if you were wondering, based on the original design, it didn't matter how many players each client brings into the game, as long as total players remains below 64
this meant, a client could have joined with just himself entering the game. another client could join with 4 players playing on same device, and a third client could join, only offering 10 AI players... and they could all play happily with each other
Ah nice
Why the limit of 64?
any convex shape has a collision with circle if one the following occurs:
1. one of it's line segments collides with circle.
2. one of it's vertices is inside circle.
3. circle's center is inside that shape
@Hjorthenify it was something forced mostly by packet size...
I didn't want my game update packets to be larger than 500B, so that the game could send 30 updated packets with as low as 15KBps bandwidth
23:48
Could be kinda cool if each client could design their own AI and then battle against each other
Well by todays standards you could probably up it
the game was originally designed to be played over the internet, but it didn't make it there sadly
@Hjorthenify not by Iran's standard... even 15Kb is way too high for most users :(
yeah... that's the country I live in...
Its getting better, right?
not really, i was like this for the past 6 years...
my net is getting upgraded every year or two, but simply because I feel the need to pay more for the net...
currently I'm paying 30$/month for a 2Mb net with 40GB traffic...
23:53
I meant more the country overall
And damn that's kinda expensive.. :o
my net used to get to the pick rates of somewhere near 600KBps before, but now it's kinda limited to 400KBps
it's a norm in Iran that you get more speeds that what you actually pay for, since the traffic is tightly limited
I used to get 700kbps, but now I get 12mbps :P

« first day (1817 days earlier)      last day (3500 days later) »