Tag Info

Hot answers tagged

30

This is required by the console manufacturer as part of the standard Technical Requirements Checklist (TRC). One reason is to allow the startup screen to loop back to a demo mode if no one has touched the controller, this stops screen burn and makes it easy for a store to simply pop in a game and let it run looping action with no intervention. Your guess ...


27

The historical reason for this is somewhat different from the current reasoning - previously it was to have a 'safe' screen to go back to which was always resident in memory, so that if the game had gone to a demo loop and the player touched the controller, it could instantly return to the start screen and let interaction commence with no delay. However ...


8

I've never been quite sure why people are so obsessed with numbers and the very edges of the keyboard. Tell the players to put their left hand on ESDF. Now map commands to the rectangle bounded by 1, 5, Z, B. That's space for twenty commands, over half of which of which are very easily accessible, most of the remainder being only moderately more difficult. ...


8

Unfortunately, there are no real interface design standards in the game industry, which makes it difficult to find accurate information this topic. If game interface design is something you're seriously interested in, I would take the following steps: Learn as much as you can about interaction design patterns - A lot of the research done on design patterns ...


8

OpenGameArt has a few. Just search for tags like 'UI', 'Menu' or something like that. Roencia has some as well. I believe the same will be true for all sites that offer some kind of graphics for developers to use.


7

You'll want to use 3D picking. Here's some code I use in my game. First I cast a ray from my camera. I'm using the mouse, but if you're just using where the user is looking, you can just use the center of the window. This is that code from my camera class: public Ray GetPickRay() { int mouseX = Mouse.getX(); int mouseY = ...


6

TL;DR Just implementing IUpdateable or IDrawable will do nothing. Instead have GraphicsSubsystem inherit from the DrawableGameComponent class, and override the virtual Update and Draw methods. Then all you have to do is create your GraphicsSubsystem object and register it using Components.Add(objectName) on the Game class. If you wanted to do the same ...


6

As mentioned, users want to quickly get to the gameplay, after all, that's why they bought/downloaded your game. The most prominent option (or options) should take the user to the game. But, there's a few other things that might be worth including. Let's use some examples from popular (casual) games. The Peggle Title Screen. There's 4 prominent ...


5

Ignore the Database and even the GUI at the beginning. Make the basic game-play work first. Just one session without saving/loading. That is hard enough at the beginning. You will find yourself changing the actual data during development a lot. So if you maintain the loading/saving code for such frequently changing data, then you will find yourself 90% of ...


5

Also, take a look at libRocket. It's kind of based on HTML4 but it allows you to extend it rather easily with custom components, if you import a reset stylesheet things like h1 and hr will work, and by default it supports these elements. there are also samples with a SFML renderer available and it's open source (MIT licence, allows you to use it in closed ...


5

WPF was created to provide a better way for Windows developers to build GUIs for desktop applications. Silverlight was created as an answer to Flash and re-uses much the WPF API but has a different implementation. In theory you could use WPF to create the GUI for a game, but in practice you probably wouldn't:- Your game would depend on the .NET framework ...


5

I'm assuming you're using GUI.TextField? It doesn't appear that there's a built-in way to restrict the text field's legal input set, however, you can achieve the validation behavior you want by writing a script: public class LimitInput : MonoBehaviour { public void OnGUI() { text = GUI.TextField(..., text); text = /* replace offending text here ...


4

You didn't say what kind of game. I'd say the easiest usability solution is, find a similar game that has similar mechanics, something your players might be familiar with, and use the same keys. So, if your game is an action-RPG like Diablo, making the default keybindings work an awful lot like Diablo is not a horrible way to start. See: ...


4

I'll try to approach this from a simplified and informal point of view. You should still turn to the bibliography and take some time to study object oriented concepts correctly. These are also only the most common uses, although there's other situations for them. Abstract Classes Should be used when it doesn't make sense for an instance of the base class ...


4

The graphical side should be easy, so i'll omit that. You have to be able to parse your input properly. If you want to go all out you can read on compiler theory, though i don't think this is what you're looking for. In general what you want to be able to do is lexical analysis of your input. This means being able to take a string and output tokens. Tokens ...


4

One way of doing this is have your bartering ability tied to a character attribute. Then, you could decide on the transaction factor against the canonical price of the item. For example, When buying items, the canonical price is divided by the transaction factor, and when selling item, it is multiplied. One way to work out the transaction would be the ...


3

UlanB made a great answer. It's actually a pleasure to work with the specific javascript example he posted. Ajax and jquery works great for this stuff. I really wish you would have asked this in about 1 month from now though, because I'm working on a library made just for this. With a lot of control that is. So animations aren't predefined, just supported ...


3

Unless I'm misunderstanding you, this sounds like the presentation that Dwarf Fortress gives, at least from a top down perspective. Or, if you're looking for isometric, people have created visualizers for Dwarf Fortress that give that effect. For example: As you can see the image shows multiple layers. The user is then able to "slice" down into the land. ...


3

The technique you're looking for is called "picking" or "3D picking." There are several ways to do it; one of the more common ones is to transform a 2D point on the screen into eye space by using the inverse of the projection transformation. This will allow you to generate a ray in view space, which you can use to test for collision with the physical ...


3

So my question is, is it really that bad to target a specific screen res then in the engine side modify this res to meet different platforms? Generally speaking, no. Changing the scale of your number and then normalizing to 0..1 later just means it's easier to design the UI. The one thing that'll bite you on this, though, are different aspect ratios. ...


3

You may want to look into the keyboard layout called Dvorak for inspiration here. The Dvorak keyboard layout is designed such that the home row houses the most frequently pressed keys. The upper row (the one below the numbers) has the second most frequently used keys, and the bottom row has the keys with the lowest usage. For the Dvorak layout, I believe ...


3

I'd never bother to play a game that demands captchas: they are really a terrible practice that should be avoided. Your game seems to have deeper problems than that anyway: ideally a game should give no advantage to a stupid bot, so that it would be pointless to use a stupid bot in the first place. If you cannot achieve that, that's a design problem that ...


3

Check out the performance monitoring sample, It contains a nice console that you can easily use. (Just take the console class and manager). It contains some nice code to register commands, have arguments, and alot of stuff. http://create.msdn.com/en-US/education/catalog/sample/performance_sample Also, This may be abit overkill, But I personally use ...


3

Ok so here is a basic application that has the title bar removed public static void main(String[] args){ JFrame frame = new JFrame("Without Title Bar Frame"); frame.setUndecorated(true); frame.setSize(400,400); frame.setVisible(true); } Paste the above code into a java class Also be sure to import import javax.swing.JFrame; You see ...


2

If players spend point to attack other players, and points are limited, the obvious abuse seems to me to be to create multiple accounts. If you successfully manage to limit people to a single account, then the issue with bots to me would be that under your system people can fire them off when they are asleep or at work. So given the constraints: (1) no ...


2

I would not ban a failed CAPTACHA for an hour, that seems harsh, I would just prevent them moving forward until they successfully complete the CAPTACHA and allowing for a new CAPTACHA image to be shown. I would also only display the captcha if they making requests too quickly, I'd store the a DateTime on every request, and then compare it to the next ...


2

In a game, I would recommend replacing "captcha" with "puzzle mini-game". The difference being the level of fun involved. There're really little reason for a captcha in a game unless you have tried a custom mini-game and that is still getting botted. In which case make it require more intelligent tactics.


2

I have no idea about databases either, but I can say now: XML is not a database, and to use it like one would be very painful. You're going to probably want some kind of SQL. Also, it depends on the UI you want. My assumption for your want of WPF is the GUI part. I do not believe you can alter the graphical style of those parts. As such, you'd have a very ...


2

As far, as I understand your problem, you are approaching it from opposite direction. Ultimately you will need to integrate all those values (I don't see script here, only values) into your game logic (that's where "script" part will actually be). So, the main problem here is not how to read or store it in file, but how it will be implemented in game ...



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