fork download
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. using Sce.Pss.Core;
  5. using Sce.Pss.Core.Environment;
  6. using Sce.Pss.Core.Graphics;
  7. using Sce.Pss.Core.Input;
  8.  
  9. using Sce.Pss.HighLevel.UI;
  10. using System.Threading;
  11.  
  12.  
  13. namespace TestTestTest
  14. {
  15. public class AppMain
  16. {
  17. private static GraphicsContext graphics;
  18.  
  19. public static void Main (string[] args)
  20. {
  21. Initialize ();
  22.  
  23. while (true) {
  24. SystemEvents.CheckEvents ();
  25. Update ();
  26. Render ();
  27. }
  28. }
  29.  
  30. public static void Initialize ()
  31. {
  32. // Set up the graphics system
  33. graphics = new GraphicsContext();
  34.  
  35. UISystem.Initialize(graphics);
  36.  
  37. ManualResetEvent mre = new ManualResetEvent(false);
  38. mre.WaitOne();
  39. Console.WriteLine("kokoni kitya dameyo");
  40.  
  41. var scene = new Scene();
  42.  
  43. UISystem.SetScene(scene);
  44. }
  45.  
  46. public static void Update ()
  47. {
  48. // Query gamepad for current state
  49. var gamePadData = GamePad.GetData (0);
  50.  
  51. List<TouchData> touchDataList = Touch.GetData (0);
  52.  
  53. UISystem.Update(touchDataList);
  54. }
  55.  
  56. public static void Render ()
  57. {
  58. // Clear the screen
  59. graphics.SetClearColor (0.0f, 0.0f, 0.0f, 0.0f);
  60. graphics.Clear ();
  61.  
  62. UISystem.Render();
  63.  
  64. // Present the screen
  65. graphics.SwapBuffers ();
  66. }
  67. }
  68. }
  69.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty