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
* * | |
* * * | |
* * | |
* * * | |
* * * | |
* * * * | |
* * * | |
[ 10, '2-3-2-3', '3-4-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
private bool LoadSnapshot() | |
{ | |
try | |
{ | |
var pendingResult = GamesClass.Snapshots.Open(client, SavedGameFileName, true); | |
var result = pendingResult.AsAsync<ISnapshotsOpenSnapshotResult>().Result; | |
var retriesCount = 2; |
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
// Create the actions | |
CCFiniteTimeAction* actionMove = | |
CCMoveTo::create( (float)actualDuration, | |
ccp(0 - target->getContentSize().width/2, actualY) ); | |
CCFiniteTimeAction* actionMoveDone = | |
CCCallFuncN::create( this, | |
callfuncN_selector(HelloWorld::spriteMoveFinished)); | |
target->runAction( CCSequence::create(actionMove, | |
actionMoveDone, NULL) ); |
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
// Create the actions | |
CCFiniteTimeAction* actionMove = | |
CCMoveTo::create( (float)actualDuration, | |
ccp(0 - target->getContentSize().width/2, actualY) ); | |
CCFiniteTimeAction* actionMoveDone = | |
CCCallFuncN::create( this, | |
callfuncN_selector(HelloWorld::spriteMoveFinished)); | |
target->runAction( CCSequence::create(actionMove, | |
actionMoveDone, NULL) ); |
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"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.nitrome.redungeon" android:versionName="1.0" android:versionCode="109"> | |
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23" /> | |
<uses-permission android:name="com.android.vending.BILLING" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<application android:allowBackup="true" android:icon="@mipmap/icon" android:label="@string/app_name"> | |
<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/app_id" /> | |
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> | |
<activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" /> |
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"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.nitrome.redungeon" android:versionName="1.0" android:versionCode="109"> | |
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23" /> | |
<uses-permission android:name="com.android.vending.BILLING" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<application android:allowBackup="true" android:icon="@mipmap/icon" android:label="@string/app_name"> | |
<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/app_id" /> | |
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> | |
<activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" /> |
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 "Macros.fxh" | |
#include "Common.fxh" | |
static const int MAX_LIGHTS = 50; | |
DECLARE_TEXTURE(Texture, 0); | |
uniform extern float2 LightPositions[MAX_LIGHTS]; | |
uniform extern float4 LightColors[MAX_LIGHTS]; | |
uniform extern float LightRadiuses[MAX_LIGHTS]; |
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
Forwarding debugger port 8890 | |
Detecting existing process | |
Loaded assembly: /storage/sdcard0/Android/data/com.eneminds.redungeon/files/.__override__/KnighterAndroid.dll | |
Loaded assembly: /storage/sdcard0/Android/data/com.eneminds.redungeon/files/.__override__/Xamarin.Android.Support.v4.dll [External] | |
Loaded assembly: /storage/sdcard0/Android/data/com.eneminds.redungeon/files/.__override__/Xamarin.GooglePlayServices.Basement.dll [External] | |
Loaded assembly: /storage/sdcard0/Android/data/com.eneminds.redungeon/files/.__override__/Xamarin.GooglePlayServices.Base.dll [External] | |
Loaded assembly: /storage/sdcard0/Android/data/com.eneminds.redungeon/files/.__override__/Xamarin.GooglePlayServices.Drive.dll [External] | |
Loaded assembly: /storage/sdcard0/Android/data/com.eneminds.redungeon/files/.__override__/Xamarin.GooglePlayServices.Games.dll [External] | |
Loaded assembly: /storage/sdcard0/Android/data/com.eneminds.redungeon/files/.__override__/MonoGame.Framework.dll [External] | |
Loaded assembly: /storage/sdcard0/Android/data/ |
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
missile = {:cost => 53, :damage => 4} | |
shield = {:cost => 113, :armor => 7, :turns => 6} | |
drain = {:cost => 73, :damage => 2, :hit => 2, :turns => 1} | |
poison = {:cost => 173, :damage => 3, :turns => 6} | |
recharge = {:cost => 229, :mana => 101, :turns => 5} | |
spells = [missile, shield, poison, recharge] | |
spell_names = {missile => 'Magic Missile', drain => 'Drain', shield => 'Shield', poison => 'Poison', recharge => 'Recharge'} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
using System.Windows.Forms; | |
using System.Threading; |
NewerOlder