Simple PixiJS graphics test to see what works on mobile. Uses the set-background-to-black hack as mentioned in issue #938.
Influence maps are an increasingly common technique for implementing more intelligent pathfinding and route planning. For a good introduction see "The Mechanics of Influence Mapping: Representation, Algorithm & Parameters".
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
require 'mkmf' | |
# Make the MakeMakefile logger write file output to null. | |
# Probably requires ruby >= 1.9.3 | |
module MakeMakefile::Logging | |
@logfile = File::NULL | |
end |
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
#include <stdio.h> | |
#include <stdint.h> | |
#include <inttypes.h> | |
// Uses the fibonacci sequence defined | |
// in http://oeis.org/A000045 | |
__uint128_t fib(__uint128_t n) { | |
if (n == 0) { | |
return 0; |
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
iOS release build | |
Eigen additions 375 | |
Eigen multiplications 1258 | |
GLM additions 620 | |
GLM multiplications 767 | |
CML additions 397 | |
CML multiplications 3029 |
Quite a few more related to maths here because I suck at maths and need as much help as I can get.
- Essential Math for Games Programmers - http://www.essentialmath.com/tutorial.htm
- Learning Modern 3D Graphics Programming - http://arcsynthesis.org/gltut/
- 2D and 3D graphics programming techniques from scratch - http://www.scratchapixel.com
- Cheating to make great graphics - http://simonschreibt.de/game-art-tricks/
- Game programming patterns - http://gameprogrammingpatterns.com
- GPU Gems books at Nvidia developer site: GPU Gems 1, GPU Gems 2, GPU Gems 3
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
#!/usr/bin/env bash | |
function execute_after_confirm { | |
read -p "$1 ($2) ? [y/n] " -n 1 -r | |
echo | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then | |
shift | |
for var in "$@" | |
do |
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
<?xml version="1.0" encoding="utf-8"?> | |
<key name="Software"> | |
<key name="ConEmu"> | |
<key name=".Vanilla" modified="2013-08-29 11:28:09" build="130827"> | |
<value name="ColorTable00" type="dword" data="00000000"/> | |
<value name="ColorTable01" type="dword" data="00ee0000"/> | |
<value name="ColorTable02" type="dword" data="0000cd00"/> | |
<value name="ColorTable03" type="dword" data="00cdcd00"/> | |
<value name="ColorTable04" type="dword" data="000000cd"/> | |
<value name="ColorTable05" type="dword" data="00cd00cd"/> |
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
package | |
{ | |
import ash.core.Engine; | |
import ash.core.Entity; | |
import flash.display.Sprite; | |
public class Main extends Sprite | |
{ |
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
/** | |
* Copyright | |
*/ | |
package org.tryharder.levelup2013 | |
{ | |
import flash.events.Event; | |
import flash.events.ProgressEvent; | |
import flash.events.ServerSocketConnectEvent; | |
import flash.net.ServerSocket; | |
import flash.net.Socket; |