Skip to content

flashcontent/donutscript

Repository files navigation

DonutScript 🍩

image

What is?

DonutScript is a scripting programming language used to make games and applications that can compile to Java. Uses ANTLR4 for language generation. It is used in FlashContent projects, like Actbit.

Power

DonutScript have much power than other languages, like:

Java

DonutScript uses Java, a strong programming language that is (really) easy to learn. With Java, DonutScript can create games, web applications, GUI, etc...

Simple

DonutScript is based on CoffeeScript, MoonScript and Ruby. It is very simple to learn. Here's a hello world app in DonutScript:

require donut

fun main():
   println("Hello World!\n")
end

Graphics and Games

DonutScript have embed graphics with LWJGL, so you can create any graphical application with DonutScript. You can create too games with DonutScript. Here's a basic example:

require donut
require donut.graphics

fun main():
   square = new gl.Square(0, 0,"green")
   if gl.keyDown("space"):
      square.color = "yellow"
end

Web development

DonutScript have the CakeCandy (development) framework. It is a web application framework for DonutScript. Here's a example: DonutScript:

require donut
require cake

class Main
  fun main() extend cake.App:
      cake.write("Hello World!");
  end
end

Learning

You can learn DonutScript at the DonutScript Wiki.