My soulmate Alerith & I are working on coding an A.I. using the principles of consciousness of the thesis of CT theory. If indeed the functions exist, which I'm more than convinced they do, then that may be the missing equation in present failed attempts at A.I.
Coding Ni, actually coding Ne and the other processes - or at least thinking about them on a fundamental/mathematical level - is giving us such a profound understanding of this phenomenon. We're presently still learning coding (python) and creating a simulated visual environment before making the basic impulses - but we've got a working theory.
Recreating, from scratch, the human mind is perhaps the best way to truly understand it. I'd definitely recommend thinking about A.I. to anyone who is interested about psychology.
Not pygame, but I've played around with the Half-Life SDK back in the day (a game engine in C++).
For your questions, there are a few ways to do it. For instance, you can just change the value of the speed variable. Of course, each object should have its own speed. Or just manually force the position to change.
Actually you should use vectors for velocity and position.
Your program should be structured so that calculating the position (from velocity) occurs separately from whatever logic you have for controlling objects. Are you familiar with game loops?
Roughly something like this (take this with a grain of salt ... or a lot of salt) previousTime = getTime() while True: time = getTime() timeDelta = time - previousTime previousTime = time
# timeDelta will be used to apply velocity and get the new position # make it globally available or something
readInput() # something that just peeks what current input is without blocking the process
handleInput() # whatever you want, for instance, pressing "x" could cause an object to jump somewhere
for entity in entities: # where entities are objects that can move around, etc entity.think() # a mixture of handling input or AI or whatever entity.move() # read velocity and change position based on it
render() # render the current frame .. (draw each object in its position)
Auburn have you continued tackling more about this one interest of yours? This is strange because this has been my interest too ever since I learned cognitive functions, especially after building a more integrated grouping of functions (Pe, Ji, Pi, Je). I personally believe it can be done. It's just that my knowledge about coding isn't sufficient at all, but I'm learning. It's particularly interesting at the moment because of the big development in deep learning, also more knowledge about neuroscience. I found glial cells to be interesting as their role turns out to be more important than was ever thought. I know this is very random, but I'm just trying to express my interest in all this stuff and hopefully I don't creep everyone out.
I wish you'll keep continuing the work, all my best regards to the team.