Stuff I'm working on.

Thursday, 9 July 2015

pySFML Mouse Single Click

See as there isn't much decent documentation for pySFML that I can find, I'll put this here as a reference snippet for using the input events.

for event in
 if type(event) is sf.CloseEvent:

 if type(event) is sf.KeyEvent and event.code is sf.Keyboard.ESCAPE:
 if type(event) is sf.window.MouseButtonEvent and event.button is sf.Mouse.LEFT and event.pressed:
  self.mousePos = sf.Mouse.get_position(self.window)

Sunday, 14 September 2014

Dartboard Texture

These were created in GIMP 2.8, and the normalmap is made with the normalmap plugin for GIMP available here:

With a radius of 1.0 the proportion of the rings are as follows.

Bull = 0.028
Outer Bull = 0.028 - 0.071
Inner Section = 0.071 - 0.439
Treble = 0.439 - 0.475
Outer Section = 0.475 - 0.718
Double = 0.718 - 0.754
Void = 0.754 - 1.0

Wednesday, 27 August 2014

Sorry For The Delay

I took a break for a few weeks this August, now I'm getting back into my work and will be posting updates as I progress again.