So, a Zealot walks into the bar, and orders a drink. The bartender looks him over and says “gee, what’s with the long face pal?” The Zealot replies “Rough day at the base. One of the other Zealots was slacking off and a bunch of Zerglings came storming up our ramp. We cleared them out, but not before they took out a bunch of stuff. Gateways, Forges, even our Twilight Council”
The bartender nods sympathetically, saying, “Damn, not the Twilight Council. Tell you what,” he continues, handing the Zealot his drink “for you, no charge.”
Also, if you're interested, the reason it failed to login but still displayed "done" was because I had switched to XML data, but forgot to update the client. :P So the request worked resulting in the "done" text, but it couldn't read the data, which meant that GameState.IsLoggedIn was never set to true. The interface is bound to the GameState and animates and reacts depending on the properties.
Also learn to read documentation (it's going to be hard lol - but the more you know about your language's capabilities the better). http://docs.python.org/2/reference/index.html
Once you learn what arrays are - I guarantee you you'll catch on to lists quickly
|1|-|2|-|3| |4|-|5|-|6| |7|-|8|-|9|
Imagine this as a tic tac toe board
Since your making a text based one - you ask player 1 (who is X) where they would like to place their X (or token).
Let's say the user says: 9
Okay so it's up to you which dimension of an array you would want to use (preferably 2D) but let's say you went with 1D
You know that the items the array can store is 9
So first you need to make sure that the user isn't going out of the range and saying something like 10 or 0 or -1 (try to make your programs smart - because there are going to be players that are going to want to expose your game :) ).
Then you search for the corresponding position in the array (array index's are different from what you think they are - if it's the same for the Python Programming Language). Remember how you need to store 9 values in that 1D array
well in order to access certain values in the array such as the position 9(on the chart above) - it would be:
heh, sometimes working with a web-less web stack, the SO solutions are less than desirable. Like... I have an external JSON file that I'd like to include in my JS, and all the answers on SO involve AJAX, which... doesn't really apply in my case
JSON is just data really, and I'm using a "web-less web stack" for UI, because it's HTML/CSS/JS without the web. So doing things like AJAX (Async Javascript And XML) doesn't really apply because everything is local, and I'd like it to be synchronous
@William'MindWorX'Mariager hmm
Ohh
I see what you're saying... yeah. The JSON I'm trying to include is prefixed with: if(!inXNA()){ // load the sample data
so, anything I can do with Awesomium won't really help, :(
Model–view–controller (MVC) is a software architecture pattern which separates the representation of information from the user's interaction with it. The model consists of application data, business rules, logic, and functions. A view can be any output representation of data, such as a chart or a diagram. Multiple views of the same data are possible, such as a bar chart for management and a tabular view for accountants. The controller mediates input, converting it to commands for the model or view. The central ideas behind MVC are code reusability and separation of concerns.
Component int...
I've asked this before, but want to get some more opinions.
How do you think they made Myst III? http://www.youtube.com/watch?v=eMwQrRvPVjg
My theory is they place the players POV in the centre of a 3D sphere, and the inside of this sphere is has a 2D texture of the prerendered world applied to it
05: 15 to 05:52 is definitely a pre-rendered movie
This game is about 10 years old now. I was thinking, what with current technology, does any one think it would be viable to have the whole texture on the inside of the sphere animated?
Still 2D, still pre-rendered, but moving
For each room, you'd be looking at 72 hi res images a second, and the looping movie would probably be around 10 seconds long
720 hi res images over ten seconds
Do you reckon a java application running on a normal computer could handle that?
I know, I've trawled through the making ofs for all the games, and cannot find out how they make them :L
I think all animations apart from very basic ones are prerendered movies though
How do you reckon they do the water?
The moving water?
I mean, if the inside of the 360 sphere is textured, how is the water moving? Is the 'water' a separate object...maybe a 2D plane with an animated water texture on it?
If I remember correctly, most animations forced your view to a certain position/orientation. They were most probably movies. About the water, I'm not sure. Replacing a part of the textured sphere with different frame of an animation is certainly possible, as long as the animation frames fit into memory.
@William'MindWorX'Mariager It works! logging in looks good, and the logout button works. the logout button is slightly weirdly placed though. if you ever need a beta tester email me!