Skip to content

This is a library for implementing projects using Scratch graphics libraries. It is implemented in C# calling XNA.

Notifications You must be signed in to change notification settings

tml/Scratch-Library

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Scratch Library

This is a library for implementing projects using Scratch graphics libraries. It is implemented in C# calling XNA.

I am 9 and this is my introduction to this library. I learn't Scratch when I was 5 because my dad said if you would like to make a video game make it yourself. The only thing my dad helped me with was with the angles and rotating around the middle instead of the top left corner. I decided to make this product so that people learning c# coming from scratch either don't get bored with Console Applications or not know how to use more complex graphics library like DirectX or OpenGl or Xna, etc.

Precompiled Version

To use this project make a Console Application and add the dll to the project. You must install xna redistrabutable from this link to use my library.

using System;
using Scratch;

namespace Scratch_NonXna
{
  static class Program
  {
      static Sprite cat;
      static World world;
      static void Initialize (ScratchGameHost host)
      {
          world = host.InitializeWorld("white", "cat");
          cat = world.CreateSprite("cat");
          world.GreenFlag += world_GreenFlag;
      }

      static void world_GreenFlag()
      {
          cat.GoTo(world.BonusContent.ScreenWidth / 2, world.BonusContent.ScreenHeight / 2);
          cat.Say("Hello World!", TimeSpan.FromSeconds(2.0));
      }

      static void Main(string[] args)
      {
          ScratchGameHost.Create(Initialize).Start();
      }
  }
}

How to build

To build this project you must install xna. This project is for vs 2013 for how to port a project click here. To give this product to other people either use JSIL or everybody who downloads this will have to install xna redistabutable or another option is to build this with the mongame version.

About

This is a library for implementing projects using Scratch graphics libraries. It is implemented in C# calling XNA.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 65.2%
  • JavaScript 34.7%
  • CSS 0.1%