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
function love.load() | |
Player = {} | |
Player.x = 0 | |
Player.y = 0 | |
Player.r = 20 | |
Player.speed = 300 | |
Auto = {} | |
Auto.x = 0 | |
Auto.y = 0 |
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
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 |
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
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 |
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
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 |
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
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 |
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
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 |
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
'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' |
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
'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' |
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
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: | |
# { |