This file contains 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
//https://stackoverflow.com/questions/1855211/how-to-store-several-states-in-one-variable | |
//http://graphics.stanford.edu/~seander/bithacks.html | |
OtherGameStates = {} | |
OtherGameStates.GAME_PAUSED = 1 //'0001' | |
OtherGameStates.USER_PAUSED = 2 //'0010' | |
SoundStates = {} | |
SoundStates.USER_MUTED = 4 //'0100' | |
SoundStates.GAME_MUTED = 8 //'1000' |
This file contains 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
diff --git a/src/particles/arcade/Emitter.js b/src/particles/arcade/Emitter.js | |
index e31e59e..7f430ad 100644 | |
--- a/src/particles/arcade/Emitter.js | |
+++ b/src/particles/arcade/Emitter.js | |
@@ -286,17 +286,7 @@ Phaser.Particles.Arcade.Emitter.prototype.makeParticles = function (keys, frames | |
// particle = new this.particleClass(this.game); | |
// } | |
- if (collide) | |
- { |
This file contains 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
//Modified | |
//Source: http://www.html5gamedevs.com/topic/5988-phaser-12-ie9/ | |
//Cameron Foale (http://www.kibibu.com) | |
(function(global, undefined) { | |
/** | |
* Low-budget Float32Array knock-off, suitable for use with P2.js | |
*/ | |
if(typeof global.Uint32Array !== "function") |
This file contains 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
class PinballGame.Core.CollideableEntity | |
constructor: (entity, shape)-> | |
@entity = entity | |
if shape instanceof Array | |
@shapes = shape | |
else | |
@shapes = [shape] | |
getCollisionShapes: -> @shapes | |
getEntity: -> @entity |
This file contains 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
Piwik Code: | |
________________________________ | |
<!-- Piwik --> | |
<script type="text/javascript"> | |
var _paq = _paq || []; | |
_paq.push(["trackPageView"]); | |
_paq.push(["enableLinkTracking"]); | |
(function() { |
This file contains 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
==> ./artist <== | |
#export_dateartist_idnameis_actual_artistview_urlartist_type_id | |
#primaryKey:artist_id | |
#dbTypes:BIGINTINTEGERVARCHAR(1000)BOOLEANVARCHAR(1000)INTEGER | |
#exportMode:FULL | |
##legal: IMPORTANT: The Apple Enterprise Partner Feed and data incorporated therein ("EPF") | |
==> ./artist_application <== | |
#export_dateartist_idapplication_id | |
#primaryKey:artist_idapplication_id |
This file contains 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
Scope: | |
How to create a local project which should be use in another local project- as a library | |
. | |
+ Make it a local linked package, install it in your other project, enable the library option in webpack, builed it manually or with the watch option. | |
1. Use npm link to symlink your local module A into module B. So all your changes in module A are reflected immediately in module B | |
See here: https://docs.npmjs.com/cli/link | |
2. Make sure that your source module (A) is wrapped correctly by webpack so you can require it like any other library. | |
Use this: https://github.com/webpack/webpack/tree/master/examples/multi-part-library |
This file contains 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
brew install git-subtree | |
git subtree push --prefox web staging master | |
#where "web" is subfolder of git project and contains the rails app | |
#another way would be using config.ru without subtree push but then you would always push your whole project and not only "web" or whatever folder |
This file contains 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
http://mailtrap.io |
This file contains 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
#Gemfile | |
source :rubygems | |
gem 'rack' | |
gem 'sinatra' | |
#config.ru | |
require './app' | |
run Sinatra::Application | |
#app.rb |
OlderNewer