Remove CrystalEdge dependency

This commit is contained in:
Alex Clink 2022-01-03 00:17:23 -05:00
parent 40f0cf717b
commit c8753f51a3
4 changed files with 0 additions and 15 deletions

View file

@ -1,5 +1,3 @@
require "crystaledge"
require "../src/game"
require "../src/controller"
require "../src/sprite"

View file

@ -11,6 +11,3 @@ license: MIT
dependencies:
sdl:
github: ysbaddaden/sdl.cr
crystaledge:
github: unn4m3d/crystaledge
version: 0.2.6

View file

@ -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

View file

@ -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