Created
          January 22, 2020 18:49 
        
      - 
      
- 
        Save rdeioris/3dd75d735ffa8ca882166746483093e8 to your computer and use it in GitHub Desktop. 
  
    
      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 Aiv.Fast2D; | |
| using OpenTK; | |
| namespace Fast2DApp | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| Window window = new Window(1024, 576, "First Game"); | |
| //window.SetVSync(true); | |
| Terminal terminal = new Terminal(15, 4); | |
| terminal.Put('c'); | |
| terminal.Put('i'); | |
| terminal.Put('a'); | |
| terminal.Put('o'); | |
| terminal.Put(' '); | |
| terminal.Put('A'); | |
| terminal.Put('i'); | |
| terminal.Put('V'); | |
| terminal.Put('\n'); | |
| terminal.Put('\r'); | |
| terminal.Put("Hello World"); | |
| //window.SetClearColor(0, 0, 255); | |
| //window.SetViewport(100, 100, 300, 200); | |
| //window.SetScissorTest(100, 100, 100, 100); | |
| while (window.IsOpened) | |
| { | |
| window.SetViewport(100, 100, 300, 200); | |
| terminal.Draw(); | |
| window.SetViewport(500, 300, 300, 200); | |
| terminal.Draw(); | |
| window.Update(); | |
| } | |
| } | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment