Skip to content

Commit 24a17d5

Browse files
committed
Finishing touches for 1.04
1 parent 7719808 commit 24a17d5

File tree

7 files changed

+33
-9
lines changed

7 files changed

+33
-9
lines changed

NNCampaign.bas

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,6 +1741,7 @@ sub campaign_gameplay
17411741
Instructions = "Level progress deleted"
17421742
HighLevel = 1
17431743
kill(CampaignName+".dat")
1744+
kill(CampaignName+".flag")
17441745
elseif DebugCode = "NEXTRACK" then
17451746
Instructions = "Music player has changed tracks"
17461747
rotate_music
@@ -2940,6 +2941,11 @@ sub campaign_gameplay
29402941
if DQ = 0 then
29412942
TotalXP += int(.Score * .Difficulty * 2)
29422943
high_score_input(Player)
2944+
if FileExists(CampaignName+".flag") = 0 then
2945+
'Intentionally empty file; simply use it to record campaigns which have been truly won
2946+
open CampaignName+".flag" for output as #21
2947+
close #21
2948+
end if
29432949
end if
29442950
empty_hand(Player)
29452951

Nebunoid.bas

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,13 @@ do
263263
for Item as byte = 1*(MenuMode-2)*CampaignsPerPage to min((MenuMode-1)*CampaignsPerPage,OfficialCampaigns(12).SetSize)
264264
with CommunityCampaigns(Item)
265265
if .Namee <> "" then
266-
gfxstring(.Namee,40,351+Item*30,4,3,3,rgb(255,255,255))
266+
if .SetSize > 0 then
267+
Availability = rgb(255,255,255)
268+
else
269+
Availability = rgb(128,128,128)
270+
end if
271+
gfxstring(.Namee,40,351+Item*30,4,3,3,Availability)
272+
gfxstring("Size "+str(.SetSize),820,351+Item*30,4,3,3,Availability)
267273
end if
268274
end with
269275
next Item
@@ -329,7 +335,7 @@ do
329335
ReadID = YID + (MenuMode-2)*CampaignsPerPage
330336

331337
with CommunityCampaigns(ReadID)
332-
if MouseY >= 346+YID*30 AND MouseY <= 375+YID*30 AND .Namee <> "" AND ReadID <= OfficialCampaigns(12).SetSize then
338+
if ReadID <= OfficialCampaigns(12).SetSize AND MouseY >= 346+YID*30 AND MouseY <= 375+YID*30 AND .Namee <> "" AND .SetSize > 0 then
333339
draw_box(32,346+YID*30,991,375+YID*30)
334340
if ButtonCombo > 0 AND HoldClick = 0 then
335341
if YID = 12 then

Nebunoid.bi

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,14 +379,19 @@ sub read_campaigns(StarsOnly as ubyte = 0)
379379
open .Namee+".dat" for input as #19
380380
input #19, LevelsCleared
381381
close #19
382+
383+
.SetMastered = -abs(sgn(FileExists(.Namee+".flag")))
384+
if .SetMastered = 0 then
385+
'Campaign has not yet been cleared; exclude a star from this calculation
386+
LevelsCleared -= 1
387+
end if
382388
else
383389
LevelsCleared = 0
384390
end if
385391

386392
if OCID <= CampaignsPerPage then
387-
dim as integer NextLevel = LevelsCleared + 1
388-
.SetMastered = (FileExists(MasterDir+"/campaigns/"+.Folder+"/L"+str(NextLevel)+".txt") = 0)
389-
.SetSize = max(.SetSize,LevelsCleared)
393+
'In case a player died on a secret level, register it as having been seen
394+
.SetSize = max(.SetSize,LevelsCleared + 1 + .SetMastered)
390395
TotalStars += LevelsCleared
391396
end if
392397
end if
@@ -403,6 +408,13 @@ sub read_campaigns(StarsOnly as ubyte = 0)
403408
with CommunityCampaigns(CommunityFoldersFound)
404409
.Namee = CommunityFolder
405410
.Folder = "community/"+CommunityFolder
411+
412+
for LID as short = 1 to 999
413+
if FileExists(MasterDir+"/campaigns/"+.Folder+"/L"+str(LID)+".txt") = 0 then
414+
.SetSize = LID - 1
415+
exit for
416+
end if
417+
next LID
406418
end with
407419
end if
408420
CommunityFolder = Dir()

campaigns/official/geometry/L14.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ Brush 1 Color := &h804000FF
1414
Brush 1 Score Value := 10*
1515
Brush 1 Hit Degrade := 0
1616
Brush 1 Increase Speed:= FALSE
17-
Brush 2 Color := &h80C000FF
17+
Brush 2 Color := &h808000FF
1818
Brush 2 Score Value := 2
1919
Brush 2 Hit Degrade := 1
2020
Brush 2 Increase Speed:= FALSE
21-
Brush 3 Color := &h808000FF
21+
Brush 3 Color := &h80C000FF
2222
Brush 3 Score Value := 2
2323
Brush 3 Hit Degrade := 2
2424
Brush 3 Increase Speed:= FALSE

campaigns/official/intro/L10.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LEVEL DATA FILE - INTRODUCTION LEVEL 10
55
================================================================================
66

77
Level Name := Prismatic Beam
8-
Level Description := This is the final level of the campaign. Good luck!
8+
Level Description :=
99
Level Password := HDUFRLTV
1010
Level game number := 1
1111
Level time limit := 0

codes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Nebunoid Cheats
22

3-
Nebunoid comes with a collection of cheat codes, accessed via F11 while the game is running. Cheat codes which alter gameplay require acknowledgement that they will disqualify high scores and void experience earnings before they can be used.
3+
Nebunoid comes with a collection of cheat codes, accessed via F11 while the game is running. Cheat codes which alter gameplay require acknowledgement that they will disqualify high scores and void star earnings before they can be used.
44

55
* NexTrack: Skips to the next song in the playlist.
66
* Scratch: Stops the current song. Effective until turns change or overridden with the code above.

sfx/mus/CSY - Beatrave Tales.ogg

635 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)