forked from KristalTeam/Kristal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
369 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
// The ID of your mod. Should be unique!! | ||
"id": "telerune-1", | ||
// Displays on the main menu. | ||
"name": "TeleRune Chapter 1", | ||
// Displays underneath the name. Optional. | ||
"subtitle": "Cheeeeeeeeeeeeeeeeeeeeeeeeeeeese", | ||
|
||
// The version of your mod. | ||
"version": "v1.0.0", | ||
// What version of the engine your mod was made with. | ||
"engineVer": "v0.9.0-dev", | ||
|
||
// The Deltarune chapter you'd like to base your mod off of. | ||
// Do keep in mind that you can control chapter-specific features | ||
// one by one using the config below. | ||
"chapter": 2, | ||
|
||
// The map that you start in when first starting the mod. | ||
"map": "bedroom", | ||
|
||
// The party. The first character is the player. | ||
"party": ["telejaba"], | ||
|
||
// The inventory. Contains three darkburgers, a cell phone and a shadow crystal by default. | ||
"inventory": { | ||
"items": ["glowshard", "light/heisenburger_lw", "light/heisenburger_lw"], | ||
"key_items": ["cell_phone", "shadowcrystal"] | ||
}, | ||
|
||
// Should never be true, but just in case. Restarts the entire engine when leaving the mod. | ||
// If you need this, you're most likely doing something wrong. | ||
"hardReset": false, | ||
|
||
// Whether the mod is hidden from the mod selection. | ||
"hidden": false, | ||
|
||
// Whether the game window's title should be set to the mod's name, when the engine is run | ||
// with this mod as the target mod. | ||
"setWindowTitle": true, | ||
|
||
// Config values for the engine and any libraries you may have. | ||
// These config values can control chapter-specific features as well. | ||
"config": { | ||
"kristal": { | ||
"lightCurrency": "EBanana", | ||
"lightCurrencyShort": "E", | ||
"Currency": "Robux", | ||
"CurrencyShort": "R", | ||
"mercyBar": true, | ||
"money": 35, | ||
"lw_money": 14, | ||
// End of config | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
function Mod:init() | ||
print("Loaded "..self.info.name.."!") | ||
end | ||
|
||
function Mod:postInit() | ||
Game:setFlag("has_cell_phone", true) | ||
end | ||
|
||
function Mod:load(new_file) | ||
if new_file then | ||
Game.money = Kristal.getLibConfig("magical-glass", "debug") and 1000 or 0 | ||
Game.lw_money = Kristal.getLibConfig("magical-glass", "debug") and 1000 or 0 | ||
end | ||
Game.world:registerCall("Dimensional Box A", "cell.box_a", false, 5/30) | ||
Game.world:registerCall("Dimensional Box B", "cell.box_b", false, 5/30) | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"automappingRulesFile": "", | ||
"commands": [ | ||
], | ||
"extensionsPath": "extensions", | ||
"folders": [ | ||
"scripts/world" | ||
], | ||
"objectTypesFile": "", | ||
"propertyTypes": [ | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,220 @@ | ||
{ | ||
"Map/SizeTest": { | ||
"height": 4300, | ||
"width": 2 | ||
}, | ||
"activeFile": "scripts/world/maps/room1.tmx", | ||
"expandedProjectPaths": [ | ||
"scripts/world/tilesets", | ||
"scripts/world", | ||
"scripts/world/maps" | ||
], | ||
"fileStates": { | ||
"C:/Users/user/AppData/Roaming/kristal/mods/_testmod/scripts/world/maps/alley.tmx": { | ||
"scale": 0.6220238095238095, | ||
"selectedLayer": 0, | ||
"viewCenter": { | ||
"x": 421.20574162679424, | ||
"y": 240.34449760765546 | ||
} | ||
}, | ||
"C:/Users/user/AppData/Roaming/kristal/mods/_testmod/scripts/world/maps/alley3.tmx": { | ||
"scale": 1, | ||
"selectedLayer": 6, | ||
"viewCenter": { | ||
"x": 539, | ||
"y": 278.5 | ||
} | ||
}, | ||
"C:/Users/user/AppData/Roaming/kristal/mods/_testmod/scripts/world/maps/fountain.tmx": { | ||
"scale": 0.773359375, | ||
"selectedLayer": 0, | ||
"viewCenter": { | ||
"x": 320.03232649762606, | ||
"y": 241.15567229013038 | ||
} | ||
}, | ||
"C:/Users/user/AppData/Roaming/kristal/mods/_testmod/scripts/world/tilesets/alley.tsx": { | ||
"scaleInDock": 1 | ||
}, | ||
"C:/Users/user/AppData/Roaming/kristal/mods/_testmod/scripts/world/tilesets/alley_animated.tsx": { | ||
"scaleInDock": 1 | ||
}, | ||
"C:/Users/user/AppData/Roaming/kristal/mods/_testmod/scripts/world/tilesets/alley_buildings_glitch.tsx": { | ||
"scaleInDock": 1 | ||
}, | ||
"C:/Users/user/AppData/Roaming/kristal/mods/_testmod/scripts/world/tilesets/city_alley.tsx": { | ||
"scaleInDock": 1 | ||
}, | ||
"C:/Users/user/AppData/Roaming/kristal/mods/_testmod/scripts/world/tilesets/street_edges.tsx": { | ||
"scaleInDock": 1 | ||
}, | ||
"C:/Users/user/AppData/Roaming/kristal/mods/_testmod/scripts/world/tilesets/test_battleborder.tsx": { | ||
"scaleInDock": 1 | ||
}, | ||
"scripts/world/maps/1.tmx": { | ||
"expandedObjectLayers": [ | ||
5, | ||
4 | ||
], | ||
"scale": 0.25, | ||
"selectedLayer": 0, | ||
"viewCenter": { | ||
"x": 598, | ||
"y": 734 | ||
} | ||
}, | ||
"scripts/world/maps/bedroom.tmx": { | ||
"expandedObjectLayers": [ | ||
3, | ||
4, | ||
5 | ||
], | ||
"scale": 2, | ||
"selectedLayer": 3, | ||
"viewCenter": { | ||
"x": 370.5, | ||
"y": 273.25 | ||
} | ||
}, | ||
"scripts/world/maps/hall.tmx": { | ||
"expandedObjectLayers": [ | ||
3, | ||
4, | ||
5 | ||
], | ||
"scale": 1, | ||
"selectedLayer": 3, | ||
"viewCenter": { | ||
"x": 316, | ||
"y": -114.5 | ||
} | ||
}, | ||
"scripts/world/maps/kitchen.tmx": { | ||
"expandedObjectLayers": [ | ||
2, | ||
3, | ||
4 | ||
], | ||
"scale": 0.75, | ||
"selectedLayer": 3, | ||
"viewCenter": { | ||
"x": 444, | ||
"y": 209.99999999999994 | ||
} | ||
}, | ||
"scripts/world/maps/room1-light.tmx": { | ||
"expandedObjectLayers": [ | ||
3, | ||
4, | ||
5 | ||
], | ||
"scale": 0.75, | ||
"selectedLayer": 3, | ||
"viewCenter": { | ||
"x": 350.66666666666663, | ||
"y": 500.6666666666667 | ||
} | ||
}, | ||
"scripts/world/maps/room1.tmx": { | ||
"expandedObjectLayers": [ | ||
3, | ||
4, | ||
5 | ||
], | ||
"scale": 1, | ||
"selectedLayer": 3, | ||
"viewCenter": { | ||
"x": 176, | ||
"y": 263.5 | ||
} | ||
}, | ||
"scripts/world/maps/room2-light.tmx": { | ||
"expandedObjectLayers": [ | ||
5 | ||
], | ||
"scale": 0.6186875, | ||
"selectedLayer": 0, | ||
"viewCenter": { | ||
"x": 395.99959591877973, | ||
"y": 240.02424487321952 | ||
} | ||
}, | ||
"scripts/world/maps/room2.tmx": { | ||
"scale": 0.6186875, | ||
"selectedLayer": 1, | ||
"viewCenter": { | ||
"x": 399.232245681382, | ||
"y": 240.02424487321957 | ||
} | ||
}, | ||
"scripts/world/maps/schooldoor.tmx": { | ||
"expandedObjectLayers": [ | ||
2, | ||
3, | ||
4 | ||
], | ||
"scale": 2, | ||
"selectedLayer": 2, | ||
"viewCenter": { | ||
"x": 660.5, | ||
"y": 294.75 | ||
} | ||
}, | ||
"scripts/world/tilesets/bedroom.tsx": { | ||
"scaleInDock": 1.5, | ||
"scaleInEditor": 0.75 | ||
}, | ||
"scripts/world/tilesets/castle-light.tsx": { | ||
"scaleInDock": 1, | ||
"scaleInEditor": 1 | ||
}, | ||
"scripts/world/tilesets/castle.tsx": { | ||
"scaleInDock": 1, | ||
"scaleInEditor": 1 | ||
}, | ||
"scripts/world/tilesets/hall.tsx": { | ||
"scaleInDock": 0.33, | ||
"scaleInEditor": 0.5 | ||
}, | ||
"scripts/world/tilesets/schooltiles.tsx": { | ||
"scaleInDock": 0.5, | ||
"scaleInEditor": 1 | ||
} | ||
}, | ||
"last.exportedFilePath": "C:/Users/user/AppData/Roaming/kristal/mods/telerune/scripts/world/maps", | ||
"last.imagePath": "C:/Users/user/AppData/Roaming/kristal/mods/newmod_eee/assets/sprites/tilesets", | ||
"lastUsedTilesetExportFilter": "Lua файлы (*.lua)", | ||
"map.lastUsedExportFilter": "Lua файлы (*.lua)", | ||
"map.lastUsedFormat": "tmx", | ||
"map.tileHeight": 40, | ||
"map.tileWidth": 40, | ||
"map.width": 41, | ||
"openFiles": [ | ||
"scripts/world/maps/hall.tmx", | ||
"scripts/world/maps/room1-light.tmx", | ||
"scripts/world/maps/schooldoor.tmx", | ||
"scripts/world/maps/room1.tmx", | ||
"scripts/world/maps/kitchen.tmx" | ||
], | ||
"project": "newmod_eee.tiled-project", | ||
"recentFiles": [ | ||
"scripts/world/maps/hall.tmx", | ||
"scripts/world/maps/room1-light.tmx", | ||
"scripts/world/maps/schooldoor.tmx", | ||
"scripts/world/maps/kitchen.tmx", | ||
"scripts/world/maps/room1.tmx", | ||
"scripts/world/tilesets/bedroom.tsx", | ||
"scripts/world/maps/bedroom.tmx", | ||
"C:/Users/user/AppData/Roaming/kristal/mods/_testmod/scripts/world/maps/alley3.tmx", | ||
"C:/Users/user/AppData/Roaming/kristal/mods/_testmod/scripts/world/maps/alley.tmx", | ||
"scripts/world/maps/room2-light.tmx", | ||
"scripts/world/maps/room2.tmx", | ||
"scripts/world/maps/1.tmx" | ||
], | ||
"tileset.lastUsedFormat": "tsx", | ||
"tileset.tileSize": { | ||
"height": 40, | ||
"width": 40 | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
local preview = {} | ||
|
||
-- whether to fade out the default background | ||
preview.hide_background = false | ||
|
||
function preview:init(mod, button) | ||
-- code here gets called when the mods are loaded | ||
self.particles = {} | ||
self.particle_timer = 0 | ||
|
||
button:setFavoritedColor(181/255, 230/255, 29/255) | ||
end | ||
|
||
function preview:update() | ||
-- code here gets called every frame, before any draws | ||
-- to only update while the mod is selected, check self.selected (or self.fade) | ||
|
||
local to_remove = {} | ||
for _,particle in ipairs(self.particles) do | ||
particle.radius = particle.radius | ||
particle.radius = particle.radius - (DT * 4) | ||
particle.y = particle.y - particle.speed * (DTMULT * 2) | ||
|
||
if particle.radius <= 0 then | ||
table.insert(to_remove, particle) | ||
end | ||
end | ||
|
||
for _,particle in ipairs(to_remove) do | ||
Utils.removeFromTable(self.particles, particle) | ||
end | ||
|
||
self.particle_timer = self.particle_timer + DT | ||
if self.particle_timer >= 0.25 then | ||
self.particle_timer = 0 | ||
local radius = Utils.random() * 48 + 16 | ||
table.insert(self.particles, {radius = radius, x = Utils.random() * SCREEN_WIDTH, y = SCREEN_HEIGHT + radius, max_radius = radius, speed = Utils.random() * 0.5 + 0.5}) | ||
end | ||
end | ||
|
||
function preview:draw() | ||
-- code here gets drawn to the background every frame!! | ||
-- make sure to check self.fade or self.selected here | ||
|
||
if self.fade > 0 then | ||
love.graphics.setBlendMode("add") | ||
|
||
for _,particle in ipairs(self.particles) do | ||
local alpha = (particle.radius / particle.max_radius) * self.fade | ||
|
||
Draw.setColor(1, 1, 1, alpha) | ||
love.graphics.draw(Assets.getTexture("ui/menu/icon/fire"), particle.x, particle.y, 0, particle.radius, particle.radius) | ||
end | ||
|
||
love.graphics.setBlendMode("alpha") | ||
end | ||
end | ||
|
||
function preview:drawOverlay() | ||
-- code here gets drawn above the menu every frame | ||
-- so u can make cool effects | ||
-- if u want | ||
end | ||
|
||
return preview |
Binary file not shown.