TinyChan

Topic: Code

+Anonymous A5.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 B5.3 years ago, 7 hours later[T] [B] #595,650

did I ask

+Anonymous C5.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 D5.3 years ago, 2 days later, 4 days after the original post[T] [B] #596,023

What is this for?

+Anonymous E5.3 years ago, 4 hours later, 4 days after the original post[T] [B] #596,073

@previous (D)
Fags

+Anonymous F5.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 G5.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.

:

You are required to fill in a captcha for your first 5 posts. Sorry, but this is required to stop people from posting while drunk. Please be responsible and don't drink and post!
If you receive this often, consider not clearing your cookies.



Please familiarise yourself with the rules and markup syntax before posting.