From 795cb85e284d6adc83d8a8770e1e2406322f4034 Mon Sep 17 00:00:00 2001 From: realtradam Date: Sat, 12 Jun 2021 03:15:59 -0400 Subject: file cleanup --- helpers/00_tileset.rb | 56 ------------------------------------- helpers/01_component.rb | 74 ------------------------------------------------- 2 files changed, 130 deletions(-) delete mode 100644 helpers/00_tileset.rb delete mode 100644 helpers/01_component.rb (limited to 'helpers') diff --git a/helpers/00_tileset.rb b/helpers/00_tileset.rb deleted file mode 100644 index c4293cb..0000000 --- a/helpers/00_tileset.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Coverage Ignored because the functionality of this -# code will not be used for the core of FelFlame. -# It will most likely be released as a seperate package -# The code will most likely be kept here until it -# eventually will be migrated to a new git repo -# :nocov: -class Helper - # Returns a loaded map and its dependecies(images,json) - # If any are missing then it will load them from files - - @json_data = {} - class < 1 - return {} - end - - json_tiles = self.get_json_tiles(json_name) - raise Exception.new "Error, json file not a tileset" unless json_tiles['type'] == 'tileset' - return tile_index - json_tiles['tilecount'] if tile_index > json_tiles['tilecount'] - source_height_tiles = (tile_index.to_i / json_tiles['columns'].to_i).to_i# * json_tiles['tileheight'] - { w: json_tiles['tilewidth'], - h: json_tiles['tileheight'], - path: json_tiles['image'].split('mygame/').last.delete('\\'), - source_x: [((tile_index % json_tiles['columns']) - 1) * json_tiles['tilewidth'], 0].max, - # source_y gets special treatment - source_y: [json_tiles['imageheight'] - ((source_height_tiles + 1) * json_tiles['tileheight']), 0].max, - source_w: json_tiles['tilewidth'], - source_h: json_tiles['tileheight'] } - end - end -end -# :nocov: diff --git a/helpers/01_component.rb b/helpers/01_component.rb deleted file mode 100644 index 2065d0c..0000000 --- a/helpers/01_component.rb +++ /dev/null @@ -1,74 +0,0 @@ -class FelFlame - class Helper - -=begin - # Unused: - class Level < FelFlame::Helper::ComponentManager - class <