Coder Social home page Coder Social logo

nguoigo56xs / flashpunk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from useflashpunk/flashpunk

0.0 0.0 0.0 1.98 MB

A free ActionScript 3 library designed for developing 2D Flash games. It provides you with a fast, clean framework to prototype and develop your games in. This means that most of the dirty work (timestep, animation, input, and collision to name a few) is already coded for you and ready to go, giving you more time and energy to concentrate on the de

Home Page: http://useflashpunk.net

License: MIT License

ActionScript 100.00%

flashpunk's Introduction

FlashPunk

Create games. Easy.

FlashPunk is a free ActionScript 3 library designed for developing 2D Flash games. It provides you with a fast, clean framework to prototype and develop your games in. This means that most of the dirty work is already done, letting you concentrate on the design and testing of your game.

Get FlashPunk!

The total package.

Not only is FlashPunk absolutely free, it also contains everything you'll need to make the game you want. From its robust and dead-simple sprite-based graphics handling to its powerful live debugger, you won't need a team of berets and neckbeards to make your game come to life.

Features

Graphics

Helper classes for animations, tilemaps, text, backdrops, and more with z-sorted render lists for easy depth management.

// Create a new Image from imported image.
[Embed(source = 'player.png')]
private const PLAYER_IMAGE:Class;
var playerImage:Image = new Image(PLAYER_IMAGE);

Collision

Fast and manageable rectangle, pixel, and grid collision system with a plethora of built-in collision options.

// Check for collision between the player and all enemies.
var touchedEnemy:Entity = player.collide("enemy", player.x, player.y);

Motion

Powerful motion tweening for linear, curved, and path-based movement as well as spritesheet support and image transformation.

// Move an enemy across the screen with a tween, stopping against walls.
enemy.moveBy(5, 0, "wall");

Audio

Sound effect support with volume, panning, and fading/crossfading, complete with one-line sound playback.

// Play a shoot sound.
[Embed(source = 'shoot.mp3')] private const SHOOT:Class;
var shoot:Sfx = new Sfx(SHOOT);
shoot.play();

Particles

Quick and efficient particle effects and emitters allow for beautiful particle systems without slowing things down.

Timesteps

Framerate-independent and fixed-framerate timestep support allow you to decide what mode is best for you and your game.

// Add the frame time to a timer.
timer += FP.elapsed;

Input

Simple keyboard and mouse input state checking makes setting keys and events incredibly easy, yet powerful.

// Call a function when Space is pressed.
if (Input.pressed(Key.Space)) {
  spacebar();
}

Built-in Debugging

Handy console for real-time debugging and information tracking. It even allows moving the camera and inspecting entities while playing!

// Enable the debugger and watch the player's speed.
FP.console.enable();
FP.console.watch(player.speed);

Community

If all this just isn't enough and you absolutely require a team of berets and neckbeards, the FlashPunk Developers community is an incredible resource eager to answer any question you can fathom. Oh, and its free as well.

flashpunk's People

Contributors

abeltoy avatar azrafe7 avatar blckknght avatar chevyray avatar djcsdy avatar draknek avatar duncanbeevers avatar elipsitz avatar erikyuzwa avatar evix7 avatar jacobalbano avatar julsam avatar mangelats avatar mikeevmm avatar mikemgames avatar noonat avatar shinyhappypixels avatar smileyjames avatar svenito avatar sxd1140 avatar zachwlewis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.