mirror of
https://github.com/SashLilac/cambridge.git
synced 2025-05-13 20:21:25 -05:00
Implemented challenges!!!!!
This commit is contained in:
26
tetris/challenges/Tetrs.lua
Normal file
26
tetris/challenges/Tetrs.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
require 'funcs'
|
||||
|
||||
local GameMode = require 'tetris.modes.gamemode'
|
||||
local Piece = require 'tetris.components.piece'
|
||||
local Grid = require 'tetris.components.grid'
|
||||
local Randomizer = require 'tetris.randomizers.randomizer'
|
||||
local Bag7Randomizer = require 'tetris.randomizers.bag7noI'
|
||||
local MarathonGF = require 'tetris.modes.marathon_gf'
|
||||
|
||||
local TetrsChallenge = MarathonGF:extend()
|
||||
|
||||
TetrsChallenge.name = "Tetrs"
|
||||
TetrsChallenge.hash = "Tetrs"
|
||||
TetrsChallenge.mode = "MarathonGF"
|
||||
TetrsChallenge.ruleset = "Standard"
|
||||
TetrsChallenge.tagline = "abababa"
|
||||
TetrsChallenge.description = "Complete a mode with a specific ruleset and idk they did some other stupid things too lol"
|
||||
|
||||
function TetrsChallenge:new()
|
||||
|
||||
TetrsChallenge.super:new()
|
||||
self.randomizer = Bag7Randomizer()
|
||||
self.next_queue_length = 6
|
||||
end
|
||||
|
||||
return TetrsChallenge
|
||||
23
tetris/challenges/challenge.lua
Normal file
23
tetris/challenges/challenge.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
-- currently you need to require and extend the gamemode you're making a challenge out of
|
||||
|
||||
require 'funcs'
|
||||
|
||||
local GameMode = require 'tetris.modes.gamemode'
|
||||
local Piece = require 'tetris.components.piece'
|
||||
local Grid = require 'tetris.components.grid'
|
||||
local Randomizer = require 'tetris.randomizers.randomizer'
|
||||
local BagRandomizer = require 'tetris.randomizers.bag'
|
||||
local MarathonGF = require 'tetris.modes.marathon_gf'
|
||||
|
||||
local Challenge = GameMode:extend()
|
||||
|
||||
Challenge.name = "A really cool challenge name"
|
||||
Challenge.hash = ""
|
||||
Challenge.mode = ""
|
||||
Challenge.ruleset = "Guideline SRS"
|
||||
Challenge.tagline = "Are you up for this challenge?"
|
||||
Challenge.description = "Complete a mode with a specific ruleset and idk they did some other stupid things too lol"
|
||||
|
||||
|
||||
|
||||
return Challenge
|
||||
Reference in New Issue
Block a user