Recent posts by imp2 on Kongregate

Flag Post

Topic: Game Programming / Ideas For Nova Creatures

Yeah, this is a forum for game devs. Why would we just give out ideas when we can make them ourselves?

If your looking for ideas, you can:
-Pick 2 random words out of a newspaper, and design a game that incorporates them.
-Read Sun Tsu’s Art of War.
-Draw a game theme from your favorite phrase/movie/song lyric/whatever.
-Start a game design with things that it can’t have, sometimes people work better with restrictions.

There’s ideas everywhere

 
Flag Post

Topic: Game Programming / Studied static functions and interfaces today, are they of use in game design?

to me interfaces are a last case scenario, If possible I’d rather derive to classes from a base. every time I use interfaces I have to keep classes synced, and it ends up being more trouble than its worth.

 
Flag Post

Topic: Game Programming / GiTD [#33] Exploration! (225 Kred prize)

Last suggestion, I promise

Fight Fire with Fire

 
Flag Post

Topic: Game Programming / GiTD [#33] Exploration! (225 Kred prize)

The reason collection was a great theme is because it can be applied to multiple game elements like story and gameplay. Mythology can be any game, you’re just limiting the art and setting. Ouroboros is nice because it can fit the gameplay and the game’s setting, but I have a feeling we would all make the same game, and it wouldn’t be fair because I designed and Ouroboros game years ago.

music forces all contestant to find a musician, cards forces a specific genre, hallucinations will fend off non-graphically talented devs

I like rebirth, repair, illumination, dimension, splitting, and sandbox.

I’ll make things even more convoluted with more suggestions.

Colors
dependency
food
Infinity

 
Flag Post

Topic: Game Programming / .swf encryption

This might be a horrible idea, but I noticed that root.loaderInfo.bytesLoaded changes if you add/remove a small amount of characters. suppose you set super important global variables based on some arbitrary digits in bytestotal. lets say


Global.EPSILON_DELTA = (root.loaderInfo.bytesLoaded & 0×4F)%100;
// - ends up being 8, but you wouldn’t put this comment of course

and then, say you put enemy health equal to the above global variable. It might be very hard for the hacker to find this, and changing your code just slightly enough to try and figure out whats going on might change that 8 to a 79. I also wonder if de-compiling a script creates an AS project that, in-turn compiles to a swf file of the same size.

Like I said, this might be a horrible idea, I know nothing of security

 
Flag Post

Topic: Game Programming / GiTD [#33] Exploration! (225 Kred prize)

Theme suggestion: Deception

 
Flag Post

Topic: Game Programming / [AS3] Getting function arguments from an array [Solved!]

I still don’t get why apply is needed instead of just passing an array or vector.

 
Flag Post

Topic: Game Programming / Yahoo Buys Player.IO

Originally posted by UnknownGuardian:

What is yahoo trying to do is the real question. PlayerScale is an incredibly focused company. Why would they want their foot in the door in this specific business?

maybe to compete with the new google game services

 
Flag Post

Topic: Game Programming / [AS3] Getting function arguments from an array [Solved!]

pro-tip: try not to use this on an enterframe, it’s 4 times slower than a normal function call.

 
Flag Post

Topic: Game Programming / Frameworks/engines, how to learn them

box2d is pretty tough, start out with flixel and just try to edit the example games they give you. once you can do that tutorials will make more sense.

 
Flag Post

Topic: Game Programming / One game a month

Only ten days left! Is anyone else freaking out?

 
Flag Post

Topic: Game Programming / [AS3] Getting function arguments from an array [Solved!]

what your looking for is the apply method;

pos.setup.apply(pos, [my arg array]);

Edit: my bad I got it in reverse

in as3 what you’re looking for is
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/statements.html#…(rest)parameter


function setup(…args):void{
for(var i:String in args){
trace(args[i]);
}
}

if you’re using as2 it’s called restParam

 
Flag Post

Topic: Game Programming / Using music in my game

try adding them as is first, and see what the filesize becomes. flash has comressed some huge files for me before. but if the filesize is too big, take Drakim’s advice and go with audacity, it’s super useful for a million things.

 
Flag Post

Topic: Game Programming / getters and setters in other languages

Originally posted by BobTheCoolGuy:

Java doesn’t – you just have to make regular functions typically prefixed with the word set and get.

My mistake, I figured AS3 and C# are based off Java, that must be from where it came.

The more you know…

 
Flag Post

Topic: Game Programming / latent controls issue

No lag here on chrome, on a decent PC.

 
Flag Post

Topic: Game Programming / One-way platforms

just use a velocity variable to move the player, if you’re making a platformer you should already have this and acceleration. You just check if the players velocity is going in the platform’s blocking direction.

sorta psuedo coding here…


public var velY:Number, gravity:Number;
public var onGround:Boolean
public init():void{
onGround = false;
gravity = 1;
velY = 0;
}
public function update():void{
y += velY;
if(onGround && upPressed){
velY = 15;
} else if(!onGround){
velY += gravity;
// -
- ONLY HIT IF FALLING
if(hit(platform) && velY > 0){
onGround = true;
velY = 0;
}
}
}

Edit: no idea how to fix the strikethrough, velY = -15;

 
Flag Post

Topic: Game Programming / getters and setters in other languages

C#
probably java(someone please confirm)

 
Flag Post

Topic: Game Programming / Show us a screenshot of what you're working on!

I think it’s alright for games to be purposely abrasive. as long as you know your doing it and you’re fine with it. it’s the closest thing to “punk” a videogame can be. You don’t tell Slayer not to yell when they sing, do you?

 
Flag Post

Topic: Game Programming / GiTD [#32] Voting finished! [imp2]

Those who gave feedback or voted for me: Thanks!
Those who submitted games: Awesome job, this vote was a tough choice because of all the great games
Those turning their GiTD games into a 1GAM game: be sure to join me in The Game Development Room so we can help each other out.
Those competing in GiTD #33: Good luck, see you there.

Artwork on Theifer O’Greedy by: Ian Merch

Additional artwork/ethnic PR (Don’t ask) by SwishCheese

 
Flag Post

Topic: Game Programming / GiTD [#32] Voting finished! [imp2]

Originally posted by UnknownGuardian:

nutter666 – BodyBagger |xxxxxxxx

I counted 10 votes for nutter666, making it a three-way
http://www.youtube.com/watch?v=Pi7gwX7rjOw

 
Flag Post

Topic: Game Programming / GiTD [#32] Voting finished! [imp2]

Thank you: Solsund, Hok0003, VBCPP, Dragon_of_Celts, Elyzius, Ivach, Ace_Blue and anyone I might of missed for the constructive criticism on my game, I’m messing with the controls now, so stick around the forum see if you like the newer version.

 
Flag Post

Topic: Game Programming / Logical OR help

Originally posted by Ace_Blue:

As for XOR, A XOR B = (A || B) && !(A && B). Sure it’s long, but it’s there.

A XOR B is if(A != B)

 
Flag Post

Topic: Game Programming / How Do You Pronounce...

Originally posted by VBCPP:

and adding
regex
#
LaTeX

regg-X
lay-tex: it supposed to be luh tech or something but screw it

 
Flag Post

Topic: Game Programming / Collision detection fail

Floating point errors happen with adding or subtracting “close” values (.6+.3). I don’t think you’ll ever get a floating for subtracting a number from the same number, which is what your doing when the x position is on the left most tile, which is when the subtracting values are “closest”.

(x – x%w)/w should always give you an integer if both of those values are integers. I really just thought it looked bad

anyways I feel bad for hijacking the thread with such trivial matters. so I’ll post this again for OP. highly recommend this and the same authors vector tutorials.
http://tonypa.pri.ee/tbw/start.html

 
Flag Post

Topic: Game Programming / Collision detection fail

i mentioned running three tests, those are the results of the three tests

and floating point errors are in every language not just flash

trace(20.19 – 20);// - 0.19000000000000128
trace(.9 – .3);// - 0.6000000000000001