I clicked the login button and it took me to a page asking if I would give the game permition to access my account. I clicked yes and it took me back to the main page but I didn't log in. Now everytime I click nothing happens.
When you click login, it pretty much immediately redirects you to Google for authentication. When you accept permissions, google redirects you back to my php login page that should set a session variable and write a record to my database, but neither of those are taking place, so... my php must think that users are rejecting the authentication.
Alright, I've made a tiny change to the code to help debug this. If my PHP thinks you canceled the login on google's side, it adds a "?canceled=true" to the url
And it'll add a "validated=1" if validated, vs a 0 if not validated
hmm. Validated = 1. Ok. Good, that's what it should read.
I have just added some more debug data to the get parameters. It should read something like likeclockwork.jcpmcdonald.com/?validated=1&identityExists=1&alias= OR likeclockwork.jcpmcdonald.com/?validated=1&identityExists=0&alias=jcpm
I'm working on a simple game with SFML, and the only way to make the game reasonably smooth is to allow it the highest framerate my machine can handle (that is, giving it no limit). 60 FPS in my game looks like 5 FPS in most games.
I've made sure it wasn't any weird timing issue with sf::Clock b...
Last time I was here I asked about how the relation between controllers/agents worked. So my setup now is I have an EntityController which extends Entity (Haxepunk btw ) And an IAgent interface which makes calls to the EntityController. The EntityController contains the functionality to make the entity move/shoot etc. But looking at the MVC pattern on wiki it's the controller that actually does the manipulation. In my case it's the Agent manipulating the EntityController.
Do I have my semantics wrong? It's confusing the hell out of me.
I think EntityController in this case is my Model and my Agent objects are my controller...
@William'MindWorX'Mariager It's supposedly set up so that if you hold it 1 ft from your eyes, the pixels are that size which are the minimum size detectable by your retina. So that if the pixels were smaller, you would not detect any change in the resolution.
I'm working on Responsive Design for my game. I recalculate position for my object in function of the screen size. I'm doing the good calcul but my function give me the wrong result always returning 0.
I need the return value to be an Int.
Here the code :
public int rdnW(int a)
As of right now EntityController contains an update function ( inherited from Entity ). Here I handle, for example, the walk logic ( with a simple state enumerator and switch case). In my Agents I change the state according to any kind of logic. For players I check input in my agents and change the walk state. In an A.I. agent I do exactly the same but obviously not by user input.
The reason I asked is because i'm confused on the semantics of how i should call my objects.
@Almo That reminds me of an edward dijkstra quote.
"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration." - Edward Dijkstra
I don't even understand why developers get butt-hurt when you dislike a language. Everyone has opinions lol, but I guess by spending too much time telling the computer what to do you become a control freak :P
@MickLH I have a senior developer I know who is basically a self-proclaimed good programmer.
It is the holidays!
A time of gifts, food, drink and festival (and hats, if you are into that sort of thing).
Now, we don't have any of those for you (except the hats), but we do have over a thousand unanswered questions on our site. So, alongside the network-wide winter bash that will be happe...