November 27, 2024, 05:36:42 PM

1,531,356 Posts in 46,734 Topics by 1,523 Members
› View the most recent posts on the forum.


MY ESCAPADES SINCE LEAVING BOYAH

Started by ncba93ivyase, December 26, 2008, 02:54:15 AM

previous topic - next topic

0 Members and 2 Guests are viewing this topic.

Go Down

ncba93ivyase

Got a bunch of games. thumbup;

Finally sealed up my childhood by beating Banjo Kazooie. thumbup;

Got Persona 4 which is better than all the other games I've gotten since TF2. thumbup;

Spent time after school with acquaintances, which including going to movies and eating at restaurants, etc. thumbup;

Some chick coerced me into kissing her. thumbdown;

Same chick coerced me into feeling her nipples. thumbup; / thumbdown;

Started some simple game development, including making a pong clone and currently a different and far better project with Zidone. thumbup;

Got a 29 on my ACT (although I'm certain Guff beat me, but damn good nonetheless) thumbup;

also my simple pong clone i made a few weeks back: [spoiler]
Code Select
#!/usr/bin/env python
import pygame
from pygame.locals import *
from sys import exit

pygame.init()

screen = pygame.display.set_mode((640, 480), 0, 32)
clock = pygame.time.Clock()
my_font = pygame.font.SysFont('arial', 60)#Sets font to be used for score display

ball_x, ball_y = 240, 200 #Location of the ball
paddle_y = 0#Paddles' position
move_y = 0
speed_x, speed_y = 110, 120#Speed of ball in x, y direction
score_1 = 0#Scores
score_2 = 0
while True:
for event in pygame.event.get():
if event.type == QUIT:
exit()
if event.type == KEYDOWN:
if event.key == K_w:
move_y = -6
if event.key == K_s:
move_y = +6
if event.type == KEYUP:
if event.key == K_w:
move_y = 0
if event.key == K_s:
move_y = 0
if paddle_y< -1:#If the paddle goes up to high, it stops
paddle_y = 0
if paddle_y >480:#Down too low, stops
paddle_y = 475
else:
paddle_y+= move_y#Otherwise, keep moving
time_passed= clock.tick(40)
time_passed_seconds = time_passed /1000.

screen.fill((0, 10, 50))
pygame.draw.rect(screen, (255, 255, 255), Rect((20, paddle_y), (20, 90)))#Draws paddle 1
pygame.draw.rect(screen, (255, 255, 255), Rect((600, paddle_y), (20, 90)))#Draws paddle 2

my_color_left = screen.get_at((int(ball_x-21), int(ball_y)))#Gets colors of pixel directly left to ball
my_color_right = screen.get_at((int(ball_x+21), int(ball_y)))#Gets pixel directly right
ball_x += speed_x *time_passed_seconds#Ball's x location
ball_y += speed_y *time_passed_seconds#Ball's y location

if ball_y > 475 or ball_y < 2:#Goes too high or too low, bounces back
speed_y = -speed_y
if my_color_left[0] == 255:#Left is white, bounce
ball_x +=6#You have to make it force to the right a few pixels or it'll get stuck on the paddle
speed_x = -speed_x
if my_color_right[0] == 255:#If right pixel is white, bounce
ball_x -=6#Move left a few pixels for same reason
speed_x = -speed_x
if ball_x> 615 :#Too farright, bounce
ball_x, ball_y = 320, 200
score_1 +=1
if ball_x <25:
ball_x, ball_y = 320, 200
score_2 += 1

pygame.draw.circle(screen, (255, 255, 255), (int(ball_x), int(ball_y)), 20)#draws the ball
text_surf = my_font.render("%d             %d"%(score_1, score_2), True, (150, 150, 150))
screen.blit(text_surf, (220, 20))
pygame.display.set_caption("Pong Clone v1.2")
pygame.display.update()
[/spoiler]

I'm certain there's other stuff but I'm just forgetting it.

Quote from: ncba93ivyase on June 18, 2014, 07:58:34 PMthis isa great post i will use it in my sig

Classic


superclucky

kewns are smelly

ncba93ivyase

Quote from: Det's Placenta on December 26, 2008, 03:16:19 AM
WAS SHE UGLY
NOT AS UGLY AS *Name removed to avoid the wrath of James Valente ;) *

SHE AT LEAST LOOKS LIKE A WOMAN

Quote from: ncba93ivyase on June 18, 2014, 07:58:34 PMthis isa great post i will use it in my sig

Nyerp


Wrench

Welcome back, Lawlzie.

Good to see you're hanging out with people. How were the boobs?

pringle positive


Ezloļŗ•

:)

Oh


Selkie

glad you had fun

and glad your fun is over now that you were sucked back into Boyah  n_u

superclucky

Quote from: Selkie224 on December 26, 2008, 07:35:28 AM
glad you had fun

and glad your fun is over now that you were sucked back into Boyah  n_u
he said he'll never come back ;______________;
kewns are smelly

FAMY2

About time you showed up to tease us.   baddood;

Det in Fā™Æ Major

Quote from: Det's Placenta on December 26, 2008, 07:36:37 AM
he said he'll never come back ;______________;


my christmas is now ruined ;_______________;
Quote from: Khadafi on February 02, 2011, 03:17:34 PM
BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW BLACK AND YELLOW

wawi

I've missed you :'(

How is your hair? 

Cookie

Sounds like you had a productive absents. I bet you have been lurking...

Go Up