osu-ds/source/HitObjects/HitSpinner.h
KonPet 183228e28e Change stuff to make it build
Removed the arm7 section
Changed the makefile to only use the arm9 stuff
Epicpkmn: Fix source/Graphics/GraphicsManager.cpp

Co-Authored-By: Pk11 <epicpkmn11@outlook.com>
Co-Authored-By: Kaisaan <34224128+Kaisaan@users.noreply.github.com>
2021-10-21 00:03:39 +02:00

40 lines
614 B
C++

#include <nds.h>
#include <math.h>
#include "HitObject.h"
#ifndef __HITSPINNER_H__
#define __HITSPINNER_H__
class HitSpinner : public HitObject
{
public:
HitSpinner(s32 time, s32 endtime, HitObjectSound sound);
~HitSpinner();
void Update();
void OnTouchDown(const touchPosition& touch);
void OnTouch(const touchPosition& touch);
void Hit();
protected:
s32 GetAngle(s32 x, s32 y);
s32 mLastAngle;
bool fSpinning;
s32 mDirection, mZeroPoint;
float mTotalRotation;
u32 mCurrentRotation;
u32 mTotalSpins;
u32 mRequiredSpins;
u32* mUV;
int mChannel;
};
#endif