Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 22 May 2003
Offline Last Active Jun 27 2015 10:08 AM

Posts I've Made

In Topic: Whats wrong with this code?

21 January 2013 - 09:57 AM

But you set playgame to true AFTER calling GameLoop!?

In Topic: Just starting out...python a good choice?

29 October 2012 - 06:55 AM

I think you can use HTML5/Javascript to make games and not only static web-pages. The HTML5 spec has a canvas object to draw on, as I understand it (which, coupled with javascript, will let you make a game loop update/draw cycle).

Should you go with Python and Pygame, the pygame home page has a nice step-by-step tutorials series. I use Python + Pygame as it lets me focus more on the game design / design patterns / getting a basic grip on everything etc more than a graphics library API.

GL HF! Posted Image

In Topic: Issues with 2D tile-based Sidescroller Water

29 October 2012 - 03:45 AM

Looks good! Wow.

In Topic: Javascript collision detection in tile based game (demo page available)

22 October 2012 - 08:04 AM

To be honest, at the moment i'm really struggeling with the issue of having physics (gravity/friction/acceleration) work with collision detection.

It's really discouraging to sit four hours everyday to try and solve one simple problem so that i can proceed on to the next steps of the development.

Ha, yes. I have been trying to do a platformer for the last two-ish weeks, and like you I got quite frustrated because initially I thought that it wouldn't be so hard, or that it was a "newbie phase problem". However, in reality, I think it the problem is medium to hard. It is not a simple problem. Each domain (ie animation, collision detection, player control, state machines, etc) on its own is kind of trivial. Merging them all to make a jumping, walking, falling, animated player (that gets eaten by crocodiles but not doves) is kind of hard.

(And, the player class (which I suppose you started with) is presumably the hardest of all, since it can do the most.)

To be honest, I spent the first few days of coding not coding at all, but just staring at the screen absent mindedly, going through (and rejecting) various code scenarios in my head. Oftentimes, my head would implode a bit because it couldn't even fathom all the things to be considered at once.

Eh, so to summarize I'd like to say: It's a hard problem. There is no "clean", automagic solution that will accomplish what you want without if clauses. :)

(but it would be nice if someone would prove me wrong ofc... )