Recent posts by TerryCavanagh on Kongregate

Flag Post

Topic: Game Programming / smooth scrolling without lag in a tile based game...

There seems to be a fairly widespread belief that lag in flash apps is mostly caused by flash’s slow garbage collector – I don’t know if that’s actually true, but you might try structuring your code so that you don’t create any new objects while the game is running (instead just reuse old data structures, etc). I’ve heard that this is how FLIXEL works, and it doesn’t seem to have any problems with lag.

 
Flag Post

Topic: Game Programming / Do high scores need to be approved?

Yep, I’ve set up statistics; here’s the code, it’s pretty simple:

public function savescore():void {
//other stuff

//kongapi earlier definied in this class as “kongapi = KongregateAPI.getInstance();”

//Kongregate API initialised in the preloader

kongapi.stats.submit ( “time”, timerecord );

kongapi.stats.submit ( “rank”, intrank() );

kongapi.scores.submit(score);

}

+remember it’s reporting ok in the shadow service, so it should be working :(

 
Flag Post

Topic: Game Programming / Generic code?

This simplifies input quite a lot: http://code.google.com/p/bigroom/wiki/KeyPoll

Beyond that I don’t really know, sorry :(

 
Flag Post

Topic: Game Programming / Do high scores need to be approved?

Oh. Well, in that case, why aren’t the highscores working?

 
Flag Post

Topic: Game Programming / Do high scores need to be approved?

Just curious; I’ve uploaded a shooter that reports highscores, and it seems to be working in the shadow service and I don’t think I did anything wrong while uploading it, but there doesn’t seem to be any highscore stuff happening. Does the high score functionality have to be approved like badges?

This is the game:

http://www.kongregate.com/games/TerryCavanagh_B/bullet-time