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
-- draw a samurai on the screen at _x and _y positions | |
-- _color holds a two element array for the palette swap | |
-- _head holds the head sprite of the samurai | |
-- _flip indicates two horizontally flip the whole thing | |
-- for opponent drawing | |
function draw_samurai(_x, _y, _color, _stance, _head, _flip) | |
-- offset for heads, because the base sprite is not symetrical. | |
local headOffset = {3,1} | |
if _flip then headOffset = {5,1} 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
Candidate List for my review Series: PicoShorts: https://github.com/Achie72/kofi-articles?tab=readme-ov-file#picoshorts | |
Golf Escape by Davbo: https://www.lexaloffle.com/bbs/?pid=139431#p | |
jetpack 1.2 by strirky: https://www.lexaloffle.com/bbs/?pid=139451#p | |
Rover defence by ggaughan: https://www.lexaloffle.com/bbs/?pid=139475#p | |
Cave Diving Gone Bad by taxicomics: https://www.lexaloffle.com/bbs/?pid=139584#p | |
Bounce Game by SaKo: https://www.lexaloffle.com/bbs/?pid=139631#p |
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
-- Bresenham's line + A* | |
-- Made for Crumbling Crypt: https://ko-fi.com/Post/Crumbling-Crypt-1--A-minimalist-Roguelike-B0B1SPL7E | |
-- calc manthattan distance, which is the grid based | |
-- tile distance between two points | |
function heuristic(a, b) | |
return (abs(a.x - b.x)+ abs(a.y-b.y)) | |
end | |
-- Insertion Sort by @impbox |
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
-- Made for Crumbling Crypt: https://ko-fi.com/Post/Crumbling-Crypt-1--A-minimalist-Roguelike-B0B1SPL7E | |
-- Original version for my game called Kumatori Panic!: https://ko-fi.com/post/Kumatori-Panic-4--Eggs-Better-Movement-Lore-Ac-N4N0N6K7W | |
function build_room(corner_sprite_id, corner, _x, _y) | |
--printh("building room at: ".._x.." ".._y) | |
local idString = "" | |
-- indicate where the given sprite starts on | |
-- the sprite sheet. | |
local xStart = 0 | |
local yStart = 0 |
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
-- General walker for dungeon template generation | |
-- Made for Crumbling Crypt: https://ko-fi.com/Post/Crumbling-Crypt-1--A-minimalist-Roguelike-B0B1SPL7E | |
function generate_dungeon() | |
-- random walker on an 8x8 grid on map | |
-- set rooms to 1 if there should be something | |
-- move randomly on if we are good | |
local roomNumber = 4+flr(player.level/2) | |
local xStart,yStart = flr(rnd(8)),flr(rnd(8)) | |
mset(xStart,yStart,1) |
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
-- we start with the scene variable in init | |
scene = "menu" | |
-- then in update | |
function _update() | |
-- increase the tick | |
t+=1 | |
if t > 29 then | |
t = 0 | |
seconds += 1 |
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
-- color table to define which direction should have | |
-- which color during the printing | |
local colorTable = { | |
⬅️ = 9, | |
⬇️ = 10, | |
⬆️ = 11, | |
➡️ = 12 | |
} | |
-- iterate through all elemenets in the fruitCollection |
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
-- function to build directional combo | |
-- with lenght of the parameter | |
-- 11 fruit types | |
function create_combo(_length) | |
-- combo options | |
local comboTable = {"⬅️","⬇️","⬆️","➡️"} | |
-- combo string in build | |
local combo="" | |
-- create string equal to combo lenght | |
for i=1,_length do |
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
Penguin Rush by m4ttbit - Race the iceberg to you den! Gather fish and escape the ever approaching glacier! - https://www.lexaloffle.com/bbs/?pid=133805#p | |
Another Tetris by Luife - Another Tetris clone - https://www.lexaloffle.com/bbs/?pid=133813#p | |
Gun Potato by RageBarbaari - Score Chaser Shmup where you shoot food - https://www.lexaloffle.com/bbs/?pid=133822#p | |
Vacay Volley by ejreyes - Help Ollie to juggle the volleyball as long as you can - https://www.lexaloffle.com/bbs/?pid=133840#p | |
Star Addict by Davi_Dash - Use your time to gather stars, dash and slide - https://www.lexaloffle.com/bbs/?pid=133841#p | |
DriftBomb by jnjbaggott1 - Asteroid like score chaser - https://www.lexaloffle.com/bbs/?tid=53970 | |
Sine Surf by RoverKibb - Surf along a sine wave in this score chaser dodge'em up - https://www.lexaloffle.com/bbs/?pid=133936#p | |
Labyrint Runner by Witcherchan - An Impossible Game like maze runner - https://www.lexaloffle.com/bbs/?pid=133946#p | |
Pling Plong Galaxy! by EinarBrown - Circular Pong+Breakout mashup - |
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
function draw_box(x, y, w, h, style) | |
-- chip | |
if style == 0 then | |
-- the top-corner decal sprite | |
spr(240, x-1, y) | |
-- top | |
line(x, y, x+w-4, y, 7) | |
--left | |
line(x, y, x, y+h, 7) | |
-- bot |