Skip to content

Instantly share code, notes, and snippets.

View luizcarlos1405's full-sized avatar

Luiz Carlos L. G. de Oliveira luizcarlos1405

  • MS, BR
View GitHub Profile
@luizcarlos1405
luizcarlos1405 / SpriteTrail.gd
Last active January 8, 2020 00:34
Creates a trail of copies of the parent node's texture. The parent can be a Sprite or an Animated Sprite
tool
extends Node2D
class_name SpriteTrail
# Add a trail of copies of the parent's texture.
#
# Works as child of Sprite or AnimatedSprite.
# The `_trail_copies` variable has information about the copies as dictionaries
# in the following format:
# {
@luizcarlos1405
luizcarlos1405 / JILK.cson
Created August 26, 2016 19:07
JILK shortcut system
'body atom-workspace atom-text-editor:not([mini])':
# Move
'ctrl-alt-j': 'core:move-left'
'ctrl-alt-i': 'core:move-up'
'ctrl-alt-l': 'core:move-right'
'ctrl-alt-k': 'core:move-down'
'ctrl-alt-u': 'editor:move-to-beginning-of-word'
'ctrl-alt-o': 'editor:move-to-end-of-word'
@luizcarlos1405
luizcarlos1405 / JILK.cson
Created August 26, 2016 19:07
JILK shortcut system
'body atom-workspace atom-text-editor:not([mini])':
# Move
'ctrl-alt-j': 'core:move-left'
'ctrl-alt-i': 'core:move-up'
'ctrl-alt-l': 'core:move-right'
'ctrl-alt-k': 'core:move-down'
'ctrl-alt-u': 'editor:move-to-beginning-of-word'
'ctrl-alt-o': 'editor:move-to-end-of-word'
@luizcarlos1405
luizcarlos1405 / bullet.lua
Created August 22, 2016 21:10
LÖVE 06 - VIdeoaula no link: https://youtu.be/pPiAtW-iDJ4
Bullet = {}
Bullet.img = love.graphics.newImage("bullet.png")
function Bullet:create()
local bullet = {}
bullet.w = Bullet.img:getWidth()
bullet.h = Bullet.img:getHeight()
bullet.x = Player.x
bullet.y = Player.y
bullet.ox = bullet.w / 2
@luizcarlos1405
luizcarlos1405 / bullet.lua
Created August 14, 2016 18:50
Código finaln da aula 05. link: https://youtu.be/YTI9hrMboU0
Bullet = {}
Bullet.img = love.graphics.newImage("bullet.png")
function Bullet:create()
local bullet = {}
bullet.img = Bullet.img
bullet.w = bullet.img:getWidth()
bullet.h = bullet.img:getHeight()
bullet.x = Player.x
bullet.y = Player.y
Bullet = {}
Bullet.img = love.graphics.newImage("bullet.png")
function Bullet:create()
local bullet = {}
bullet.img = Bullet.img
bullet.w = bullet.img:getWidth()
bullet.h = bullet.img:getHeight()
bullet.x = Player.x
bullet.y = Player.y
@luizcarlos1405
luizcarlos1405 / conf.lua
Last active April 11, 2016 17:53
LÖVE 03 - Videoaula em: https://youtu.be/CwXHz7GQoFQ
function love.conf(t)
t.version = "0.10.1"
t.window.title = "Palco:dev()"
t.window.width = 1000
t.window.height = 600
t.window.borderless = true
t.window.fullscreen = false
end
@luizcarlos1405
luizcarlos1405 / main.lua
Last active April 4, 2016 20:58
LÖVE 02 EXTRA - Videoaula em: https://youtu.be/1L3D-P8tZ0Q
function love.load()
Player = {}
Player.x = 0
Player.y = 0
Player.r = 20
Player.speed = 300
Player.xvel = Player.speed * math.cos(math.pi / 4)
Player.yvel = Player.speed * math.sin(math.pi / 4)
end
@luizcarlos1405
luizcarlos1405 / main.lua
Last active April 4, 2016 20:51
LÖVE 02 - Videoaula em: https://youtu.be/G4BkolU7vUM
function love.load()
Player = {}
Player.x = 0
Player.y = 0
Player.r = 20
Player.speed = 300
Auto = {}
Auto.x = 0
Auto.y = 0