This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<script> | |
var firstTime = true; | |
var countSet = false; | |
var updaterSet = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5: D F | |
1: C D A | |
4: B A | |
7: E A | |
9: B C | |
350: A B |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Dynamic 2D Shadows, quick prototype | |
See http://www.gamedev.net/reference/articles/article2032.asp""" | |
from PySFML import sf | |
from OpenGL.GL import * | |
from OpenGL.GLU import * | |
import math |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import core.thread; | |
import core.sync.condition; | |
import core.sync.mutex; | |
import std.date; | |
const sleep_ticks = 10_000_000/ticksPerSecond; | |
class TaskQueue(T) : Thread | |
{ | |
this() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import pyglet | |
from pyglet.gl import * | |
def rotate_vector(vect, angle): | |
x,y = vect | |
theta = math.radians(angle) | |
return (math.cos(theta)*x - math.sin(theta)*y, | |
math.sin(theta)*x + math.cos(theta)*y) |
NewerOlder