Skip to content

Commit

Permalink
MegaAtoms V0.4
Browse files Browse the repository at this point in the history
MegaAtoms V0.4

Pause Screen added to Classic and Challenge
High score table added to Challenge
High scores saved to sram
Progress bars added to Classic
New artwork for professors and robots for Classic mode
Tutorial added to Challenge mode
  • Loading branch information
thegouldfish committed Nov 6, 2018
1 parent 3ed4109 commit 04f21de
Show file tree
Hide file tree
Showing 79 changed files with 1,419 additions and 682 deletions.
1 change: 0 additions & 1 deletion Atoms/inc/AtomsGameState.h
Expand Up @@ -23,5 +23,4 @@ extern SimpleState AtomsGameState;
extern int m_PlayerSetup[7];
extern int m_WinningPlayer;


#endif
13 changes: 13 additions & 0 deletions Atoms/inc/Audio.h
@@ -0,0 +1,13 @@
#ifndef _AUDIO_H_
#define _AUDIO_H_


#define SND_START 66
#define SND_MOVE 67
#define SND_GROW 68
#define SND_EXPLODE 69

#define SND_MENU_FORWARD 70
#define SND_MENU_BACKWARD 71

#endif
18 changes: 18 additions & 0 deletions Atoms/inc/ChallengeModeHighScoreState.h
@@ -0,0 +1,18 @@
#ifndef CHALLENGE_MOD_HIGHSCORE_STATE
#define CHALLENGE_MOD_HIGHSCORE_STATE

#include "SimpleState.h"




void ChallengeModeHighScoreStateStart();
void ChallengeModeHighScoreStateUpdate();
void ChallengeModeHighScoreStateEnd();


extern SimpleState ChallengeModeHighScoreState;



#endif
18 changes: 18 additions & 0 deletions Atoms/inc/ChallengeModeSetNameState.h
@@ -0,0 +1,18 @@
#ifndef CHALLENGE_MODE_SET_NAME_STATE
#define CHALLENGE_MODE_SET_NAME_STATE

#include "SimpleState.h"




void ChallengeModeSetNameStateStart();
void ChallengeModeSetNameStateUpdate();
void ChallengeModeSetNameStateEnd();


extern SimpleState ChallengeModeSetNameState;



#endif
18 changes: 18 additions & 0 deletions Atoms/inc/ChallengeModeTutorialState.h
@@ -0,0 +1,18 @@
#ifndef CHALLENGE_MODE_TUTORIAL_STATE
#define CHALLENGE_MODE_TUTORIAL_STATE

#include "SimpleState.h"




void ChallengeModeTutorialStateStart();
void ChallengeModeTutorialStateUpdate();
void ChallengeModeTutorialStateEnd();


extern SimpleState ChallengeModeTutorialState;



#endif
9 changes: 9 additions & 0 deletions Atoms/inc/GamePlay.h
Expand Up @@ -70,4 +70,13 @@ void DrawAtom(int player, int x, int y, int size);
void DrawFullGrid();
void DrawGameGrid();


// quick helper to half the value of the passed in colour
#define FADE_COLOUR(x) (((VDPPALETTE_REDMASK & x) / 2) | ((VDPPALETTE_BLUEMASK & x) / 2) | ((VDPPALETTE_GREENMASK & x) / 2 ))
extern u16 m_RegularPalette[];
extern u16 m_FadedPalette[];

void SetupFadedPalette();


#endif
6 changes: 2 additions & 4 deletions Atoms/inc/PadHelper.h
Expand Up @@ -24,13 +24,11 @@ typedef struct
u8 Left;
u8 Right;


u8 X;
u8 Y;

u16 CurrentState;
u16 PrevState;



}Pad;


Expand Down
17 changes: 0 additions & 17 deletions Atoms/inc/Prototype1.h

This file was deleted.

12 changes: 12 additions & 0 deletions Atoms/inc/TextHelpers.h
@@ -0,0 +1,12 @@
#ifndef _TEXT_HELPERS_H_
#define _TEXT_HELPERS_H_

#include <genesis.h>

void SetNumbers(int number, Sprite* sprites[], const int size);
void SetNumberChars(u32 number, char* charArray);
void SetNumberCharsEx(u32 number, char* charArray, int size, char defaultChar);

void DrawTextToScreen(char* buffer, int size, int x, int y, u16 tileSetStart);

#endif
14 changes: 13 additions & 1 deletion Atoms/inc/atoms.h
Expand Up @@ -9,6 +9,18 @@

extern Pad m_Pad;

void SetNumbers(int number, Sprite* sprites[], const int size);



#define HIGHSCORE_TOTAL 5
#define HIGHSCORE_CHARS 4
extern u32 m_HighScoreAmounts[HIGHSCORE_TOTAL];
extern char m_HighScoreNames[HIGHSCORE_TOTAL][HIGHSCORE_CHARS];
void DefaultScores();

void SaveScores();
u8 LoadScores();

int random_int(int min, int max);

#endif // !_ATOMS_H_
Binary file modified Atoms/res/Sprite/Buttons.bmp
Binary file not shown.
Binary file removed Atoms/res/Sprite/Cursor.png
Binary file not shown.
Binary file added Atoms/res/Sprite/GameOverText.bmp
Binary file not shown.
Binary file added Atoms/res/Sprite/HighScoreText.bmp
Binary file not shown.
Binary file added Atoms/res/Sprite/HighScoresText.bmp
Binary file not shown.
Binary file added Atoms/res/Sprite/LevelText.bmp
Binary file not shown.
Binary file modified Atoms/res/Sprite/Numbers.bmp
Binary file not shown.
Binary file modified Atoms/res/Sprite/ProfPalette.bmp
Binary file not shown.
Binary file added Atoms/res/Sprite/ScoreText.bmp
Binary file not shown.
Binary file added Atoms/res/Sprite/TextCursor.bmp
Binary file not shown.
Binary file added Atoms/res/Sprite/ladyprofs.bmp
Binary file not shown.
Binary file modified Atoms/res/Sprite/messages.bmp
Binary file not shown.
Binary file removed Atoms/res/Sprite/players2.bmp
Binary file not shown.
Binary file added Atoms/res/Sprite/players3.bmp
Binary file not shown.
Binary file modified Atoms/res/Sprite/scalers.bmp
Binary file not shown.
Binary file added Atoms/res/Sprite/stands.bmp
Binary file not shown.
9 changes: 6 additions & 3 deletions Atoms/res/gfx.h
Expand Up @@ -3,7 +3,8 @@

extern const Image title_front;
extern const Image title_anim;
extern const Image gouldfish;
extern const Image logo_bg_1;
extern const Image logo_bg_2;
extern const Image atoms;
extern const Image playerselect_background;
extern const Image playerselect_stands_background;
Expand All @@ -24,8 +25,10 @@ extern const Image winner_ai6;
extern const Image tutorial_backing;
extern const Image tutorial_backing_2;
extern const Image GameSelect;
extern const Image prototype1_backing;
extern const Image Prototype2_Background;
extern const Image GameOver_background;
extern const Image GameOver_Background;
extern const Image HighScoreTable_Background;
extern const Image NewHighScore_Background;
extern const Image med_font;

#endif // _RES_GFX_H_
19 changes: 13 additions & 6 deletions Atoms/res/gfx.res
Expand Up @@ -3,7 +3,10 @@
// Title screen
IMAGE title_front "gfx/TitleFront.bmp" BEST
IMAGE title_anim "gfx/title_anim_more.bmp" BEST
IMAGE gouldfish "gfx/gouldfish.bmp" BEST


IMAGE logo_bg_1 "gfx/logo_bg_1.bmp" BEST
IMAGE logo_bg_2 "gfx/logo_bg_2.bmp" BEST


// General
Expand Down Expand Up @@ -51,14 +54,18 @@ IMAGE GameSelect "gfx/GameSelect2.bmp" BEST



// Prototype 1
// Prototype 2
// ---------------------------
IMAGE Prototype2_Background "gfx/Prototype2Background.bmp" NONE

IMAGE prototype1_backing "gfx/Prototype1Background.bmp" BEST

// Challegne Mode Screens
// ---------------------------
IMAGE GameOver_Background "gfx/GameOver.bmp" BEST
IMAGE HighScoreTable_Background "gfx/HighScoreTable.bmp" BEST
IMAGE NewHighScore_Background "gfx/HighScore.bmp" BEST


// Prototype 2
// Fonts
// ---------------------------
IMAGE Prototype2_Background "gfx/Prototype2Background.bmp" NONE
IMAGE GameOver_background "gfx/GameOver.bmp" NONE
IMAGE med_font "gfx/MedFont.bmp" NONE
Binary file modified Atoms/res/gfx/GameOver.bmp
Binary file not shown.
Binary file added Atoms/res/gfx/HighScore.bmp
Binary file not shown.
Binary file added Atoms/res/gfx/HighScoreTable.bmp
Binary file not shown.
Binary file added Atoms/res/gfx/MedFont.bmp
Binary file not shown.
Binary file removed Atoms/res/gfx/Prototype1Background.bmp
Binary file not shown.
Binary file modified Atoms/res/gfx/Prototype2Background.bmp
Binary file not shown.
Binary file removed Atoms/res/gfx/TitleBack.bmp
Binary file not shown.
Binary file modified Atoms/res/gfx/Winner/Image10.bmp
Binary file not shown.
Binary file modified Atoms/res/gfx/Winner/Image11.bmp
Binary file not shown.
Binary file modified Atoms/res/gfx/Winner/Image12.bmp
Binary file not shown.
Binary file modified Atoms/res/gfx/Winner/Image2.bmp
Binary file not shown.
Binary file modified Atoms/res/gfx/Winner/Image3.bmp
Binary file not shown.
Binary file modified Atoms/res/gfx/Winner/Image7.bmp
Binary file not shown.
Binary file modified Atoms/res/gfx/Winner/Image8.bmp
Binary file not shown.
Binary file modified Atoms/res/gfx/Winner/Image9.bmp
Binary file not shown.
Binary file removed Atoms/res/gfx/atoms_24.bmp
Binary file not shown.
Binary file added Atoms/res/gfx/background_base.bmp
Binary file not shown.
Binary file added Atoms/res/gfx/bigFont.bmp
Binary file not shown.
Binary file modified Atoms/res/gfx/ingame_Backing.bmp
Binary file not shown.
Binary file added Atoms/res/gfx/ingame_Backing_2.bmp
Binary file not shown.
Binary file not shown.
Binary file added Atoms/res/gfx/logo_bg_2.bmp
Binary file not shown.
Binary file added Atoms/res/gfx/title.bmp
Binary file not shown.
Binary file added Atoms/res/sfx/SPACLORE.wav
Binary file not shown.
Binary file added Atoms/res/sfx/UFO.vgm
Binary file not shown.
Binary file added Atoms/res/sfx/can.vgm
Binary file not shown.
Binary file added Atoms/res/sfx/can2.xgm
Binary file not shown.
Binary file added Atoms/res/sfx/sonic1.vgm
Binary file not shown.
Binary file added Atoms/res/sfx/techo.vgm
Binary file not shown.
Binary file added Atoms/res/sfx/techo2_old.vgm
Binary file not shown.
Binary file added Atoms/res/sfx/transision.wav
Binary file not shown.
Binary file added Atoms/res/sfx/ufo2.vgm
Binary file not shown.
1 change: 1 addition & 0 deletions Atoms/res/sprite.h
Expand Up @@ -11,5 +11,6 @@ extern const SpriteDefinition NumbersBig;
extern const SpriteDefinition AtomsSample;
extern const SpriteDefinition Scalers;
extern const SpriteDefinition messages;
extern const SpriteDefinition TextCursor_Sprite;

#endif // _RES_SPRITE_H_
9 changes: 7 additions & 2 deletions Atoms/res/sprite.res
@@ -1,7 +1,10 @@
// SPRITE ring_sprite "sprite/ring.png" 2 2 FAST 5


SPRITE Cursor "sprite/Cursor.bmp" 4 4 BEST 10
SPRITE playerselect_cursor "sprite/menuCursor.bmp" 6 10 BEST 0
SPRITE profs "sprite/players2.bmp" 6 6 NONE 0

SPRITE profs "sprite/players3.bmp" 6 6 NONE 0
SPRITE robo_pal "sprite/ProfPalette.bmp" 1 1 BEST 0
SPRITE controller "sprite/Buttons.bmp" 3 3 BEST 0

Expand All @@ -12,4 +15,6 @@ SPRITE NumbersBig "sprite/NumbersBig.bmp" 3 5 BEST 0
SPRITE AtomsSample "sprite/AtomSample.bmp" 3 3 BEST 0
SPRITE Scalers "sprite/scalers.bmp" 1 1 BEST 0

SPRITE messages "sprite/messages.bmp" 23 5 BEST 0
SPRITE messages "sprite/messages.bmp" 23 5 BEST 0

SPRITE TextCursor_Sprite "sprite/TextCursor.bmp" 2 1 BEST 0

0 comments on commit 04f21de

Please sign in to comment.