diff --git a/1.png b/1.png new file mode 100644 index 0000000..55a8348 Binary files /dev/null and b/1.png differ diff --git a/10.png b/10.png new file mode 100644 index 0000000..899e4a5 Binary files /dev/null and b/10.png differ diff --git a/11.png b/11.png new file mode 100644 index 0000000..96d2a8d Binary files /dev/null and b/11.png differ diff --git a/12.png b/12.png new file mode 100644 index 0000000..96d2a8d Binary files /dev/null and b/12.png differ diff --git a/13.png b/13.png new file mode 100644 index 0000000..96d2a8d Binary files /dev/null and b/13.png differ diff --git a/14.png b/14.png new file mode 100644 index 0000000..96d2a8d Binary files /dev/null and b/14.png differ diff --git a/15.png b/15.png new file mode 100644 index 0000000..96d2a8d Binary files /dev/null and b/15.png differ diff --git a/16.png b/16.png new file mode 100644 index 0000000..96d2a8d Binary files /dev/null and b/16.png differ diff --git a/17.png b/17.png new file mode 100644 index 0000000..96d2a8d Binary files /dev/null and b/17.png differ diff --git a/18.png b/18.png new file mode 100644 index 0000000..fbcaaa6 Binary files /dev/null and b/18.png differ diff --git a/19.png b/19.png new file mode 100644 index 0000000..fbcaaa6 Binary files /dev/null and b/19.png differ diff --git a/2.png b/2.png new file mode 100644 index 0000000..55a8348 Binary files /dev/null and b/2.png differ diff --git a/20.png b/20.png new file mode 100644 index 0000000..899e4a5 Binary files /dev/null and b/20.png differ diff --git a/21.png b/21.png new file mode 100644 index 0000000..df40ab7 Binary files /dev/null and b/21.png differ diff --git a/22.png b/22.png new file mode 100644 index 0000000..1375131 Binary files /dev/null and b/22.png differ diff --git a/23.png b/23.png new file mode 100644 index 0000000..1375131 Binary files /dev/null and b/23.png differ diff --git a/24.png b/24.png new file mode 100644 index 0000000..1375131 Binary files /dev/null and b/24.png differ diff --git a/25.png b/25.png new file mode 100644 index 0000000..1375131 Binary files /dev/null and b/25.png differ diff --git a/26.png b/26.png new file mode 100644 index 0000000..df40ab7 Binary files /dev/null and b/26.png differ diff --git a/3.png b/3.png new file mode 100644 index 0000000..55a8348 Binary files /dev/null and b/3.png differ diff --git a/4.png b/4.png new file mode 100644 index 0000000..9c5c3c5 Binary files /dev/null and b/4.png differ diff --git a/5.png b/5.png new file mode 100644 index 0000000..a0604c3 Binary files /dev/null and b/5.png differ diff --git a/6.png b/6.png new file mode 100644 index 0000000..77bc873 Binary files /dev/null and b/6.png differ diff --git a/7.png b/7.png new file mode 100644 index 0000000..77bc873 Binary files /dev/null and b/7.png differ diff --git a/8.png b/8.png new file mode 100644 index 0000000..899e4a5 Binary files /dev/null and b/8.png differ diff --git a/9.png b/9.png new file mode 100644 index 0000000..899e4a5 Binary files /dev/null and b/9.png differ diff --git a/SpriteStacker.sln b/SpriteStacker.sln new file mode 100644 index 0000000..5b5766f --- /dev/null +++ b/SpriteStacker.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35327.3 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpriteStacker", "SpriteStacker\SpriteStacker.csproj", "{123E7E4E-531F-41FB-A62E-7AD0B37C5AA2}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {123E7E4E-531F-41FB-A62E-7AD0B37C5AA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {123E7E4E-531F-41FB-A62E-7AD0B37C5AA2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {123E7E4E-531F-41FB-A62E-7AD0B37C5AA2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {123E7E4E-531F-41FB-A62E-7AD0B37C5AA2}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5D195238-BD31-4AB9-8536-8AA3EF26C922} + EndGlobalSection +EndGlobal diff --git a/SpriteStacker/App.config b/SpriteStacker/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/SpriteStacker/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/SpriteStacker/Form1.Designer.cs b/SpriteStacker/Form1.Designer.cs new file mode 100644 index 0000000..8b358c9 --- /dev/null +++ b/SpriteStacker/Form1.Designer.cs @@ -0,0 +1,77 @@ +namespace SpriteStacker +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.Display = new System.Windows.Forms.PictureBox(); + this.timer1 = new System.Windows.Forms.Timer(this.components); + ((System.ComponentModel.ISupportInitialize)(this.Display)).BeginInit(); + this.SuspendLayout(); + // + // Display + // + this.Display.BackColor = System.Drawing.SystemColors.ActiveCaption; + this.Display.Location = new System.Drawing.Point(0, 0); + this.Display.Name = "Display"; + this.Display.Size = new System.Drawing.Size(100, 50); + this.Display.TabIndex = 0; + this.Display.TabStop = false; + this.Display.Paint += new System.Windows.Forms.PaintEventHandler(this.PaintDisplay); + // + // timer1 + // + this.timer1.Enabled = true; + this.timer1.Interval = 16; + this.timer1.Tick += new System.EventHandler(this.FrameTimer); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Controls.Add(this.Display); + this.DoubleBuffered = true; + this.Name = "Form1"; + this.Text = "Form1"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.KillThreads); + this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.KeyDownEvent); + this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.KeyPressEvent); + this.Resize += new System.EventHandler(this.ResizeWindow); + ((System.ComponentModel.ISupportInitialize)(this.Display)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.PictureBox Display; + private System.Windows.Forms.Timer timer1; + } +} + diff --git a/SpriteStacker/Form1.cs b/SpriteStacker/Form1.cs new file mode 100644 index 0000000..99848c9 --- /dev/null +++ b/SpriteStacker/Form1.cs @@ -0,0 +1,128 @@ +using SpriteStacker.Properties; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Diagnostics; +using System.Drawing; +using System.Drawing.Drawing2D; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace SpriteStacker +{ + public partial class Form1 : Form + { + public static Thread MainThread; + public static bool running = true; + Model model = new Model(25, 25); + public double LastFT = 0; + public Form1() + { + InitializeComponent(); + ResizeDisplay(); + MainThread = new Thread(mainThread); + MainThread.SetApartmentState(ApartmentState.STA); + model.SetBitmapLayers(new Bitmap[] + { + Resources._1, + Resources._2, + Resources._3, + Resources._4, + Resources._5, + Resources._6, + Resources._7, + Resources._8, + Resources._9, + Resources._10, + Resources._11, + Resources._12, + Resources._13, + Resources._14, + Resources._15, + Resources._16, + Resources._17, + Resources._18, + Resources._19, + Resources._20, + Resources._21, + Resources._22, + Resources._23, + Resources._24, + Resources._25, + Resources._26 + }); + //model.AddLayers(20); + Random rnd = new Random(); + Color[] colors = new Color[] { Color.FromArgb(255,128,128) }; + for (int i = 0; i < 150; i++) + { + for(int j = 0; j < 150; j++) + { + //int Y = rnd.Next(0, 21); + //model.SetData(rnd.Next(0, 25), rnd.Next(0, 25),Y , new Voxel(Color.FromArgb((int)(180 * ( (Y + 1.0) / 22.0 )), (int)(255 * ((Y + 1.0) / 22.0)), (int)(128 * ((Y + 1.0) / 22.0))))); + } + } + //model.DrawLayersToImages(); + MainThread.Start(); + } + public void mainThread() + { + LastFT = Process.GetCurrentProcess().TotalProcessorTime.TotalMilliseconds; + while (running) + { + Display.Refresh(); + if (Process.GetCurrentProcess().TotalProcessorTime.TotalMilliseconds - LastFT > 16) + { + LastFT = Process.GetCurrentProcess().TotalProcessorTime.TotalMilliseconds; + if (Camera.Rotation == 360) Camera.Rotation = 0; + Camera.Rotation++; + } + } + } + private void PaintDisplay(object sender, PaintEventArgs e) + { + e.Graphics.PixelOffsetMode = PixelOffsetMode.Half; + model.DrawSpriteStack(e.Graphics); + } + + private void ResizeDisplay() + { + Display.Left = 0; + Display.Top = 0; + Display.Width = Width; + Display.Height = Height - 32; + Camera.Width = Width; Camera.Height = Height - 32; + } + private void ResizeWindow(object sender, EventArgs e) + { + ResizeDisplay(); + } + + private void KillThreads(object sender, FormClosingEventArgs e) + { + running = false; + } + + private void FrameTimer(object sender, EventArgs e) + { + + } + + private void KeyPressEvent(object sender, KeyPressEventArgs e) + { + + } + + private void KeyDownEvent(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.W) Camera.LocY++; + if (e.KeyCode == Keys.S) Camera.LocY--; + if (e.KeyCode == Keys.A) Camera.LocX++; + if (e.KeyCode == Keys.D) Camera.LocX--; + } + } +} diff --git a/SpriteStacker/Form1.resx b/SpriteStacker/Form1.resx new file mode 100644 index 0000000..1f666f2 --- /dev/null +++ b/SpriteStacker/Form1.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/SpriteStacker/Model.cs b/SpriteStacker/Model.cs new file mode 100644 index 0000000..267a879 --- /dev/null +++ b/SpriteStacker/Model.cs @@ -0,0 +1,125 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace SpriteStacker +{ + public static class Camera + { + public static int LocX = 0; + public static int LocY = 50; + public static float Rotation = 0; + public static float scale = 10; + public static int Width; + public static int Height; + } + public class Voxel + { + Color VoxelColor; + public Voxel(Color voxelColor) + { + VoxelColor = voxelColor; + } + public Color GetColor() { return VoxelColor; } + public Color[] GetShadedColors(int[] Shadows) + { + Color[] sides = new Color[6]; + for (int i = 0; i < 6; i++) + { + sides[i] = Color.FromArgb(Math.Max(Math.Min(VoxelColor.R + Shadows[i], 255), 0), Math.Max(Math.Min(VoxelColor.G + Shadows[i], 255), 0), Math.Max(Math.Min(VoxelColor.B + Shadows[i], 255), 0)); + } + return sides; + } + public Color[] GetShadedColors() + { + Color[] sides = new Color[6]; + int[] Shadows = new int[6] { 0, 10, 0, 10, 20, -20 }; + for (int i = 0; i < 6; i++) + { + sides[i] = Color.FromArgb(Math.Max(Math.Min(VoxelColor.R + Shadows[i], 255), 0), Math.Max(Math.Min(VoxelColor.G + Shadows[i], 255), 0), Math.Max(Math.Min(VoxelColor.B + Shadows[i], 255), 0)); + } + return sides; + } + } + public class Model + { + public List LayerImages = new List(); + List ModelData = new List(); + int Width; + int Length; + public Model(int Width, int Length) + { + this.Width = Width; + this.Length = Length; + AddLayer(); + } + public void AddLayers(int layerCount) + { + for (int i = 0; i < layerCount; i++) + { + AddLayer(); + } + } + public void SetBitmapLayers(Bitmap[] images) + { + LayerImages = images.ToList(); + ModelData.Clear(); + for(int i = 0;i < LayerImages.Count; i++) + { + Width = LayerImages[i].Width; + Length = LayerImages[i].Height; + ModelData.Add(new Voxel[Width, Length]); + for (int x = 0; x < LayerImages[i].Width; x++) + { + for(int y = 0; y < LayerImages[i].Height; y++) + { + ModelData[i][x,y] = new Voxel(LayerImages[i].GetPixel(x,y)); + } + } + } + } + public void AddLayer() + { + LayerImages.Add(new Bitmap(Width, Length)); + ModelData.Add(new Voxel[Width,Length]); + } + public void DrawSpriteStack(Graphics G) + { + for (int i = 0; i < ModelData.Count; i++) + { + G.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor; + G.ResetTransform(); + G.TranslateTransform(Camera.LocX + Camera.Width/2,Camera.LocY - (i*Camera.scale) + Camera.Height/2); + G.RotateTransform(Camera.Rotation); + G.DrawImage(LayerImages[i], new Rectangle(new Point(-(int)(Width * Camera.scale)/2, -(int)(Length * Camera.scale) / 2),new Size((int)(Width * Camera.scale), (int)(Length * Camera.scale)))); + } + } + public void DrawLayersToImages() + { + for (int i = 0; i < ModelData.Count; i++) + { + Bitmap newImage = new Bitmap(Width, Length); + for (int x = 0; x < ModelData[i].GetLength(0); x++) + { + for (int y = 0; y < ModelData[i].GetLength(1); y++) + { + if (ModelData[i][x, y] != null) + { + newImage.SetPixel(x, y, ModelData[i][x, y].GetColor()); + } + } + } + LayerImages[i] = newImage; + } + } + public void SetData(int LocX, int LocY, int Layer, Voxel voxel) + { + if (Layer >= ModelData.Count) AddLayer(); + ModelData[Layer][LocX,LocY] = voxel; + } + } +} diff --git a/SpriteStacker/Program.cs b/SpriteStacker/Program.cs new file mode 100644 index 0000000..05ab8de --- /dev/null +++ b/SpriteStacker/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace SpriteStacker +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/SpriteStacker/Properties/AssemblyInfo.cs b/SpriteStacker/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..e53832b --- /dev/null +++ b/SpriteStacker/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("SpriteStacker")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("HSFC")] +[assembly: AssemblyProduct("SpriteStacker")] +[assembly: AssemblyCopyright("Copyright © HSFC 2026")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("123e7e4e-531f-41fb-a62e-7ad0b37c5aa2")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/SpriteStacker/Properties/Resources.Designer.cs b/SpriteStacker/Properties/Resources.Designer.cs new file mode 100644 index 0000000..993b473 --- /dev/null +++ b/SpriteStacker/Properties/Resources.Designer.cs @@ -0,0 +1,323 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace SpriteStacker.Properties { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SpriteStacker.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _1 { + get { + object obj = ResourceManager.GetObject("_1", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _10 { + get { + object obj = ResourceManager.GetObject("_10", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _11 { + get { + object obj = ResourceManager.GetObject("_11", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _12 { + get { + object obj = ResourceManager.GetObject("_12", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _13 { + get { + object obj = ResourceManager.GetObject("_13", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _14 { + get { + object obj = ResourceManager.GetObject("_14", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _15 { + get { + object obj = ResourceManager.GetObject("_15", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _16 { + get { + object obj = ResourceManager.GetObject("_16", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _17 { + get { + object obj = ResourceManager.GetObject("_17", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _18 { + get { + object obj = ResourceManager.GetObject("_18", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _19 { + get { + object obj = ResourceManager.GetObject("_19", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _2 { + get { + object obj = ResourceManager.GetObject("_2", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _20 { + get { + object obj = ResourceManager.GetObject("_20", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _21 { + get { + object obj = ResourceManager.GetObject("_21", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _22 { + get { + object obj = ResourceManager.GetObject("_22", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _23 { + get { + object obj = ResourceManager.GetObject("_23", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _24 { + get { + object obj = ResourceManager.GetObject("_24", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _25 { + get { + object obj = ResourceManager.GetObject("_25", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _26 { + get { + object obj = ResourceManager.GetObject("_26", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _3 { + get { + object obj = ResourceManager.GetObject("_3", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _4 { + get { + object obj = ResourceManager.GetObject("_4", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _5 { + get { + object obj = ResourceManager.GetObject("_5", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _6 { + get { + object obj = ResourceManager.GetObject("_6", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _7 { + get { + object obj = ResourceManager.GetObject("_7", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _8 { + get { + object obj = ResourceManager.GetObject("_8", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _9 { + get { + object obj = ResourceManager.GetObject("_9", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/SpriteStacker/Properties/Resources.resx b/SpriteStacker/Properties/Resources.resx new file mode 100644 index 0000000..21346c1 --- /dev/null +++ b/SpriteStacker/Properties/Resources.resx @@ -0,0 +1,199 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + ..\Resources\1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\10.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\11.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\12.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\13.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\14.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\15.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\17.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\18.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\19.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\20.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\21.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\22.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\23.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\25.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\26.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\3.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\4.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\5.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\6.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\7.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\8.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\9.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/SpriteStacker/Properties/Settings.Designer.cs b/SpriteStacker/Properties/Settings.Designer.cs new file mode 100644 index 0000000..a1de6f8 --- /dev/null +++ b/SpriteStacker/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace SpriteStacker.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/SpriteStacker/Properties/Settings.settings b/SpriteStacker/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/SpriteStacker/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/SpriteStacker/Resources/1.png b/SpriteStacker/Resources/1.png new file mode 100644 index 0000000..55a8348 Binary files /dev/null and b/SpriteStacker/Resources/1.png differ diff --git a/SpriteStacker/Resources/10.png b/SpriteStacker/Resources/10.png new file mode 100644 index 0000000..899e4a5 Binary files /dev/null and b/SpriteStacker/Resources/10.png differ diff --git a/SpriteStacker/Resources/11.png b/SpriteStacker/Resources/11.png new file mode 100644 index 0000000..96d2a8d Binary files /dev/null and b/SpriteStacker/Resources/11.png differ diff --git a/SpriteStacker/Resources/12.png b/SpriteStacker/Resources/12.png new file mode 100644 index 0000000..96d2a8d Binary files /dev/null and b/SpriteStacker/Resources/12.png differ diff --git a/SpriteStacker/Resources/13.png b/SpriteStacker/Resources/13.png new file mode 100644 index 0000000..96d2a8d Binary files /dev/null and b/SpriteStacker/Resources/13.png differ diff --git a/SpriteStacker/Resources/14.png b/SpriteStacker/Resources/14.png new file mode 100644 index 0000000..96d2a8d Binary files /dev/null and b/SpriteStacker/Resources/14.png differ diff --git a/SpriteStacker/Resources/15.png b/SpriteStacker/Resources/15.png new file mode 100644 index 0000000..96d2a8d Binary files /dev/null and b/SpriteStacker/Resources/15.png differ diff --git a/SpriteStacker/Resources/16.png b/SpriteStacker/Resources/16.png new file mode 100644 index 0000000..96d2a8d Binary files /dev/null and b/SpriteStacker/Resources/16.png differ diff --git a/SpriteStacker/Resources/17.png b/SpriteStacker/Resources/17.png new file mode 100644 index 0000000..96d2a8d Binary files /dev/null and b/SpriteStacker/Resources/17.png differ diff --git a/SpriteStacker/Resources/18.png b/SpriteStacker/Resources/18.png new file mode 100644 index 0000000..fbcaaa6 Binary files /dev/null and b/SpriteStacker/Resources/18.png differ diff --git a/SpriteStacker/Resources/19.png b/SpriteStacker/Resources/19.png new file mode 100644 index 0000000..fbcaaa6 Binary files /dev/null and b/SpriteStacker/Resources/19.png differ diff --git a/SpriteStacker/Resources/2.png b/SpriteStacker/Resources/2.png new file mode 100644 index 0000000..55a8348 Binary files /dev/null and b/SpriteStacker/Resources/2.png differ diff --git a/SpriteStacker/Resources/20.png b/SpriteStacker/Resources/20.png new file mode 100644 index 0000000..899e4a5 Binary files /dev/null and b/SpriteStacker/Resources/20.png differ diff --git a/SpriteStacker/Resources/21.png b/SpriteStacker/Resources/21.png new file mode 100644 index 0000000..df40ab7 Binary files /dev/null and b/SpriteStacker/Resources/21.png differ diff --git a/SpriteStacker/Resources/22.png b/SpriteStacker/Resources/22.png new file mode 100644 index 0000000..1375131 Binary files /dev/null and b/SpriteStacker/Resources/22.png differ diff --git a/SpriteStacker/Resources/23.png b/SpriteStacker/Resources/23.png new file mode 100644 index 0000000..1375131 Binary files /dev/null and b/SpriteStacker/Resources/23.png differ diff --git a/SpriteStacker/Resources/24.png b/SpriteStacker/Resources/24.png new file mode 100644 index 0000000..1375131 Binary files /dev/null and b/SpriteStacker/Resources/24.png differ diff --git a/SpriteStacker/Resources/25.png b/SpriteStacker/Resources/25.png new file mode 100644 index 0000000..1375131 Binary files /dev/null and b/SpriteStacker/Resources/25.png differ diff --git a/SpriteStacker/Resources/26.png b/SpriteStacker/Resources/26.png new file mode 100644 index 0000000..df40ab7 Binary files /dev/null and b/SpriteStacker/Resources/26.png differ diff --git a/SpriteStacker/Resources/3.png b/SpriteStacker/Resources/3.png new file mode 100644 index 0000000..55a8348 Binary files /dev/null and b/SpriteStacker/Resources/3.png differ diff --git a/SpriteStacker/Resources/4.png b/SpriteStacker/Resources/4.png new file mode 100644 index 0000000..9c5c3c5 Binary files /dev/null and b/SpriteStacker/Resources/4.png differ diff --git a/SpriteStacker/Resources/5.png b/SpriteStacker/Resources/5.png new file mode 100644 index 0000000..a0604c3 Binary files /dev/null and b/SpriteStacker/Resources/5.png differ diff --git a/SpriteStacker/Resources/6.png b/SpriteStacker/Resources/6.png new file mode 100644 index 0000000..77bc873 Binary files /dev/null and b/SpriteStacker/Resources/6.png differ diff --git a/SpriteStacker/Resources/7.png b/SpriteStacker/Resources/7.png new file mode 100644 index 0000000..77bc873 Binary files /dev/null and b/SpriteStacker/Resources/7.png differ diff --git a/SpriteStacker/Resources/8.png b/SpriteStacker/Resources/8.png new file mode 100644 index 0000000..899e4a5 Binary files /dev/null and b/SpriteStacker/Resources/8.png differ diff --git a/SpriteStacker/Resources/9.png b/SpriteStacker/Resources/9.png new file mode 100644 index 0000000..899e4a5 Binary files /dev/null and b/SpriteStacker/Resources/9.png differ diff --git a/SpriteStacker/SpriteStacker.csproj b/SpriteStacker/SpriteStacker.csproj new file mode 100644 index 0000000..fc33cda --- /dev/null +++ b/SpriteStacker/SpriteStacker.csproj @@ -0,0 +1,163 @@ + + + + + Debug + AnyCPU + {123E7E4E-531F-41FB-A62E-7AD0B37C5AA2} + WinExe + SpriteStacker + SpriteStacker + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file