Skip to content

Commit

Permalink
fixed hblank first line
Browse files Browse the repository at this point in the history
  • Loading branch information
NotImplementedLife committed Oct 29, 2022
1 parent 276eee8 commit efde8dd
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
Binary file modified gfx/end-level-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion include/scenes/gba_jam_scene.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

//#define GBAJAM
#define GBAJAM

#include <Astralbrew>

Expand Down
2 changes: 1 addition & 1 deletion source/scenes/map_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ void MapScene::open_reports(int code)
short* buff = (short*)bgGetMapPtr(1);
for(int i=0;i<640;i++) buff[i]+=0x0180;

if(code!=0) BG_PALETTE[0x93] = Colors::Red;
if(code!=0) BG_PALETTE[0x91] = Colors::Red;
else BG_PALETTE[0x93] = Colors::Green;


Expand Down
7 changes: 3 additions & 4 deletions source/scenes/menu_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ using namespace Astralbrew::Video;
namespace
{
__attribute__((section(".ewram.menu_parallax.scrolls"))) short scrolls[64];
__attribute__((section(".ewram.menu__parallax"))) short scrdir=1;
__attribute__((section(".ewram.menu__parallax"))) short pal0;
__attribute__((section(".ewram.menu__parallax"))) short scrdir=1;

void parallax()
{
if(REG_VCOUNT<16)
{
if(REG_VCOUNT<16 || REG_VCOUNT == 160)
{
BG_PALETTE[0] = (25<<10)|(26<<5)|26;
REG_BG3HOFS = 0;
Expand Down
5 changes: 2 additions & 3 deletions source/scenes/title_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ using namespace Astralbrew::Video;
namespace
{
__attribute__((section(".ewram.title_parallax.scrolls"))) short scrolls[64];
__attribute__((section(".ewram.title_parallax"))) short scrdir=1;
__attribute__((section(".ewram.title_parallax"))) short pal0;
__attribute__((section(".ewram.title_parallax"))) short scrdir=1;

void parallax()
{
if(REG_VCOUNT<31)
if(REG_VCOUNT<31 || REG_VCOUNT == 160)
{
BG_PALETTE[0] = (25<<10)|(31<<5)|31;
REG_BG3HOFS = 0;
Expand Down

0 comments on commit efde8dd

Please sign in to comment.