Skip to content

Commit

Permalink
copy changes to blank cart
Browse files Browse the repository at this point in the history
  • Loading branch information
taco360 committed Mar 31, 2021
1 parent 70b0864 commit 7db9692
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions evercore_blank.p8
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version 32
__lua__
--~evercore~
--a celeste classic mod base
--v2.0.0 stable
--v2.0.1 stable

--original game by:
--maddy thorson + noel berry
Expand Down Expand Up @@ -584,6 +584,9 @@ lifeup={

fake_wall={
check_fruit=true,
init=function(this)
this.solid_obj=true
end,
update=function(this)
this.hitbox=rectangle(-1,-1,18,18)
local hit=this.player_here()
Expand Down Expand Up @@ -758,27 +761,30 @@ orb={
flag={
init=function(this)
this.x+=5
this.score=0
for lvl in all(got_fruit) do
for f in all(lvl) do
this.score+=1
end
end
end,
update=function(this)
if not this.show and this.player_here() then
--count berries
if not berry_count then
berry_count=0
for lvl in all(got_fruit) do
for f in all(lvl) do
berry_count+=1
end
end
end

sfx(55)
sfx_timer,this.show,time_ticking=30,true,false
end
end,
draw=function(this)
this.spr=118+frames/5%3
draw_obj_sprite(this)
spr(118+frames/5%3,this.x,this.y)
if this.show then
camera()
rectfill(32,2,96,31,0)
spr(26,55,6)
?"x"..this.score,64,9,7
?"x"..berry_count,64,9,7
draw_time(49,16)
?"deaths:"..deaths,48,24,7
camera(draw_x,draw_y)
Expand Down Expand Up @@ -994,6 +1000,13 @@ end

function next_level()
local next_lvl=lvl_id+1
if next_lvl==2 then
--old site music
music(20,500,7)
elseif next_lvl==3 then
--wind music
music(30,500,7)
end
load_level(next_lvl)
end

Expand Down

0 comments on commit 7db9692

Please sign in to comment.