mirror of
https://github.com/SleepingInsomniac/pixelfaucet
synced 2024-11-17 07:48:20 +01:00
Remove CrystalEdge dependency
This commit is contained in:
parent
40f0cf717b
commit
c8753f51a3
4 changed files with 0 additions and 15 deletions
|
@ -1,5 +1,3 @@
|
|||
require "crystaledge"
|
||||
|
||||
require "../src/game"
|
||||
require "../src/controller"
|
||||
require "../src/sprite"
|
||||
|
|
|
@ -11,6 +11,3 @@ license: MIT
|
|||
dependencies:
|
||||
sdl:
|
||||
github: ysbaddaden/sdl.cr
|
||||
crystaledge:
|
||||
github: unn4m3d/crystaledge
|
||||
version: 0.2.6
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require "crystaledge"
|
||||
require "./lib_sdl"
|
||||
require "./pixel"
|
||||
require "./point"
|
||||
|
@ -7,7 +6,6 @@ require "./game/*"
|
|||
|
||||
module PF
|
||||
abstract class Game
|
||||
include CrystalEdge
|
||||
FPS_INTERVAL = 1.0
|
||||
SHOW_FPS = true
|
||||
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
require "crystaledge/vector2"
|
||||
|
||||
module PF
|
||||
include CrystalEdge
|
||||
|
||||
struct Line(T)
|
||||
property p1 : Point(T), p2 : Point(T)
|
||||
|
||||
|
@ -67,10 +63,6 @@ module PF
|
|||
Math.sqrt((run.abs * 2) + (rise.abs * 2))
|
||||
end
|
||||
|
||||
def to_vector
|
||||
Vector2.new(run.to_f64, rise.to_f64)
|
||||
end
|
||||
|
||||
def /(n : (Float | Int))
|
||||
Line.new(@p1 / n, @p2 / n)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue