Are you asking in regards to networking?
If so, python comes with a socket module that allows you to connect and then
use the socket by read/write operations
A tutorial on sockets: http://www.amk.ca/python/howto/sockets/
This also allows you to use the pickle module to send objects over the
networ
go to http://nehe.gamedev.net/
click on the lessons on the right
at the bottom of every lesson there is the equivalent python code for
download
the only commands in the tutorial you need to worry about are those
pertaining to OpenGL
If you understand C/C++ then it will also help you read them
a
That's a great idea! :D
Gabriel Bouffard - Canada
-- Maranatha!
-
PFC aka Fezzik aka GAB
On Thu, Nov 12, 2009 at 12:24 PM, Thadeus Burgess wrote:
> Sweet! Thadeus Burgess - Texas USA - Caucasian
>
>
>
>
>
> On Thu, Nov 12, 2009 at 8:25 AM, leo kirotawa wrote:
I'm not getting the attachment but this might help.
If your doing range as a circle with radius = r then:
if ((enemy.x-tower.x)**2+ (enemy.y-tower.y)**2)**0.5<=r: attack!!!
basically, you'd be using Pythagorean theorem to find the distance to check
if it attacks or not.
Checking distances for e