Skip to content

Commit

Permalink
stage3: restructure into a folder-based layout
Browse files Browse the repository at this point in the history
It's an absolute mess, but should make integrating stage3_revamp easier…
  • Loading branch information
Akaricchi committed Jul 10, 2021
1 parent 4c203ed commit ad9228e
Show file tree
Hide file tree
Showing 26 changed files with 2,357 additions and 2,035 deletions.
2 changes: 1 addition & 1 deletion src/stageinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

#include "stages/stage1/stage1.h"
#include "stages/stage2/stage2.h"
#include "stages/stage3/stage3.h"
#include "stages/stage4/stage4.h"
#include "stages/stage5/stage5.h"
#include "stages/stage6/stage6.h"
#include "stages/stage3.h"
#include "stages/extra.h"

#ifdef DEBUG
Expand Down
3 changes: 1 addition & 2 deletions src/stages/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ stages_src = []
stages = [
'stage1',
'stage2',
'stage3',
'stage4',
'stage5',
'stage6',
Expand All @@ -18,8 +19,6 @@ endforeach
# them into the "stages" array

stages_src += files(
'stage3.c',
'stage3_events.c',
'extra.c',
)

Expand Down
333 changes: 0 additions & 333 deletions src/stages/stage3.c

This file was deleted.

32 changes: 32 additions & 0 deletions src/stages/stage3/background_anim.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* This software is licensed under the terms of the MIT License.
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, Lukas Weber <[email protected]>.
* Copyright (c) 2012-2019, Andrei Alexeyev <[email protected]>.
*/

#include "taisei.h"

#include "background_anim.h"
#include "draw.h"

#include "global.h"
#include "stageutils.h"

// TODO

TASK(animate_bg, NO_ARGS) {
for(;;) {
YIELD;
stage3d_update(&stage_3d_context);
}
}

void stage3_bg_init_fullstage(void) {
INVOKE_TASK(animate_bg);
}

void stage3_bg_init_spellpractice(void) {
INVOKE_TASK(animate_bg);
}
Loading

0 comments on commit ad9228e

Please sign in to comment.