Recent posts by jonathanasdf on Kongregate

Flag Post

Topic: Game Programming / Project Spark

Watch the video. It is awesome.

Some demos of what is possible starts at 37:40. There are still lots of things that can be polished through the app, and I hope very much that they include some scripting language as an alternative to the visual based brain programming, but even though it’s Microsoft, I am very excited.

 
Flag Post

Topic: Game Programming / Project Spark

This stream might be of interest to people here.

http://www.twitch.tv/project_spark/c/2717633

 
Flag Post

Topic: Game Programming / Pathfinding trouble

This is a case of cooperative pathfinding.

There’s something nice I saw a while back called the Increasing Cost Tree Search, but I never really tried it out.

Low quality video: http://ijcai-11.iiia.csic.es/video/46 The presentation starts at ~20:30. The slides can be found on that page too.

Might be a bit overkill for your purposes though :)

Edit: actually, i just realized that it is actually very very slow lol. You might want to look into some of the decoupled approaches instead.

 
Flag Post

Topic: Game Programming / Inverse Pathfinding: Path away from a target

that’s because the player isn’t static, so you will need to take that into account in your heuristic function somehow

 
Flag Post

Topic: Game Programming / Inverse Pathfinding: Path away from a target

It feels like there are 2 separate problems here:

1) How to make the monster stay as far away from the player as possible (this is easy, local greedily take the direction that leads it farther
2) How to make the monster run from the player for the longest time possible (this is much harder, as you may want to travel towards the player for a bit in order to get to a better branch

I’m guessing you want to solve 2.

Let me think a bit, but I feel like ultimately you will end up with something like A*.

For your case of equidistance and moving back and forth, there is a easy solution: give the monster the option of staying in place.

 
Flag Post

Topic: Game Programming / Some help with C++

My 2 cents:

You can’t blame the complexity of c++. All languages have scope and functions.

That said, it is hard to understand early on, so the simple advice1 is: don’t give your variables the same names, and only try to refer to variables that were declared ABOVE the current line, but BELOW the closest {

After you get used to scope then you can start thinking about giving your variables the same names. (not that you ever realllly need to)

1 simple advice is simple and there are exceptions but no need to worry about them until they come up

 
Flag Post

Topic: Game Programming / Google Code Jam 2013

The analysis for 1A has just gone up: https://code.google.com/codejam/contest/2418487/dashboard#s=a

 
Flag Post

Topic: Game Programming / Leap Motion

Originally posted by NineFiveThree:

Except that this kind of control is actually quite tiring.

more tiring than this?

http://www.youtube.com/watch?feature=player_embedded&v=qpHWJMytx5I

 
Flag Post

Topic: Game Programming / Google Code Jam 2013

thanks.

I usually never try for the efficient solution right away, but rather go for something that solves the small fast. Chances are, in the process of coding that, you will gain some insights into the problem.

I had to recode both A and B in order to solve the large.

 
Flag Post

Topic: Game Programming / Google Code Jam 2013

http://www.go-hero.net/jam/13/name/Jonathanasdf

ugh i can’t believe people other than me used cool, pike, and haxe.. guess i need to choose weirder languages next time.. (not that haxe is really weird or anything though)

 
Flag Post

Topic: Game Programming / Google Code Jam 2013

The official analysis is always posted quite soon after the round ends. You can find it by clicking “Contest Analysis” on the sidebar (https://code.google.com/codejam/contest/2270488/dashboard#s=a)

 
Flag Post

Topic: Game Programming / Google Code Jam 2013

pssh brainfuck is so easy… take a look at KirarinSnow’s Whirl solution

http://www.go-hero.net/jam/13/name/KirarinSnow

 
Flag Post

Topic: Game Programming / Google Code Jam 2013

“accidentally fell asleep and woke up 12 hours later”

 
Flag Post

Topic: Game Programming / Google Code Jam 2013

all problems are posted publicly.. see their archives: https://code.google.com/codejam/contests.html

 
Flag Post

Topic: Game Programming / Free web development course -- HTML, CSS

what about codecademy

 
Flag Post

Topic: Game Programming / Secure Remember Me

If you don’t have access to javascript sure. Timeouts/expirations/whatever is handled by the server anyways so I don’t see why it matters where you store the sid client-side.

 
Flag Post

Topic: Game Programming / Adobe Roadmap - Goodbye Actionscript "Next" and changes to Premium/licensing

Not sure, you don’t need a complete overhaul of the language and architecture in order to make some drastic improvements. Obviously it won’t be as good as scrapping everything and starting over, but the costs will be much less.

 
Flag Post

Topic: Game Programming / Global Game Jam 2013

scoreboard is completely local so… I would be afraid that your computer has been hacked into if you weren’t leading!!

 
Flag Post

Topic: Game Programming / Global Game Jam 2013

Our group’s game: http://www.overworldlabs.com/ggj_harvest/Harvest.html

Enjoy :)

 
Flag Post

Topic: Game Programming / Identical, but not equal

I would suggest when creating the arrays to create some hash and keep it updated. Then, you can be pretty sure with quite high confidence that the arrays are different.

 
Flag Post

Topic: Game Programming / Al Zimmermann's contest.

since I gave up on the topcoder $10k contest I’m gonna start taking a crack at this eventually…

EDIT: Ok the trivial solution ((2n-3)-step) gives me a score of 8.95, which basically means that even at the top end k is not too much smaller than n… of the solutions found so far.

Anyways, I think the breakthroughs to good scores will be from adding random big numbers and suddenly getting a useful number. When you mix addition and multiplication together lots of complicated and weird things happen. I think any solution which generates all the factors and then multiplies them together is not going to be the optimal one (for the larger cases).

 
Flag Post

Topic: General Gaming / Guild Wars 2 Guide

better guide:
Do the events and hope you get a legendary craft. Seriously can’t believe the Karka event just gave them out like that… 150 gold!!

 
Flag Post

Topic: Game Programming / Rainbow Math!

Originally posted by Aaants:

Color.interpolateColor works for what you’re trying to achieve.

Nice, did not know that method existed.

 
Flag Post

Topic: Game Programming / Rainbow Math!

Look into RGB to HSV transformations. You can do a simple lerp in HSV space to accomplish this. There are probably more complicated ways to get better control over the transition though, such as specifying intermediate colors and whatnot.

 
Flag Post

Topic: Game Programming / How Would You Do This? - #6 - Pathing

Originally posted by BobJanova:

I’d quantise the cubic spline because as others have said there is no trivial way to find evenly spaced points on one in its raw form. (You basically have to guess and then use N/R or something similar to converge on the right spot.) This seems to be something of a consensus.

Hrm I’m not very knowledgeable about this but I don’t see why it’s not doable… If you have a curve you can then parametrize it with the arclength parametrization and then increase the parameter at a constant rate. The math will probably be a bit involved though, but I’m sure there’s gotta be some research out there with closed form solutions for B-splines at least.

Of course, that’s not really a great use of the programmer’s time…