Tag Info

Hot answers tagged

29

Just putting all the files into a .zip file isn't a viable solution because most web-applications need a web-server so that they can access resources via HTTP-requests. On some systems you can access files via the file:// URI-scheme, but that's not guaranteed to work everywhere because of security-reasons and will fail for things such as AJAX requests. It ...


20

Take a look at this picture: It shows the process of mapping a (random) value to a curve. Suppose you generate a uniformly-distributed random value X, ranging from 0 to 1. By mapping this value to a curve - or, in other words, using f(X) instead of X - you can skew your distribution in whatever way you like. In this picture, first curve makes higher ...


20

You can embed images in the HTML document using the dataurl-syntax which allows to put the base64 representation of the binary image data as the src-attribute of an image. This also works on any other kind of media file. <img ...


18

The concept hasn't really died, it's just changed a bit and been given a new name. In fact, if you have an iPhone you can see it in action right now! Many 'free' or 'lite' games offer a sampling of gameplay and allow you to purchase DLC to promote it to the full title. On the PC use has declined, but I believe part of the reason for this is the lack of a ...


12

I'm speaking on behalf of CheapProFonts. ;) Obtaining a license for one of our fonts for inclusion in a software is easy and inexpensive: Just let us know that the font you purchase IS for that purpose, and then purchase two licenses for the font. So for $20 you will be allowed to include the font in your game and distribute as many copies of that game as ...


11

(Disclaimer: I am not a lawyer) In the United States a font face is not copyrightable (Eltra Corp. v. Ringer, 579 F.2d 294 (4th Cir. 1978)). But font software is copyrightable. A TrueType font (such as one you might download from cheapprofonts.com) contains instructions for how to render that font and is therefore a copyright piece of software. A bitmap ...


9

You can precompile lua using the luac tool in the standard distribution: luac myluafile.lua -o mycompiledluafile.luac To obfusticate the file, use the -s option to remove all the debug info. This won't make you immune to decompiling, but why does that matter? The -l option produces an annotated bytefile, which is really nice for learning how lua works ...


8

The main point is that the end user should not be required to install any Java JRE, nor should the installer contain a JRE and install it for the user You can use Java source/bytecode to machine code compilers. There are Excelsior JET for Windows and Linux (requires license) and GNU Compiler for Java which is old. If it's ok to contain Java with ...


7

For a Chrome-based solution to make the game run offline and enjoy some native functionality, you can consider making a Chrome App. This way, you can distribute it in Chrome Web Store for added visibility, you can enjoy some powerful APIs, and make it look more like a standalone app. The downside is, of course, requiring Chrome.


6

It's still around. We just no longer call it Shareware. We call it the "freemium" model: free to play but with premium content available for cash. The only difference between now and the old days is that we have better ways of accepting payment today: accepting credit cards over the internet (no more "mail a check to this address and we'll send you the full ...


6

A longer explanation: If you have a desired probability distribution such as the gradient didito asked for, you can describe is as a function. Let's say you want a triangular distribution, where the probability at 0 is 0.0, and you want to pick a random number from 0 to 1. We might write it as y = x. The next step is to calculate the integral of this ...


6

If the output bitmap matches the look of the font (the typeface) then it essentially IS the font, and yes you would be violating the license. You may embed the font in electronic documents, but you may NOT include the font in a software product - this requires a special license. Even though it's just an image it would still be the exact font, which is ...


5

You'd probably get a close approximation to what you want by utilizing an exponential system. Make the x based on something like 1-(rnd^value) (Assuming rnd is between 0 and 1) and you'll get a few different behaviors of left to right skewing based on what you use. A higher value will get you a more skewed distribution You can use an online graphing ...


5

Usually, when you're making something that will be ported to different systems (whether a game for multiple consoles, or an app for various mobile devices), it's common to wrap your code so that anything that is specific to one system (rendering, event handling, etc) can be completely replaced without touching the code for the logic. SDL (and SFML) are ...


5

Your co-workers need to have the .Net Framework 3.5 and the XNA Framework 4.0 installed. I don't think there's an easy way around that. Get them to install these first, then you can distribute the exes in a zip file with no problems.


4

A few reasons that I can think of off the top of my head -- I'm sure others will have reasons as well. They have to distribute patches for the existing users no matter what. By doing it this way, they minimize the amount of work they have to do on their end. Building new complete distributions takes a lot of time -- especially QA time. They would have to ...


4

Because people played the Shareware version of the game and then when it was done. They stopped playing and did not buy it. So the turnover rate was very low. The old shareware model you speak of "died" when the internet came to be popular, since a large part of the old shareware model was the shareware distributes and the copy/delivery fee you had to pay ...


4

The best solution for site locking is to make sure the start of the url matches your allowed url: if (stage.loaderInfo.url.indexOf("http://www.kongregate.com") == 0) { trace("OK!"); } else { trace("stolen!"); }


4

You already accepted an answer, which is fine. I'm just going to add the way you would do this in an ActionScript only Project (which is preferable for games IMHO, since it doesn't add the bloat of the flex classes). package { // Use the "Frame" metatag to add a preloader class at the first frame // of your compiled SWF. You have to enter the fully ...


4

XNA games have the following dependencies: .NET Framework 3.5 Redistributable XNA Framework Redistributable (version depends on which version of XNA you use) To allow people to install your games on their computers without downloading these dependencies themselves, you need to bundle or allow downloading & installing those dependencies right in your ...


4

Desura are fairly good for Indies - even free. They do have an approval process though, but it's more for the purpose of checking that you're uploading an actual game, and the one that you describe, and that it's not Copyright infringing, and that it works. I haven't put any on there myself yet, so I can't testify as to how easy or well it works. Source: ...


4

Hm, I think you are making it too complicated. Your nodes can either be producing power or consuming it. And they can either have enough power or not. So can I suggest just having a single "power" variable and +ve is producing power and -ve is consuming it. Then you can calculate how much power each connected node needs with: (pseudo-code, sorry I don't ...


3

As Dennis said, it's mostly reason #2. It takes a lot of time and effort to create a new distribution version, and this is a seperate process from creating the patch version. Creating patches is simply faster and needs to be done anyway. But even more so, once you have had several complete versions of the product available for download, each new patch must ...


3

Sitelocking keeps honest sites honest, and is useful when, for example, you've got an exclusive period on a site but plan to distribute the game afterward. It's not going to stop someone dedicated enough, and I agree that it's better to put in MochiAds or something to take advantage of the distribution. One case in which sitelocking is vital is when you ...


3

Don't. People will steal your game, no matter what you do. Trying to sitelock a flash game smells of DRM to me (OK, it's not quite DRM, but it's pretty close), and you can read all about why DRM isn't going to work. That's not to say you shouldn't use any protection system at all, just not something that you have to visit their site a particular way and do ...


3

The term you are looking for is Weighted Random Numbers, most of the algorithms I have seen use trig functions, but I think I figured out a way that will be efficient: Create a table/array/List(whatever) that holds a multiplier value for the random function. Fill it out by hand or programatically... randMulti= {.1,.1,.1,.1,.1,.1,.2,.2,.3,.3,.9,1,1,1,} ...


3

If you're using Flex in your project, i.e. you created a Flex project, including a preloader in your Application is very easy: set a class name in you Application declaration: <mx:Application usePreloader="true" preloader="com.example.Preloader"> Now, create a class called com.example.Preloader which extends Sprite, and implements ...


3

Using it that way would not be allowed. You're not allowed to use or copy fonts in any way, up to and including in printed material, without a license to do so. Luckily, there are many sources of free and free-to-license fonts out there. Chances are very good you can find an acceptable alternative.


3

If it's for windows, you could host with either http://en.softonic.com/windows/games or http://www.bluesnap.com/ecommerce/sellers/digital-sales/sell-games Both are solutions that will get you users and will also take care of payment.


3

I see some issues with your currently planned system: Flood filter. Well-intentioned, but too harsh, if sensible at all. Once a month? Much too long. If your player wants to refer people, he wants to refer as many as possible (for reward and/or because he genuinely wants other people to enjoy your game), and you want as many players, most preferably paying ...



Only top voted, non community-wiki answers of a minimum length are eligible