Recent posts by pugzy on Kongregate

Flag Post

Topic: Game Programming / JAVA GAMES

You could use GWT and translate your code to JavaScript and upload as HTML5 game.

 
Flag Post

Topic: Game Programming / My game

Make it so no matter what you do you die. Pull trigger to launcher? Blows up inside launcher.

 
Flag Post

Topic: Game Programming / Squares game - android/web - looking for feedback

The game needs a tad bit more responsiveness, and I’m assuming the wait is like a turn thing. You need to point that out. Or explain why you’re waiting, because I have no clue.

 
Flag Post

Topic: Game Programming / Closed Browser Idle Timer

Without using a server a simple way is to get the last time they they were playing/updated, and then when they start the game, calculate the difference in time and then calculate the values of whatever with the difference of time.

 
Flag Post

Topic: Game Programming / Tips on code organization

Originally posted by archipel1:

Depending on what the functions and possibly variables/constants are, yes. If you’re holding the player as a static variable, no, don’t do that.

Why do you think that ? I find it very convenient to have access to the player anywhere in the code via a static reference

Might be more convenient, but if you decide you want to add multiplayer, then you will have to rewrite. If anything, it makes more sense to make a class called and do a style like,
Game.getGame().getWorld().getPlayer(); Or even World.getWorld().getPlayer(); imo.

Originally posted by GraveyardTech:

Thanks for the replies, I’ll take a look at your suggestions.

I’ve created one file with static “support” functions much like how Jquery is in a single file and its functions can then be used while using Javascript. But I’m guessing you guys think its better to extend existing classes?

The other static file holds several values but it’s mostly for keeping the arraylists that hold every single thing in the game so I can access them freely, which is something I really need. Again a Javascript habbit I guess, as I’m used to being able to access anything everywhere. What are the downsides to having so much variables static by the way? I guess it has something to do with being too vulnerable to bugs and interdependencies?

The problem with using static variables is that they’re ‘shared’ with every instance of that class. Which is good if you are using them as constants, because you only need it once if it’s constant as it will only be one value. However, if you make health static for all Goblins, every goblin will have the same amount of health, because they are all referring to the same variable, not THEIR own variable.

 
Flag Post

Topic: Game Programming / Tips on code organization

Originally posted by GraveyardTech:

So the reason I’m posting this is because I want to learn how I could improve my organisation, not because something is going wrong at the moment. Is it normal to have two files with just static variables and functions?

Depending on what the functions and possibly variables/constants are, yes. If you’re holding the player as a static variable, no, don’t do that.

Take a look at the Math class in AS3. All it has is static functions and constants (aside from properties and methods inherited from Object). This class makes sense though, because none of the functions matter about state. The constants are static, because it doesn’t make sense for every Math object (if you were to make a Math object, lol) to have it’s own PI variable as they never change.

 
Flag Post

Topic: Game Programming / Unity WebPlayer Data Persistence

From what I’ve seen, it’s good. If I recall correctly, it used to have performance problems, but they fixed that. So unless you’re using a lot of data, or want to load/save any where, you’ll be fine with this.

 
Flag Post

Topic: Game Programming / Unity WebPlayer Data Persistence

Originally posted by Furjoza:

There is no way to use kongregates API or something?

No, because Kongregate doesn’t store save files. There are some free webhosts you can look into if you can’t/don’t want to host your own server. Though I don’t know how well they are.

 
Flag Post

Topic: Game Programming / Unity WebPlayer Data Persistence

Originally posted by EndlessSporadic:
Originally posted by pugzy:

Use Unity’s PlayerPrefs if you don’t want to write your own save/load system.

It’s not possible to write your own save/load system in WebPlayer due to security concerns. Most IO operations are not allowed. You can read, but often times you are not allowed to write. The exception to this, as you mentioned, is PlayerPrefs. You can find the documentation here. Should you need to save anything more complicated than a string, float, or bool you can serialize the data into a string then save the string. Be careful though, as the last time I checked you can only save up to 15MB with PlayerPrefs.

I didn’t say that you had to write it within the WebPlayer, you can still write your own load/save system, however. You can use WWW to GET/POST data on a website, for example.

Originally posted by Furjoza:

Thanks Endless. 15MB is quite a lot. My players data is one class with maybe 15 values, so I guess it shouldnt be a problem. Storing data in PlayerPrefabs will make the saves avaible only from computer it was saved? Is there possibility to connect that file with kongregate account?

If you want to connect files you’ll have to use your own system such as using WWW + website.

 
Flag Post

Topic: Game Programming / Unity WebPlayer Data Persistence

Use Unity’s PlayerPrefs if you don’t want to write your own save/load system.

 
Flag Post

Topic: Game Programming / Seeking Help with text adventure game

I can supply the graphics

 
Flag Post

Topic: Game Programming / Any FREE game making programs

You should pay them for doing most of the work needed to display pictures and what not on your screen, so you don’t have to.

 
Flag Post

Topic: Game Programming / Any FREE game making programs

Originally posted by 333Gamestudios:

Uity 3d definetely is the best to learn on (creates awesome games,is free,on it you ll get used to JS,C#or boo if u want to;has easy importing methodes + its quickly growing and there are tones of tutorials and assets)XD

Meh. You should only stick to one language in Unity, and that should C#.

Originally posted by 333Gamestudios:

And those who said that u can make a good games on free versions of the payable engines are wrong cuz many succesfull indie games were created on free version of unity check out gamjolt there s bunch of games like that that have 100k+ plays… and are rated +

No one said you couldn’t make good games in Unity. There’s a difference between good/bad software to make games and good games made with said software.

 

Topic: Kongregate / [removed]

This post has been removed by an administrator or moderator
 
Flag Post

Topic: Game Programming / Any FREE game making programs

Originally posted by FlashGrenade:

I’m not defending anything. I firmly believed flash and as3 was the way of the future, and the future along with mobile tech has proven me wrong and laughed in my face. I do agree with you on which tool and script is the best: nobody can agree that any are the best therefore we should all agree that NONE are the best. Except the code and the tools that you are comfortable using and which help you understand how to code and how to make games with perfect clarity.

You need to define “best”. Programming languages are tools. And like another type of tool, you choose the best one that fits, whether it’s hammer and nails (C/C++) or screw driver and screws (AS3). C++ has the benefit that it can manage memory differently, the obvious downside is that there’s more to do and more to look out for. The benefit of most of the other languages (scripting or Java/C#) is that a lot of the gritty stuff is mostly done for you and you start whatever when ever, the downside is that some areas of the languages make performance for games terrible and some game ideas/genres can’t be done in said language.

That being said, there is a best, and that’s simply almost any, depending on the language you want to use.

 
Flag Post

Topic: Game Programming / How to Make any kind of game??? NOT 3D

What part of making a game do you want to know? Programming? Design?

 
Flag Post

Topic: Game Programming / Prototype Game Ratings

Originally posted by archipel1:

Even though you can’t delete your game, you can upload a blank flash file and change the title to “deleted game” so as to nobody play it.

You can ask the admins to remove your game(s). However, like Stain said, I don’t think the admins will like that it’s just for ratings.

 
Flag Post

Topic: Game Programming / Lag on Firefox when clicking buttons

Originally posted by EndlessSporadic:

All I can say is that Firefox is a really bulky browser.

As compared to Chrome? No.

 
Flag Post

Topic: Game Programming / How do I change the size of my game?

Originally posted by archipel1:

This game lets you change the size at any time without affecting gameplay:
http://shimage.net/village-guardians/en/

I’m assuming that they didn’t make the game 3 separate times in different sizes. Is there a simple way to do this?

If you just want to do this, load your image and upscale it 2x, 4x or 6×.
I don’t know what language you are using but something like this should work :

Image myImage = new Image(“Image path”);
myImage.width = 2*myImage.width;

myImage.height = 2*myImage.height;

Would probably work better by making bigger image and scaling down, rather than up.

 
Flag Post

Topic: Game Programming / LOVE2D Games

Originally posted by darkjonas8:

I took a quick look at google and found out that you cant actually upload love2d games to kongregate, you can only export your game as a windows, mac or linux executable which kongregate doesent support.

Not entirely true, unless they stopped making it, you can still export to web, which uses WebGL.

 
Flag Post

Topic: Game Programming / Unity Web App File?

Yes that’s it. And you don’t have to worry about limiting yet… You’re only at 3MB…

 
Flag Post

Topic: Game Programming / {AS3} Problem

If you’re networking, why are you using button on network?

 
Flag Post

Topic: Game Programming / funbals

Or nah.

 
Flag Post

Topic: Game Programming / How to make a 3D game without C++ (HTML, no WebGL)

Originally posted by PuerMagnum:

Obviously not or you wouldn’t be arguing.

Or maybe if you’d listen to us you’d get smarter.

 
Flag Post

Topic: Game Programming / How to make a 3D game without C++ (HTML, no WebGL)

Originally posted by PuerMagnum:

Yeah, but if we have unity, we can work together to make just ONE universal programming language!! You guys don’t think outside the box!

So you want to incorporate a language that has polish notation AND algebraic? You want it to have a garbage collector AND not have one at the same time? Seems legit.