JohnnyBohnny
113 posts
|
Topic: Game Programming /
Unity discontinues Flash support
It also seems that Adobe is slowly leaving Flash behind, because of HTML5. What worries me though, is that one day, youtube and other video websites will be using html5 for their videos, and not Flash Player. The only reason for someone to install Flash Player then, would be to play games. Is it time for me to leave Flash Player behind as well?
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Show us a screenshot of what you're working on!
That’s pretty cool, do the textures connect automatically?
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Javascript DOM 3d Engine
So as long as you find your own hosting, you can put everything on Kongregate?
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Dynamic color health bar
Thanks for bringing it up. I’ll test my games on a black-white monitor from now on.
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Tile game data
The data will be between 32-64 cubed in size.
@Drakim, is this what you mean? It looks promising, thanks for the suggestion.
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Math (algebra) help
a formula that drops to 0:
f(x) = 1/x
Plot
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Dynamic color health bar
This health bar works fine for someone who is colorblind, right?
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Tile game data
What is the best way to store the level data of a 3D tile game? Should you make a 3D Array or an array of bitmapDatas, where each color represents a different block? (AS3)
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Best language to write a platformer in?
Haxe is quite hard to get into, especially if it’s your first language. I suggest AS3 or Stencyl (check the Stencyl forums on Kongregate)
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
3D projections
I know, but I am looking for a mathematical solution, not an AS-related one.
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
3D projections
I am creating a 3D engine (without Stage3D, OpenGL, DirectX), to get a better understanding of the way 3D projections work, and 3D calculations. Since AS2 has no 3D support, I’m making it in AS2.
My question is, how are 3d vertices transformed into a 2d projection?
What I am currently using:

then the angle ‘alpha’ is turned into a y coordinate for the projected point V.
yv = a/(fov/2)
The problem with this is that it requires several sin() calculations for every vertice, which is really bad for performance. In modern day games, if the fov is set to 180 for example, the side of the screen will look stretched.

Is this a solution to that problem? I don’t know how points are projected in those engines, and I can’t find anything on it.
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Center For Copyright Information - Six Strikes
It is impossible to lock your game completely, but you can make it difficult/annoying for hackers.
For that reason, I like to put this in my code:
while(not launched on kong){
trace("my game is sitelocked, play it on kong") //this will be shown on the screen as well
trace(sin(cos(sin(cos(sin(cos(random(9999999))))))))
}
This will crash the user’s browser, or the hackers flash player for 15 seconds. Hackers will get annoyed because everytime they check if they removed the sitelock, they have to restart flash.
Users from a site that uses bots to steal games will be less likely to go to this site again, because it crashes their lower-end PC’s.
Checking if your game is launched outside kong can be done on several ways, best would be to use all those techniques at the same time, and invest some money in a code obfuscator and a swf encryptor.
What I do, is put that code in it, secure the swf with a password (inside Flash CS*), secure the swf with a swf encryption program (which also adds another level of site lock), and then secure it with mochi. You might say it’s overkill, but it really just takes a minute or two to do so.
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Arduino Robot
I think that calling the delay(x) function in the Arduino code puts the processor into sleep mode. This is, however, only if you aren’t using any freaky libraries that use timer2 and timer3.
As for the pushing/slicing of arrays, you can pretty much forget it. I’m having some trouble with it as well, where I want to add a letter to a string (char array). Having arrays that are too large, i.e., their size increases dynamically, causes libraries to glitch out, or even cause the ATmega to shut down until it is resetted.
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Center For Copyright Information - Six Strikes
Copyright is one of the things I dispite the most in this job.
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Rotation Problems
I don’t see how rotating something will move it..
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Car only moving in the y-axis
It is not
rotation*(180/3.14159)
But
rotation/(180/3.14159)
You are converting degrees (full circle=360) to radians(full circle=2*pi)
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
AS3 Multiplayer API?
Multiplayer requires servers, which you have host and code yourself. There are some alternatives, like player.io, but there isn’t an as3 api that simply makes your game multiplayer.
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Flash profiling - what do you use?
Hm, scout didn’t work for me when I just double-clicked the swf, but that might just be my system.
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Actionscript 3.0 X Y coordinates
You could put it inside a text field
Inside an onMouseMove function, place this:
myTextField.text = mouse.x + ", " + mouse.y
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
making metroid fan game
Are you using Stencyl or Flash?
|
|
|
JohnnyBohnny
113 posts
|
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Flash profiling - what do you use?
Scout will profile all flash players inside a browser, so just open your swf with chrome.
|
|
|
JohnnyBohnny
113 posts
|
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Making a car move in Flash...
Could you just paste the step function code and the steppper layer code here?
|
|
|
JohnnyBohnny
113 posts
|
Topic: Game Programming /
Flash animation problem
Someone who is so desperate for an answer that he recorded a video of it and created a kong account is probably not looking for that solution.
|