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
| using System; | |
| using System.Collections.Generic; | |
| using Microsoft.Xna.Framework; | |
| using Microsoft.Xna.Framework.Content; | |
| using Microsoft.Xna.Framework.Graphics; | |
| using Microsoft.Xna.Framework.Input; | |
| using Chroma.Actors; | |
| using Chroma.Messages; | |
| using Chroma.States; | |
| using Chroma.Graphics; |
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
| private static void draw_figure<T>(MouseEventArgs e, Draw_Delegate<T> draw_func, T brushOrPen) | |
| { | |
| if (Start_Point.X > e.X && Start_Point.Y > e.Y) | |
| { | |
| draw_func(brushOrPen, e.X, e.Y, Start_Point.X - e.X, Start_Point.Y - e.Y); | |
| } | |
| else | |
| { | |
| if (Start_Point.X < e.X && Start_Point.Y < e.Y) | |
| { |
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
| private static void draw_figure<T>(MouseEventArgs e, Draw_Delegate<T> draw_func, T brushOrPen) | |
| { | |
| if (Start_Point.X > e.X && Start_Point.Y > e.Y) | |
| { | |
| draw_func(brushOrPen, e.X, e.Y, Start_Point.X - e.X, Start_Point.Y - e.Y); | |
| } | |
| else | |
| { | |
| if (Start_Point.X < e.X && Start_Point.Y < e.Y) | |
| { |
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
| 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; |
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
| 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 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
| 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 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
| #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 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
| <?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 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
| <?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 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
| // 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) ); |