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
| #!/usr/bin/perl -w | |
| use strict; | |
| use warnings; | |
| use SDL; | |
| use SDLx::App; | |
| use SDL::Event; | |
| use SDL::Events; |
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
| #!/usr/bin/perl -w | |
| use strict; | |
| use warnings; | |
| use SDL; | |
| use SDLx::App; | |
| use SDLx::Text; | |
| use SDL::Event; | |
| use SDL::Events; |
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
| #!/usr/bin/perl -w | |
| use strict; | |
| use warnings; | |
| use SDL; | |
| use SDLx::App; | |
| use SDL::Event; | |
| use SDL::Events; |
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> | |
| <head> | |
| <title>perlpaste</title> | |
| <style> | |
| body { | |
| font-family:sans-serif; } | |
| pre { | |
| width:80em; } | |
| #header { | |
| width:100%; |
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
| package | |
| { | |
| import net.flashpunk.Engine; | |
| import net.flashpunk.FP; | |
| public class Main extends Engine | |
| { | |
| public function Main() | |
| { | |
| super(800, 600, 60, 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
| import sys, pygame | |
| pygame.init() | |
| clock = pygame.time.Clock() | |
| size = width, height = 640, 480 | |
| speed = [0,0] | |
| black = 0, 0, 0 | |
| quitting_time = 0 | |
| screen = pygame.display.set_mode(size) |
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 sys, pygame | |
| pygame.init() | |
| class player: | |
| def __init__(self,posx,posy): | |
| self.position = [posx,posy] | |
| def jump(self): | |
| self.jumping = True | |
| self.velocity = 0 |
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 pygame | |
| pygame.init() | |
| clock = pygame.time.Clock() | |
| size = 100, 100 | |
| screen = pygame.display.set_mode(size) | |
| wall = pygame.image.load("wall.png") | |
| floor = pygame.image.load("floor.png") |
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
| use v6; | |
| for 1..100 { | |
| if $_ %% 3 { | |
| if $_ %% 5 { say "FizzBuzz!"; } | |
| else { say "Fizz!"; } | |
| } | |
| elsif $_ %% 5 { say "Buzz!"; } | |
| else { .say; } | |
| } |
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
| use v6; | |
| my $say; | |
| for 1..100 { | |
| if $_ %% 3 { | |
| if $_ %% 5 { $say = "FizzBuzz!"; } | |
| else { $say = "Fizz!"; } | |
| } | |
| elsif $_ %% 5 { $say = "Buzz!"; } | |
| else { $say = $_; } |