Topic: Code
+Anonymous A — 5.3 years ago #57,058
HEIGHT = GRID_HEIGHT * GRID_SIZE
def screen_coords (x, y) :
return (x * GRID_SIZE, Y * GRID_SIZE)
def draw_background () :
for y in range (GRID_HEIGHT) :
for x in range (GRID_WIDTH) :
screen.blit ("floor1" , screen_coords (x, y))
def draw () :
draw_background ()
pgrun.go ()
+Anonymous B — 5.3 years ago, 7 hours later[T] [B] #595,650
did I ask
+Anonymous C — 5.3 years ago, 1 day later, 2 days after the original post[T] [B] #595,787
public void shuffle ()
{
int[] newCards = new int [cards.length];
for (int k : newCards)
{
if (k%2 == 0)
newCards[k] = cards[k/2];
else
newCards[k] = cards[cards.length/2+k/2];
}
cards = newCards;
}
+Anonymous D — 5.3 years ago, 2 days later, 4 days after the original post[T] [B] #596,023
What is this for?
+Anonymous E — 5.3 years ago, 4 hours later, 4 days after the original post[T] [B] #596,073
+Anonymous F — 5.2 years ago, 1 week later, 1 week after the original post[T] [B] #596,999
for(var i=0; i<nodes.length; i++)
{
var speed = nodes.speed;
if(scrollUp == true
{
nodes.y -= speed;
if(nodes.y <= 0)
nodes.y = 0;
}
else
{
nodes.y += speed;
if (nodes.y > nodes.originY)
nodes.y = nodes.originY;
}
nodes.style.top = nodes.y+"px";
}
+Anonymous G — 5.2 years ago, 28 minutes later, 1 week after the original post[T] [B] #597,002
I pray this thread flourishes.
Start a new topic to continue this conversation.
Or browse the latest topics.