Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

C#でゲームを作る2016 第1回

1,018 views

Published on

KMC’の新入生プロジェクトの一つ「C#でゲームを作る2016」で使ったスライドです。
まとめ記事:http://kmc.hatenablog.jp/entry/2016/11/20/100421

Published in: Technology
  • Be the first to comment

C#でゲームを作る2016 第1回

  1. 1. C# 04/09 : SUZUSIME
  2. 2.   ID: suzusime  KMC slack bot root  
  3. 3.  ID     ※
  4. 4.  ?    
  5. 5.    
  6. 6.  
  7. 7.   
  8. 8.  
  9. 9.   
  10. 10.  C# Monogame 
  11. 11.  PC   
  12. 12. 1. Visual Studio Community 2015 2. Monogame
  13. 13. Slack  Slack #csgame 
  14. 14.
  15. 15.  …… 
  16. 16.  
  17. 17.
  18. 18. Project  巫女さんSTG
  19. 19.
  20. 20.  3D
  21. 21.
  22. 22.
  23. 23.
  24. 24.  RPG  FPS 3D 3D  AI ……
  25. 25.    2D   
  26. 26.  
  27. 27.   ……   3
  28. 28.   ……  2
  29. 29.  
  30. 30.  Id: hakurin
  31. 31.
  32. 32.
  33. 33.  C# Visual Studio Ideone 
  34. 34.  public class Test { public static void Main(){ System.Console.WriteLine("Hello, World!"); } }
  35. 35.  “ideone it!”  Output “Hello, world!” OK  Compile Error!
  36. 36.  “Hello, world!”  2 2 public static void Main(){ System.Console.WriteLine("Hello, World!"); System.Console.WriteLine("ほぇ~"); }
  37. 37. public class Test { public static void Main(){ System.Console.WriteLine("Hello, World!"); System.Console.WriteLine("ほぇ~"); } }
  38. 38. public class Test { public static void Main(){ System.Console.WriteLine("Hello, World!"); System.Console.WriteLine("ほぇ~"); } }
  39. 39. System.Console.WriteLine("Hello, World!"); System.Console.WriteLine("ほぇ~");  2  System.Console.WriteLine(); 
  40. 40.  Main() {} Main() int num; num = 28; System.Console.WriteLine(num);  28
  41. 41. int num;  int num  int   num
  42. 42. num = 28;  num 28  =
  43. 43. int a, b; a = 28; b = a; a = a + 87;  = 
  44. 44.  int  整数型 int 実数型 float, double 文字列型 string 真理値型 bool
  45. 45.  double x; x = 1.2; x = x*x;
  46. 46. string str; str = "ゆゆ式"; str = str + "!";//strの中身は「ゆゆ式!」に   +
  47. 47.  int num = 28; 
  48. 48. int a; a = 8; if(a>3){ Console.WriteLine("にゃー"); }  if {}
  49. 49. int a = 8; if(a>3){ Console.WriteLine("にゃー"); } else { Console.WriteLine("ぴょんぴょん"); }  else if
  50. 50. while int i; i = 0; while(i<5){ Console.WriteLine("にゃー" + i); i++; }  (i<5)
  51. 51. for for(int i=0; i<5; i++){ Console.WriteLine("にゃー" + i); }  () 1. 2. 3. 1
  52. 52. int[] retsu; retsu = new int[3]; retsu[0]=4; retsu[1]=5; retsu[2]=1;   retsu int 3  [0],[1]
  53. 53. int[] retsu; restu = new int[] {4, 5, 1}; 
  54. 54. int[] retsu = new int[] {4, 5, 1}; for(int i=0; i<3; i++){ System.Console.WriteLine(i+":"+retsu[i]); } 
  55. 55.   for
  56. 56. //これは点数の一覧の配列 int[] retsu = new int[] {4, 5, 1}; /* バグが出る for(int i=0; i<3; i++){ Console.WriteLine(i + "=" + retsu[i]); } */  //  /* */
  57. 57.   3
  58. 58.   retsu
  59. 59.  1. 2. 3. 4.  
  60. 60.  
  61. 61.  string str = "ムカデは好みません"; System.Console.WriteLine(str);  string str; str = System.Console.ReadLine(); //入力した文字がstrに入る
  62. 62.  System.Console.ReadLine() string  string str; str = System.Console.ReadLine(); int num; num = int.Parse(str);
  63. 63.  +  C#
  64. 64. int num; num = 4+7;//11 たし算(加算) num = 4-7;//-3 ひき算(減算) num = 4*7;//28 かけ算(乗算) num = 49/5;//9 割り算の商 num = 49%5;//4 割り算の余り(剰余)
  65. 65. int a = 7; bool b;//真理値を入れる型 b = 2==a;//等号が成り立つか否か b = 2!=a;//不等号が成り立つか否か(not equal) b = a>2;//不等号が成り立つか否か b = a>=2;//不等号が成り立つか否か b = a<2;//不等号が成り立つか否か b = a<=2;//不等号が成り立つか否か
  66. 66.  if(true){ Console.WriteLine(num);//エラー int num=88; Console.WriteLine(num);//大丈夫 } Console.WriteLine(num);//エラー
  67. 67.  if(true){ Console.WriteLine(num);//エラー int num=88; Console.WriteLine(num);//大丈夫 } Console.WriteLine(num);//エラー
  68. 68.   
  69. 69.  C#
  70. 70.  int, long, short, sbyte, uint, ulong, ushort, byte 
  71. 71.  bit byte  bit 1bit 0 1 2  2bit 00 01 10 11 4  1byte=8bit  1byte 2 8 256
  72. 72.  sbyte, short, int, long sbyte 1byte -128 127 short 2byte -32,768 32,767 int 4byte -2,147,483,648 2,147,483,648 long 8byte -9,223,372,036,854,775,808 9,223,372,036,854,775,807
  73. 73.  byte, ushort, uint, ulong byte 1byte 0 255 ushort 2byte 0 65,535 uint 4byte 0 4,294,967,295 ulong 8byte 0 18,446,744,073,709,551,615
  74. 74.  float double double  int double 
  75. 75.  CPU CPU  1bit
  76. 76.  2  double 2  0.1
  77. 77.    ==
  78. 78.  if while for bool int a = 1; bool result = (a<3); if(result){ System.Console.WriteLine("ちっちゃい!"); }
  79. 79.  switch int a=1; int b; switch(a){ case 0: b=-10; break; case 1: b=6; break; default: b=0; break; }
  80. 80.  do while foreach  foreach for 
  81. 81.    
  82. 82.  …  https://paiza.jp/poh/ando( )  http://judge.u- aizu.ac.jp/onlinejudge/finder.jsp?course=ITP1 
  83. 83.   4 23  4 16 TOEFL  slack #csgame

×