Monday, October 28, 2019

Learn to code for kids with Scratch

Scratch is a free programming language and online community, developed by MIT, for learning to code in a very simple way.
It's designed in a way that allows kids to understand how to build their own games or just create animations or interactive stories, using interlocking blocks to represent coding concepts.

Image source: ICTEDUMAG
There is also Scratch Junior, for kids from 5 to 7 years old, with blocks without words, just with symbols that the kids can associate with the coding concept.

It's fun and simple. Try it!

Google's Blocky

Scratch is a result of a collaboration between Google and MIT, and builds on Google’s Blockly technology. Blocky is a JavaScript library for building visual programming editors. It outputs syntactically correct code in the programming language of your choice.

Friday, July 26, 2019

Create 2D games in LUA and LÖVE framework


LUA is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.
The best of all, it's open-source and free.

With LUA, you mark blocks of code using the syntax do and end, instead of using braces. It has about 20 reserved keywords.

image source: Admin Magazine


With LUA and the LÖVE framework, you can create some cool 2D Games.
The LÖVE framework is very simple. Just check out these code snippets:

Drawing text

function love.draw()
love.graphics.print("Hello World!", 400, 300)
end


Drawing an image

function love.load()
whale = love.graphics.newImage("whale.png")
end

function love.draw()
love.graphics.draw(whale, 300, 200)
end


Playing a sound

function love.load()
sound = love.audio.newSource("music.ogg", "stream")
love.audio.play(sound)
end


More tutorials can be found in the LÖVE wiki.