A whiteboard library providing functions for drawing various shapes and objects. Useful for debugging or whiteboard communication.
Project page:
Shinkutanku :: Defcon AI - Whiteboard Library
Download:
C++ - draw.h, draw.cpp
Lua - draw.lua
License:
Released under the MIT license
Documentation:
http://docs.shinkutanku.com/defcon/draw
Sample image:
C++ example usage:
draw_bot_sample.h
draw_bot_sample.cpp
Lua example usage:
draw_main_sample.lua
[C++/Lua] Whiteboard Library
Moderator: Defcon moderators
[C++/Lua] Whiteboard Library
Last edited by Montyphy on Tue May 04, 2010 12:35 pm, edited 10 times in total.
- roflamingo
- level3
- Posts: 404
- Joined: Fri Jan 19, 2007 10:25 am
- Ace Rimmer
- level5
- Posts: 10803
- Joined: Thu Dec 07, 2006 9:46 pm
- Location: The Multiverse
I've been considering making a whiteboard library which would do two things:
1) Have persistent whiteboard objects, deleting an object will clear the entire board and redraw the old ones (no erase functionality for bots unfortunately)
2) Parse a font file, so I can draw text without hardcoding all the characters
However, while number 1 would be useful, it's not *that* useful, so I don't think I can be bothered. And I can't find any good info on how font files are structured, and proper research into this is beyond the scope of how much I can be bothered
So I think I might just use this one...Thanks Monty
Side note: With all this talk in this forum, and an evident knowledge of programming, when are you gonna make a bot?
1) Have persistent whiteboard objects, deleting an object will clear the entire board and redraw the old ones (no erase functionality for bots unfortunately)
2) Parse a font file, so I can draw text without hardcoding all the characters
However, while number 1 would be useful, it's not *that* useful, so I don't think I can be bothered. And I can't find any good info on how font files are structured, and proper research into this is beyond the scope of how much I can be bothered
So I think I might just use this one...Thanks Monty
Side note: With all this talk in this forum, and an evident knowledge of programming, when are you gonna make a bot?
GENERATION 22:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.
Added the C++ version I wrote prior to making the Lua version.
Yeah, it's a shame the bots can't use erase. Could try requesting it I suppose.
I am tempted
martin wrote:1) Have persistent whiteboard objects, deleting an object will clear the entire board and redraw the old ones (no erase functionality for bots unfortunately)
Yeah, it's a shame the bots can't use erase. Could try requesting it I suppose.
martin wrote:Side note: With all this talk in this forum, and an evident knowledge of programming, when are you gonna make a bot?
I am tempted
- Ace Rimmer
- level5
- Posts: 10803
- Joined: Thu Dec 07, 2006 9:46 pm
- Location: The Multiverse
Montyphy wrote:martin wrote:Side note: With all this talk in this forum, and an evident knowledge of programming, when are you gonna make a bot?
I am tempted
I was tempted to offer somebody with proper coding skills $ for a bot, that would do what I am trying to accomplish. Of course, there'd be a standard NDA.
I still toy with the idea occasionally, but am put off by the probably 'too' high cost and lack of learning opportunity.
Smoke me a kipper, I'll be back for breakfast...
Who is online
Users browsing this forum: No registered users and 4 guests