c6a295a4e5
update python
2026-07-18 21:11:07 +02:00
Jan Klopper
a001e41a8b
Clean up some code, add __del__ handler, make methods and names more clear for inexperienced users, handle keyboard exits, add server autodiscovery questions if multiple servers are found
2017-06-16 15:14:11 +02:00
Jan Klopper
52adfbbe66
Merge branch 'master' of github.com:JanKlopper/pixelvloed
2017-06-16 14:22:25 +02:00
Jan Klopper
2fcfc6773c
Bit of cleanup, and some fixes in the docs
2017-06-16 14:21:58 +02:00
Thomas van der Berg
82892cae7a
Simplify client using new Packet class
...
Packet is a list of pixels that automatically sends pixels if it
reaches the max packet size. Client code has been simplified using
this class.
2017-06-15 20:20:20 +02:00
Thomas van der Berg
1499890862
Simplify example Python client
...
- Move handling packet size out of RandomFill
- Adds an InitMessage function to vloed.py to set message header
without using NewMessage
- No more exceptions in normal program flow!
2017-05-21 17:52:12 +02:00
CodePanter
e204264680
Fixed the specified sleep not being used.
2016-12-06 20:53:49 +01:00
CodePanter
9678939aa0
Updated the sdl version so it is just as usable as the pygame version.
2016-11-26 15:50:36 +01:00
CodePanter
d2a251430c
Removed an unnecessary print statement.
2016-11-26 14:18:16 +01:00
CodePanter
1103ded241
Implemented autodetection for the screen size and removed the default screen size variables as a result.
2016-11-24 21:42:21 +01:00
CodePanter
3020d9ca0d
Fixed the updated udp_ip and udp_port not being used.
2016-11-24 21:07:40 +01:00
CodePanter
1c831d022a
The IP and/or Port specified from the commandline will also be broadcasted to the clients.
2016-11-22 22:34:57 +01:00
CodePanter
34d7cad6cd
Changed the 'sleep' variable in PixelVloedClient.SendPacket into a float.
2016-11-22 22:29:49 +01:00
Jan Klopper
59a9a06952
Make sure the monkey patching stuff gevent requires is imported at start, so we dont get an exception on close time
2016-09-09 13:04:12 +02:00
CodePanter
c38cab64b6
Moved the 'gevent' and 'pygame' imports and the 'PixelVloedServer' class to inside the 'if __name__ == '__main__'' section. This will make it possible for users to use the client code, without needing to install gevent and pygame.
2016-09-06 20:26:19 +02:00
Jan Klopper
d2f58a6640
Add cli options to the client class, clean up the SDL version a bit
2016-07-12 18:37:32 +02:00
Jan Klopper
9cfae29dc7
add exit messages and make sure we dont trigger some weird threading keyError that happens on python clean up by calling monkey patching as first import
2016-06-22 12:44:44 +02:00
Jan Klopper
9b6190b186
Add pixel factor in the server so that clients ca push more effective pixels
2016-06-22 12:28:16 +02:00
Jan Klopper
d81f12480a
Add javascript client
...
Add server cli options
2016-05-17 17:00:12 +02:00
Jan Klopper
e2c5aee5cc
tinyfix
2016-04-28 22:39:43 +02:00
JanKlopper
5d4c250f89
Merge pull request #7 from CodePanter/master
...
Changed a few small things to improve ease of use.
2016-04-28 21:44:34 +02:00
Jan Klopper
235091aac7
add alpha blending in the server
2016-04-28 21:43:08 +02:00
CodePanter
a833d43ee0
A client's port will be 5005 when specifying an ip address and no port.
2016-04-28 20:28:28 +02:00
CodePanter
f22e3a2a56
Pixels can no longer be added to a MaxSizeList if the list is full.
2016-04-28 20:24:37 +02:00
CodePanter
b638c79461
Prevented the 'SendDiscoveryPacket' from crashing.
2016-04-28 16:57:10 +02:00
CodePanter
8d9d03b69a
Fixed a few typo's in the doc-strings and comments.
2016-04-28 16:46:03 +02:00
Jan Klopper
b9ba710848
Add pylintrc file
...
Move client functions to vloed module,
simplify client file for newbee's,
Make sure the server module only starts operating when actually initialised
2016-04-28 15:34:57 +02:00
Jan Klopper
562ae26d7f
Merge branch 'master' of github.com:JanKlopper/pixelvloed
...
Conflicts:
vloed.py
2016-04-25 12:34:38 +02:00
Jan Klopper
9209bd989e
add autodiscovery of server to client
2016-04-25 12:18:39 +02:00
CodePanter
d781d85745
Fixed the problem with pixels missing in the message and prevented general exceptions from crashing the server.
2016-04-07 20:56:28 +02:00
Jan Klopper
060693625f
add packet size limit to server,s et at 140 pixels atm
2016-04-06 10:11:05 +02:00
CodePanter
0df6d9a5cd
Fixed several bugs and did some general optimisation.
2016-03-31 20:23:03 +02:00
Jan Klopper
e060ccdf6b
add 1 fps wait if there's nothing to do, also add some comments and work with the screen as a array instead of trough set_at
2016-03-31 17:04:22 +02:00
Jan Klopper
c9c45df928
rework loops to return at least once per fps
2016-03-31 16:31:51 +02:00
Jan Klopper
83d1c4b46c
Make some loops only run when needed, defer pygame updates if nothing changed since last update
...
Draw all packets in queue at once if we get the chance.
2016-03-31 14:00:47 +02:00
CodePanter
4544b3d302
Optimized pygame, and moved 'packetformat' out of the for loop.
2016-03-26 23:26:19 +01:00
CodePanter
df73d17c44
Improved performance by replacing the 'threading', 'socket' and 'Queue' modules with gevent's more efficient modules.
2016-03-11 20:15:24 +01:00
CodePanter
c5272c6439
Implemented threads and a forced framerate.
2016-03-03 21:55:17 +01:00
Jan Klopper
b5d7f5c066
First version of PixelVloed, a UDP/Binary PixelFlut server/client
2016-03-02 12:21:03 +01:00