Recent posts by Drakim on Kongregate

Flag Post

Topic: Game Programming / Deeper Topic (part 2): Composition over inheritance

Yes but, the first lacks one kind of position, and the second lacks the other kind of position. So the neutral state needs to be position-less (as opposed to hard-coding the position component into the entity class itself).

Either way, I sometimes find myself using entities for non-game-object things, such as a sort of AI mind, with components being various goals, desires and modificatiors. Such an entity doesn’t need a position component.

 
Flag Post

Topic: Game Programming / Deeper Topic (part 2): Composition over inheritance

As for what entity doesn’t have a position, it depends. Say that your game has an overview chess board style view, but also an arena fight-to-the-death view. In such a game, the chess piece entities would want to have a grid based position, and would require a component to do this properly, while the arena entities would want a regular world coordinate postion, and would require a separate component to do that properly.

Of course, you could probably shoehorn both kinds of functionality into a single component with dual use, but other situations can arise (what if the area entities can jump, requiring a z-coordinate?) where you are better off separating the components.

 
Flag Post

Topic: Game Programming / Duck Chat

Depends on how much money you are offering.

 
Flag Post

Topic: Game Programming / HTML5 web storage - which domain will be used ?

The domain the game is uploaded to. Web storage isn’t allowed to access anything else.

 
Flag Post

Topic: Game Programming / [Rant] 10 Reasons Why I Dislike Unity (as a Developer)

This topic has been untouched for more than a year MilitaryG, last post was January 2013.

Furthermore, calling Draco a “programming idiot” is pretty hilarious. I’ll just leave it at that.

 
Flag Post

Topic: Game Programming / Is Kongai still being developed?

I enjoyed the game before I “figured it out” as Draco listed. Now it is essentially random luck (or easy wins against bad players) because the game devolves into a “knew you were thinking that, so I did the opposite” fest.

 
Flag Post

Topic: Game Programming / Confused about programming languages / graphic engines

jQuery is a popular JavaScript library. It’s basically a shortcut library, that a lot of people use to write less code.

If you want to make HTML5 games due to the ease of accessibility, just google “HTML5 canvas game tutorial” and you’ll find plenty of places to get you started.

Whatever you do, do not get Flash Professional. Your confusion over actionscript being a “game engine” stems from the terrible “timeline coding” newbie developers do in Flash Professional. Stay away, get Flash Develop if you want to try out Flash.

 
Flag Post

Topic: Game Programming / Limiting class instantiation and function calls

Make the Class3 constructor take a password parameter and have it throw an error if the password isn’t correct. Don’t tell the password to anybody.

 
Flag Post

Topic: Game Programming / HOT Topic!! Entity Component Systems Revisited.

In my games, I provide no priority value for 95% of all my events/signals (meaning a default priority value of 0).

Priority is mainly there for things that specifically needs to run before (or after) other things.

For instance, it’s pretty important that the armor reduction has a higher priority than the life subtraction, otherwise armor wouldn’t work.

 
Flag Post

Topic: Game Programming / Overriding the + Operator

You can do overloading with Haxe’s abstracts, but that means you won’t be using AS3 anymore.

 
Flag Post

Topic: Game Programming / HOT Topic!! Entity Component Systems Revisited.

I think it’s possible to do without events/signals, but I think it would be a lot more work for very little gain. If an external system is to loop over all the armor components and apply their effect, that system has to be “aware” of those armor components so that it knows how to apply them (for instance by forcing them all to implement an interface).

This, I feel, would be too restrictive. What if you want an armor that stops 50% of the damage from hurting the unit for a five second grace period, and then triggers a new damage event/signal? Or an armor that transfers 25% of the damage taken to the source of the damage? And what if it’s important that certain armor components are applied before some other armor components?

To account for all of these things in an damage component interface would be very hard and unelegant. I think as one attacks the problem and creates a new abstraction, one will end up with something very akin to events/signals anyways (but limited to the armor components).

 
Flag Post

Topic: Game Programming / Fallendays *the first of the years* new game I am making recruiting unity programers.

Hi sworean,

You seem a bit inexperienced in development, so I thought I’d help you out by explaining some things. We get a threads like this posted quite often, so don’t feel singled out, okay?

Your game is not gonna happen. The reason for this is that you yourself do not have any skills to bring to the table, such as programming, music or art. You cannot convince other people to join in and help on your project while you sit and point your finger at what features that should and should not be in the game. Being the “idea man” is not a valid role in game development.

After all, why would I, as a developer, be working on my spare time to create your game, when I could instead be creating my own game?

You should pick up some programming tutorials and learn to code yourself. Once you are capable of producing something yourself, you may be able to convince some other people to join in and help you with your vision. But even then chances are you won’t get help and will have to make do on your own. It’s a rough world.

 
Flag Post

Topic: Game Programming / Game editor for enthuziasts

I don’t think many people here over in the programming forum would be interested in a non-programming solution for making games. It’s kinda out of tune with our main skill in game development.

 
Flag Post

Topic: Game Programming / Making a simple RPG, need some tips on jobs and equips

Entity component design is just a certain way of coding, it’s not one specific library or anything like that.

Flixel and Flashpunk helps you by doing some heavy lifting and laying down some railroads for you to extend with your own code. It’s usually good enough for most things. But I do think they will eventually be too limiting as you progress as a developer.

 
Flag Post

Topic: Game Programming / Inverse Cellular Automation

Also, cellular automation tends to “die” eventually, leaving a few stable cells on the field. How would you reverse that? There is simply a loss of information as the simulation goes on (as truefire points out), so it cannot be reversed.

 
Flag Post

Topic: Game Programming / Displaylist and Bitblit performance

Blitting is generally a good thing because it teaches you the “proper” skills. The flash displaylist is specific to flash, while “blitting” is pretty much the universal way of displaying graphics (unless you want to tap into a GPU and use polygons on a flat surface)

 
Flag Post

Topic: Game Programming / ...

Originally posted by GlassChessX345:

And besides, all the people I have right now (and most likely, I’ll have more to come.) are all working on this cause they are DESPERATE. They really wanted someone with ideas, practical ideas and they’re more than willing to get down to development right now.

Oh sweet mercy, you are hurting my sides.

I’ve now officially jumped over to the “trolling” theory. You had me for a while, good sir.

 
Flag Post

Topic: Game Programming / ...

The funny thing is, usually idea guys have absolutely terrible ideas. It usually boils down to “it’s like this thing that already exists but with X and Y improvements”.

I suspect this is because of the Dunning–Kruger effect you are essentially so bad at something that you don’t realize that you are bad at it.

 
Flag Post

Topic: Game Programming / ...

Originally posted by GlassChessX345:

Vesper, I already have a useful skill… The skill to gather up a bunch of people and tell about my ideas and get them into work and I already have a team who can do this for me

Man, at this point I’m not sure if you are trolling or not. If you are, my hats off for you.

But if you are not, just realize that there is a guy like you here every week. It always, always ends with absolutely nothing, and you will be no exception. This thread will die, you will find that your volunteer workers have better things to do, your vision will lose it’s original appeal, and you will find the fact that you don’t have any useful skills to be a huge obstacle.

 
Flag Post

Topic: Game Programming / We have created a website where you can download code samples that show many different rendering techniques and effects!

It looks great, but I’m a bit bothered by the focus on selling code snippets, because I suspect these code snippets don’t contain much original thought and engineering.

But to each his own.

 
Flag Post

Topic: Game Programming / right click?

There is, but why do you want to prevent it? I personally vote 1 star on every game that doesn’t allow me to change the flash quality, since my little netbook can’t handle the game otherwise.

If you google “flash right click” the first result shows you how.

 
Flag Post

Topic: Game Programming / [JS] Prevent/Disable/Intercept Print Screen

That doesn’t matter when you are using their office PCs. They don’t have macs there, it won’t be an issue.

IE for mac hasn’t existed since IE5 btw.

 
Flag Post

Topic: Game Programming / [JS] Prevent/Disable/Intercept Print Screen

If you have issues with the “user clicks focus to another place and then screenshots” you could make your test be blank when it does not have focus, and then listen for the printscreen when it has focus like you already do.

Although it’s obviously security by obscurity, it should deter all non-technical users and make your employer happy.

 
Flag Post

Topic: Game Programming / Deeper Topic (Part 0): Class Discussion and Review

Hmmm, the code coloring plugin must be causing it. Thanks for the heads up, I’ll see what I can do.

 
Flag Post

Topic: Game Programming / [AS2] Main Loop

Very much so. Having one onEnterFrame for the whole game is vastly superior to having many, both in memory and CPU usage.

(but if you find that you are still having performance problems, consider going over to AS3)