changed some stuf around lol

wow i didnt know that kate had extended git message.
this is rlly cool rlly
This commit is contained in:
kin fuyuki 2026-03-11 02:25:52 -03:00
commit 1df1cef78f
No known key found for this signature in database
GPG key ID: 0E4E8E519FB71401
33 changed files with 659 additions and 900 deletions

View file

@ -0,0 +1,15 @@
{
"name": "kin fuyuki",
"description":
"me sprite yay im the creator of this game",
"spritew":16,
"spriteh":32,
"width": 1.0,
"height": 2.0,
"speed": 1.0,
"health": 1.0,
"radiores": 1.0,
"exhaustres": 1.0,
"singlesprite": true
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

View file

@ -0,0 +1,22 @@
#BLOCKTYPE LIST
#
" name kin fuyuki
S description
me sprite yay im the creator of this game
heya hoihoi
\
i spritew 16
i spriteh 32
f width 8.0
f height 2.0
f speed 2.0
f health 2.0
f radiores 2.0
f exhaustres 2.0
B singlesprite T
B 3dprerendered F
# 0 = 1 side 1 = 4 sides 2 = 8 sides (diagonal axes)
# 3 = 10 sides (top and down)
i directions 0
# defined

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View file

@ -18,6 +18,7 @@ void client::boot() {
AT("res/shaders/screen.vs"),
AT("res/shaders/screen.fs")
);
}
void client::draw() {
BeginTextureMode(target);

View file

@ -2,7 +2,7 @@
#include <vector>
#include <enginend/engine.h>
#include "../../common/themes.h"
extern enginend::group maincfgpage;
extern enginend::group graphics;
extern enginend::group sound;

View file

@ -1 +1,71 @@
#include "mainmenu.h"
#include"mainmenu.h"
void mainmenu::boot(){
this->nodes=std::vector<enginend::nodes::node*>{
new animated(AT("res/images/sky.gif"),0,0,1,1,2),
new text(nullptr,clienttheme,0.17,0.05,0.8,0.3,32,"FORESPEND"),
new labeledbutton("PLAY",nullptr,clienttheme,0.30,0.25,0.4,0.2,
std::function<void()>([]{
}),32),
new labeledbutton("OPTIONS",nullptr,clienttheme,0.02,0.75,0.56,0.2,
std::function<void()>([]{
configmenupage=1;
}),32),
new labeledbutton("EXIT",nullptr,clienttheme,0.63,0.75,0.35,0.2,
std::function<void()>([](){
std::exit(1);
}),32),
};
enginend::scene::boot();
}
void mainmenu::tick(){
switch (configmenupage) {
case 0:{
for (enginend::nodes::node* n : this->nodes) {
n->tick();
}
break;
}
case 1: {this->nodes[0]->tick();
for (enginend::nodes::node* n : maincfgpage.children) {
n->tick();
}
break;
}
case 2: {this->nodes[0]->tick();
for (enginend::nodes::node* n : graphics.children) {
n->tick();
}
break;
}
}
}
void mainmenu::draw(){
switch (configmenupage) {
case 0:{
for (enginend::nodes::node* n : this->nodes) {
n->draw();
}
break;
}
case 1: {(this->nodes[0])->draw();
for (enginend::nodes::node* n : maincfgpage.children) {
n->draw();
}
break;
}
case 2: {this->nodes[0]->draw();
for (enginend::nodes::node* n : graphics.children) {
n->draw();
}
break;
}
}
}
void mainmenu::exit(){
enginend::scene::exit();
}

View file

@ -8,70 +8,8 @@ private:
Texture2D bg= LoadTexture(AT("res/images/tilesheet.png"));
public:
void boot() override {
this->nodes=std::vector<enginend::nodes::node*>{
new animated(AT("res/images/sky.gif"),0,0,1,1,2),
new text(nullptr,clienttheme,0.17,0.05,0.8,0.3,32,"FORESPEND"),
new labeledbutton("PLAY",nullptr,clienttheme,0.30,0.25,0.4,0.2,
std::function<void()>([]{
}),32),
new labeledbutton("OPTIONS",nullptr,clienttheme,0.02,0.75,0.56,0.2,
std::function<void()>([]{
configmenupage=1;
}),32),
new labeledbutton("EXIT",nullptr,clienttheme,0.63,0.75,0.35,0.2,
std::function<void()>([](){
std::exit(1);
}),32),
};
enginend::scene::boot();
}
void tick() override {
switch (configmenupage) {
case 0:{
for (enginend::nodes::node* n : this->nodes) {
n->tick();
}
break;
}
case 1: {this->nodes[0]->tick();
for (enginend::nodes::node* n : maincfgpage.children) {
n->tick();
}
break;
}
case 2: {this->nodes[0]->tick();
for (enginend::nodes::node* n : graphics.children) {
n->tick();
}
break;
}
}
}
void draw() override {
switch (configmenupage) {
case 0:{
for (enginend::nodes::node* n : this->nodes) {
n->draw();
}
break;
}
case 1: {(this->nodes[0])->draw();
for (enginend::nodes::node* n : maincfgpage.children) {
n->draw();
}
break;
}
case 2: {this->nodes[0]->draw();
for (enginend::nodes::node* n : graphics.children) {
n->draw();
}
break;
}
}
}
void exit() override {
enginend::scene::exit();
}
void boot() override ;
void tick() override ;
void draw() override ;
void exit() override ;
};

View file

@ -1,5 +1,11 @@
#include "../../../common/world/world.h"
#include <sys/stat.h>
Camera3D* worldcam;
enginend::nodes::trid::billboard* itsame;
void world::boot() {
itsame=new enginend::nodes::trid::billboard({0,0,0},{0,0,0},{1,1,1},{1,1,1},"player/kinfuyuki/player.png");
players->boot();
entities->boot();
buildings->boot();
@ -8,15 +14,19 @@ void world::boot() {
AT("res/shaders/tile.vs"),
AT("res/shaders/tile.fs")
);
players->children.push_back(itsame);
worldcam=new Camera3D;
itsame->watcher=worldcam;
}
void world::draw() {
BeginMode3D(*worldcam);
BeginShaderMode(worldrender);
terrain->draw();
EndShaderMode();
players->draw();
entities->draw();
buildings->draw();
EndMode3D();
}
void world::exit() {
players->exit();