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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Sticky Footer Test</title> | |
<!--[if lt IE 7]> | |
<style type="text/css"> | |
#wrapper { height:100%; } | |
</style> |
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 rect_colliding(x1,y1, w1, h1, x2, y2, w2, h2) | |
return x1 < x2 + w2 and x2 < x1 + w1 and y1 < y2 + h2 and y2 < y1 + h1 | |
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
local player = require 'player' | |
function love.load() | |
player.new(10, 10, 50, 50, 'Chandler Bing', 100) | |
end | |
function love.update(dt) | |
player.update(dt) | |
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
Enemies = {} | |
function Enemies.new(x, y, w, h, name, health) | |
local e = { x = x, y = y, w = w, h = h, name = name, health = health } | |
table.insert(Enemies, e) | |
return e | |
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
local math_abs = math.abs | |
function circlerect_colliding(cx, cy, cr, rx, ry, rw, rh) | |
circleDistance_x = math_abs(cx - rx) | |
circleDistance_y = math_abs(cy - ry) | |
if circleDistance_x > (rw / 2 + cr) then | |
return 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
function rectmouse_colliding(mouse_x, mouse_y, x, y, width, height) | |
return mouse_x > x and mouse_y < x + width and mouse_y > y and mouse_y < y + height | |
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
#!/bin/bash | |
echo "Sum: " | |
read sum | |
echo "Path: " | |
read path | |
sha1sum -c <<< "$sum $path" |
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
import time | |
import random | |
from pynput.keyboard import Key, Controller | |
keyboard = Controller() | |
def press(key): |
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
- **Input was laggy**: Sometimes, keyboard/mouse input drops out. It'll come back in about 10 seconds. Can confirm this is a bug with the game and is well documented on the Steam forums. It is not present if you are using a controller. I tested (albeit briefly) with my Steam Controller without issue. There are workarounds to fix this by modifying a configuration file, but I have not tried these so I'm unsure if they work. The issue seems to be reduced when running through Proton though, I read people saying it would happen very frequently. In my experience, it only happened about once every 20 minutes. Perhaps I just got lucky, but I played the game for quite a while and it wasn't as big of a deal as I read it was for some. Keep it in mind though, it's still present under Proton! | |
- **Controller(s) not detected**: Tested the game with a Steam Controller and it worked perfect - As long as you don't start the game from the launcher. If you do that, the game won't register any input from the controller. However, |
OlderNewer