Recent posts by BIGMANONCAMPS on Kongregate

Flag Post

Topic: Game Design / How to design a design document?

Personally, the best way is just to find a template like this and fill it in. You can find plenty of templates and samples from google.

One template won’t fit all obviously, you’ll want to remove some sections that don’t apply and add in others where you need more information.

 
Flag Post

Topic: Game Programming / Can making a game with AS2 be justified?

AS2 would probably be a better choice for a “click the button” game, just by virtue of the fact that it’s easier to type “function onRelease()” then to add a listener.

The difference in difficulty between overriding a function and adding an event listener is completely negligible, it’s literally one extra line to type.

 
Flag Post

Topic: Game Programming / Things you'd like to see in an engine?

It would be useful if it had code to auto detect which portal the game is currently hosted on and to choose the correct stats API to use.

 
Flag Post

Topic: Game Programming / structure of shoting 2d game

I don’t think the Kongregate labs cover what OP is trying to achieve, having different kinds of waves launch in stages. The enemies in the shootorials come at the player completely randomly.

 
Flag Post

Topic: Game Programming / AS3 - Comparing Classes

How about something like:

private var _turret:Turret;

try
{
    _turret:Turret = new Class();
}
catch (e:Error)
{
    trace("Not a turret");
    _turret = new DefaultTurretClass();
}

I’m still struggling to think why you need to do this at run time. It would be much easier if you just told us what you are trying to do.

 
Flag Post

Topic: Game Programming / AS3 - Comparing Classes

Why do you have to compare the classes? What’s stopping you from creating the object before you check it?

 
Flag Post

Topic: Game Programming / Mobile Development?

I’d stick with a mobile optimized application which is just a normal web app but optimized a whole ton so it can run smoothly on a mobile device.

Presumably you can’t put the game into the market if you do that though?

 
Flag Post

Topic: Game Programming / XML on Kongregate/other Flash Portals?

If you’re using FlashDevelop/Flash Builder etc it works more or less the same as embedding an image or sound:

[Embed(source="test.xml", mimeType="text/xml")]
protected const EmbeddedXML:Class;

var x:XML = XML(new EmbeddedXML());
trace(x.toXMLString());

I’m not sure how it works if you’re using Flash CS, but they’ll be plenty about it if you google.

 
Flag Post

Topic: Game Programming / My moms birthday today

A screenshot would be nice so we can see what it looks like. Also, unless I’m missing something you seem to have left out the majority of the code (the rose classes).

 
Flag Post

Topic: Game Programming / Syntax Highlighting

Originally posted by Danishdragon:

Hmmm… Already heard it should be word3, but doesn’t change any of my code.

Is it possible I have to change some settings elsewhere :S?

I had to change some settings to get it to look right in FlashDevelop 4, I’ll upload my version for you: http://dl.dropbox.com/u/2431458/customHighlighting.fdz

Let me know if it works.

 
Flag Post

Topic: Game Programming / Flash v Unity v HTML5 v ???

I don’t think there is any incentive for game developers to leave Flash at the moment, or in the near future, but I do believe that HTML5 will start to replace Flash for new web apps and streaming videos. Companies are very keen to support the growing mobile/tablet market, and as Drakim said, Flash support on these devices typically isn’t that great, if the device supports it at all. Major site like youtube are making a gradual change to HTML5 already.

 
Flag Post

Topic: Game Programming / Glow effect doesnt cycle properly

You’re declaring bAlpha as a local variable, so it’s always false at the start of the function.

 
Flag Post

Topic: Game Programming / Flash v Unity v HTML5 v ???

Iirc, the number was 99.7%

It’s almost certainly not that high. Most independent sources I’ve checked have Flash Player at around 96%

cite 1: http://www.statowl.com/custom_ria_market_penetration.php

cite 2: http://www.riastats.com

 
Flag Post

Topic: Game Programming / Syntax Highlighting

Pretty nice, although personally I’d prefer a bit more contrast between the code and the background.

 
Flag Post

Topic: Game Programming / Syntax Highlighting

Does anyone here use any custom syntax colouring for their code? I’ve been using this one recently, and I definitely find it a lot easier to look at than the default black on bright white:

source

Share yours if you have one.

 
Flag Post

Topic: Game Programming / ***Kongregate's "Unite11" Game Blitz Contest [Win a pass to Unite11 Unity Conference]***

Originally posted by truefire:

I wish unity would just die already… We don’t need the Internet even more divided. I suppose it can stick around until we have molehill though.

Choice and competition is good for everyone, it drives innovation and all that.

UnityScript is the most horrible language I’ve ever seen, it’s even worse than AS2. I know there are alternatives but that’s what’s gaining traction,

I don’t see why UnityScript gaining traction means you can’t still use the alternatives?

 
Flag Post

Topic: Game Programming / Telling people you know at school/work you make games

/firstworldproblems

 
Flag Post

Topic: Game Programming / hello world

(every year there are a couple brainfuck submissions to google code jam prelims or round 1)

I thought there was a rule against using purposely difficult to read languages?

 
Flag Post

Topic: Game Programming / Calling functions from a class..? [as2]

Don’t try to put the key listeners in the Char class, have a level or game class with the listeners in that calls the relevant functions of the player. I can’t remember how you do key listeners in AS2, but it’s something like:

class Level{

    private var player:Char;

    public function Level(){
        var keyObject:Object = new Object();
        keyObject.onKeyDown = player.switchWeapons();
        Key.addListener(keyObject);
    }
}
    
 
Flag Post

Topic: Game Programming / big pixels

Question 1 would be better asked in the art forums. This is the only thing I’ve come across: http://www.gamedev.net/reference/art/features/CoderGameArt/. It’s not specific to pixel art but there are some good tips in there.

For question 2 I’d have the background as a big bitmap, and do something like this:

for(var i:int = 0; i < NUM_SQUARES; ++i){
    var pixel:Rectangle = new Rectangle(Math.random() * stage.stageWidth, Math.random() * stage.stageHeight, 10, 10);
    background.bitmapData.fillRect(pixel, Math.random() * 0xFFFFFFFF);
    pixelCollection.push(pixel);
}

addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);

private function onMouseMove(e:MouseEvent):void{
    for each(var pixel:Rectangle in pixelCollection){
        if(pixel.contains(e.stageX, e.stageY))
            background.bitmapData.fillRect(pixel, Math.random() * 0xFFFFFFFF);
    }
}
    
 
Flag Post

Topic: Game Programming / Programming help

He did put _y and _x, but the forum used them as formatting. That’s why the post goes in and out of italics.

 
Flag Post

Topic: Game Programming / Developer's Survey

I use SwishMax 3. it can do almost everything Flash can, except no AS3 support yet, and it struggles with external class files a bit sometimes. I don’t really use classes, and don’t know AS3 anyway, so it doesn’t matter. its also a lot cheaper than Flash, and a lot more newb friendly.

If you’re not using AS3, why didn’t you just buy Flash 8? It’s about half the price SwishMax3 is these days.

 
Flag Post

Topic: Game Programming / Object Oriented Programming - Making an RPG...[SOLVED]

You’re going to need a reference to gold anyway, why not through player?

 
Flag Post

Topic: Game Programming / Object Oriented Programming - Making an RPG...[SOLVED]

Make them static variables? Or when you want total kills, just use var totalKills:Number = player1.kills + player2.kills etc;

 
Flag Post

Topic: Game Programming / Object Oriented Programming - Making an RPG...[SOLVED]

I’d put gold and total kills in the player class personally.