Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KR155E committed Aug 31, 2023
0 parents commit 6261def
Show file tree
Hide file tree
Showing 42 changed files with 3,800 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
build/
screenshots/
14 changes: 14 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 changes: 22 additions & 0 deletions assets/Font/Fonts.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////
// THIS FILE WAS AUTO-GENERATED - DO NOT EDIT //
///////////////////////////////////////////////////////////////////////////////////////////////////////////

//---------------------------------------------------------------------------------------------------------
// INCLUDES
//---------------------------------------------------------------------------------------------------------

#include <Fonts.h>


//---------------------------------------------------------------------------------------------------------
// DEFINITIONS
//---------------------------------------------------------------------------------------------------------

FontSpec* const _fonts[] =
{
(FontSpec*)&DefaultFont,
(FontSpec*)&ProfilerFont,

NULL
};
26 changes: 26 additions & 0 deletions assets/images/AdjustmentIcon/AdjustmentIcon.image.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"images": [
"."
],
"name": "",
"section": "rom",
"tileset": {
"shared": false,
"reduce": true,
"compress": false
},
"map": {
"generate": true,
"reduce": {
"flipped": true,
"unique": true
},
"compress": false
},
"animation": {
"isAnimation": false,
"individualFiles": false,
"frameWidth": 0,
"frameHeight": 0
}
}
Binary file added assets/images/AdjustmentIcon/AdjustmentIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions assets/images/AdjustmentIcon/Converted/AdjustmentIcon.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//---------------------------------------------------------------------------------------------------------
//
// AdjustmentIcon
// * 16x16 pixels
// * 4 tiles, reduced by non-unique and flipped tiles, not compressed
// * 2x2 map, not compressed
// Size: 68 + 8 = 76
//
//---------------------------------------------------------------------------------------------------------

const uint32 AdjustmentIconTiles[17] __attribute__((aligned(4))) =
{
0x00000000,
0xAFEBFFFC,0xAFEBAFEB,0xABABAFEB,0xEBAFEBAF,0xFAAB3FFF,0xEAABEAAB,0xEBEBEBEB,0xFAABEBEB,
0xEAAFEBAF,0xFABFFABF,0xFEFFFABF,0xFFFCFEFF,0xEBEBEAAB,0xEBEBEBEB,0xEAABEAAB,0x3FFFFAAB,
};

const uint16 AdjustmentIconMap[4] __attribute__((aligned(4))) =
{
0x0000,0x0001,0x0002,0x0003,
};
224 changes: 224 additions & 0 deletions assets/images/AdjustmentIcon/Spec/AdjustmentIconSpec.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,224 @@
/**
* VUEngine Plugins Library
*
* (c) Christian Radke and Jorge Eremiev
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*/


//---------------------------------------------------------------------------------------------------------
// INCLUDES
//---------------------------------------------------------------------------------------------------------

#include <Entity.h>
#include <VIPManager.h>
#include <BgmapSprite.h>


//---------------------------------------------------------------------------------------------------------
// DECLARATIONS
//---------------------------------------------------------------------------------------------------------

extern uint32 AdjustmentIconTiles[];
extern uint16 AdjustmentIconMap[];


//---------------------------------------------------------------------------------------------------------
// DEFINITIONS
//---------------------------------------------------------------------------------------------------------

CharSetROMSpec AdjustmentIconCharset =
{
// number of chars, depending on allocation type:
// __ANIMATED_SINGLE*, __ANIMATED_SHARED*: number of chars of a single animation frame (cols * rows)
// __ANIMATED_MULTI, __NOT_ANIMATED: sum of all chars
4,

// allocation type
// (__ANIMATED_SINGLE, __ANIMATED_SINGLE_OPTIMIZED, __ANIMATED_SHARED, __ANIMATED_SHARED_COORDINATED, __ANIMATED_MULTI or __NOT_ANIMATED)
__NOT_ANIMATED,

// char spec
AdjustmentIconTiles,

// pointer to the frames offsets
NULL,
};

TextureROMSpec AdjustmentIconTexture =
{
// charset spec
(CharSetSpec*)&AdjustmentIconCharset,

// bgmap spec
AdjustmentIconMap,

// cols (max 64)
2,

// rows (max 64)
2,

// padding for affine/hbias transformations (cols, rows)
{0, 0},

// number of frames, depending on charset's allocation type:
// __ANIMATED_SINGLE*, __ANIMATED_SHARED*, __NOT_ANIMATED: 1
// __ANIMATED_MULTI: total number of frames
1,

// palette number (0-3)
0,

// recyclable
false,

// vertical flip
false,

// horizontal flip
false,
};

BgmapSpriteROMSpec AdjustmentIconLSprite =
{
{
// sprite's type
__TYPE(BgmapSprite),

// texture spec
(TextureSpec*)&AdjustmentIconTexture,

// transparent (__TRANSPARENCY_NONE, __TRANSPARENCY_EVEN or __TRANSPARENCY_ODD)
__TRANSPARENCY_NONE,

// displacement
{0, 0, 0, 0},
},

// bgmap mode (__WORLD_BGMAP, __WORLD_AFFINE, __WORLD_OBJECT or __WORLD_HBIAS)
// make sure to use the proper corresponding sprite type throughout the spec (BgmapSprite or ObjectSprite)
__WORLD_BGMAP,

// pointer to affine/hbias manipulation function
NULL,

// display mode (__WORLD_ON, __WORLD_LON or __WORLD_RON)
__WORLD_LON,
};

BgmapSpriteROMSpec* const AdjustmentIconLSprites[] =
{
&AdjustmentIconLSprite,
NULL
};

BgmapSpriteROMSpec const ADJUSTMENT_SCREEN_ICON_R_SPRITE =
{
{
// sprite's type
__TYPE(BgmapSprite),

// texture spec
(TextureSpec*)&AdjustmentIconTexture,

// transparent (__TRANSPARENCY_NONE, __TRANSPARENCY_EVEN or __TRANSPARENCY_ODD)
__TRANSPARENCY_NONE,

// displacement
{0, 0, 0, 0},
},

// bgmap mode (__WORLD_BGMAP, __WORLD_AFFINE, __WORLD_OBJECT or __WORLD_HBIAS)
// make sure to use the proper corresponding sprite type throughout the spec (BgmapSprite or ObjectSprite)
__WORLD_BGMAP,

// pointer to affine/hbias manipulation function
NULL,

// display mode (__WORLD_ON, __WORLD_LON or __WORLD_RON)
__WORLD_RON,
};

BgmapSpriteROMSpec* const AdjustmentIconRSprites[] =
{
&ADJUSTMENT_SCREEN_ICON_R_SPRITE,
NULL

};

EntityROMSpec AdjustmentIconLEntity =
{
// class allocator
__TYPE(Entity),

// children
NULL,

// behaviors
NULL,

// extra
NULL,

// sprites
(SpriteSpec**)AdjustmentIconLSprites,

// use z displacement in projection
false,

// wireframes
(WireframeSpec**)NULL,

// collision shapes
(ShapeSpec*)NULL,

// size
// if 0, width and height will be inferred from the first sprite's texture's size
{0, 0, 0},

// gameworld's character's type
kTypeNone,

// physical specification
(PhysicalSpecification*)NULL,
};

EntityROMSpec AdjustmentIconREntity =
{
// class allocator
__TYPE(Entity),

// children
NULL,

// behaviors
NULL,

// extra
NULL,

// sprites
(SpriteSpec**)AdjustmentIconRSprites,

// use z displacement in projection
false,

// wireframes
(WireframeSpec**)NULL,

// collision shapes
(ShapeSpec*)NULL,

// size
// if 0, width and height will be inferred from the first sprite's texture's size
{0, 0, 0},

// gameworld's character's type
kTypeNone,

// physical specification
(PhysicalSpecification*)NULL,
};
Loading

0 comments on commit 6261def

Please sign in to comment.