Compare commits

..

10 Commits

Author SHA1 Message Date
Ishaan Bhardwaj
a063f10d33 Merge branch 'master' of https://github.com/MillaBasset/cambridge 2021-11-23 22:56:19 -05:00
Ishaan Bhardwaj
6e0b5e27c1 Rearranged the spawn SE actions 2021-11-23 22:56:11 -05:00
Joe Zeng
18e0e02c76 Removed a stupid exception to the mixing-tabs-and-spaces rule.
I apologize that it took me 2 years to think of this workaround.
2021-11-09 14:48:05 -05:00
Ishaan Bhardwaj
9381091110 Updated 3694 -> 3701 in other places 2021-11-03 17:34:34 -04:00
deb69fe28d Merge pull request #43 from Kirby703/patch-5
tap roll 3694 -> 3701 frames
2021-11-03 17:32:43 -04:00
Kirby703
3085b765e5 fix roll 3694 -> 3701 frames 2021-11-03 17:31:04 -04:00
hailey
412405c1a1 celebrate!!! 2021-10-22 15:04:28 +10:00
Ishaan Bhardwaj
7495c4ad04 Revert "Separate in-game bindings from menu bindings"
This reverts commit 0fce4b632f.
This commit caused issue #41. Will resolve ASAP.
2021-10-21 20:52:42 -04:00
Ishaan Bhardwaj
0fce4b632f Separate in-game bindings from menu bindings
Also preemptive version bump
2021-10-19 18:35:32 -04:00
Ishaan Bhardwaj
aa56248e34 Add an FPS counter 2021-10-18 23:27:54 -04:00
6 changed files with 16 additions and 15 deletions

View File

@@ -57,13 +57,13 @@ Coding conventions
Use tabs to indent, spaces to align. Use tabs to indent, spaces to align.
* Specifically, spaces should not appear at the beginning of a line, and tabs should not appear _except_ at the beginning of a line. * Specifically, spaces should not appear at the beginning of a line, and tabs should not appear _except_ at the beginning of a line.
* The sole exception is in a multiline `if` statement; the initial `if` should have four spaces before it to align it with an `elseif` on the next line. For example: * If you're aligning multiline if-statements, the initial "if", "elseif" or "else" should be flush left with the indentation level, with spaces padding the gap to the next word as necessary. For example:
```lua ```lua
---- 4 spaces if self.level < 900 then return 12
if self.level < 900 then return 12 elseif self.level < 1200 then return 8
elseif self.level < 1200 then return 8 else return 6
else return 6 end end
``` ```
Comments at the end of lines of code must be one line long. Multi-line comments must appear in their own block. Comments at the end of lines of code must be one line long. Multi-line comments must appear in their own block.

View File

@@ -78,7 +78,10 @@ function love.draw()
if config.gamesettings.display_gamemode == 1 or scene.title == "Title" then if config.gamesettings.display_gamemode == 1 or scene.title == "Title" then
love.graphics.setFont(font_3x5_2) love.graphics.setFont(font_3x5_2)
love.graphics.setColor(1, 1, 1, 1) love.graphics.setColor(1, 1, 1, 1)
love.graphics.printf(version, 0, 460, 635, "right") love.graphics.printf(
string.format("%.2f", 1 / love.timer.getAverageDelta()) ..
"fps - " .. version, 0, 460, 635, "right"
)
end end
love.graphics.pop() love.graphics.pop()

BIN
res/img/rpc/1year.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

View File

@@ -44,8 +44,8 @@ function TitleScene:new()
DiscordRPC:update({ DiscordRPC:update({
details = "In menus", details = "In menus",
state = mainmenuidle[math.random(#mainmenuidle)], state = mainmenuidle[math.random(#mainmenuidle)],
largeImageKey = "icon2", largeImageKey = "1year",
largeImageText = version largeImageText = version.." | Thanks for 1 year!"
}) })
end end

View File

@@ -530,6 +530,8 @@ function GameMode:onEnterOrHold(inputs, ruleset)
if not self.grid:canPlacePiece(self.piece) then if not self.grid:canPlacePiece(self.piece) then
self.game_over = true self.game_over = true
return return
elseif self.piece:isDropBlocked(self.grid) then
playSE("bottom")
end end
ruleset:dropPiece( ruleset:dropPiece(
inputs, self.piece, self.grid, self:getGravity(), inputs, self.piece, self.grid, self:getGravity(),
@@ -578,10 +580,6 @@ function GameMode:initializeNextPiece(
self.piece_soft_locked = false self.piece_soft_locked = false
self.buffer_hard_drop = false self.buffer_hard_drop = false
self.buffer_soft_drop = false self.buffer_soft_drop = false
if self.piece:isDropBlocked(self.grid) and
self.grid:canPlacePiece(self.piece) then
playSE("bottom")
end
if generate_next_piece == nil then if generate_next_piece == nil then
table.remove(self.next_queue, 1) table.remove(self.next_queue, 1)
table.insert(self.next_queue, self:getNextPiece(ruleset)) table.insert(self.next_queue, self:getNextPiece(ruleset))

View File

@@ -112,7 +112,7 @@ function MarathonA2Game:advanceOneFrame()
if self.clear then if self.clear then
self.roll_frames = self.roll_frames + 1 self.roll_frames = self.roll_frames + 1
if self.roll_frames < 0 then return false end if self.roll_frames < 0 then return false end
if self.roll_frames > 3694 then if self.roll_frames > 3701 then
self.completed = true self.completed = true
if self.grade == 32 then if self.grade == 32 then
self.grade = 33 self.grade = 33
@@ -365,10 +365,10 @@ function MarathonA2Game:drawScoringInfo()
love.graphics.setFont(font_3x5_3) love.graphics.setFont(font_3x5_3)
if self.clear then if self.clear then
if self:qualifiesForMRoll() then if self:qualifiesForMRoll() then
if self.lines >= 32 and self.roll_frames > 3694 then love.graphics.setColor(1, 0.5, 0, 1) if self.lines >= 32 and self.roll_frames > 3701 then love.graphics.setColor(1, 0.5, 0, 1)
else love.graphics.setColor(0, 1, 0, 1) end else love.graphics.setColor(0, 1, 0, 1) end
else else
if self.roll_frames > 3694 then love.graphics.setColor(1, 0.5, 0, 1) if self.roll_frames > 3701 then love.graphics.setColor(1, 0.5, 0, 1)
else love.graphics.setColor(0, 1, 0, 1) end else love.graphics.setColor(0, 1, 0, 1) end
end end
end end