Cubytes / AssaultCube Devlog - REVIVAL
- Battlefrog
- Posts: 69
- Joined: March 31st, 2015, 10:10 pm
- Location: Florida, United States of America
Re: Cubytes / AssaultCube Devlog - REVIVAL
Cooked up something for the project after Cubytes is finished. GX19 is the working title.
And yes, that's what the game will look like. I'm aiming for a old graphics card showcase look. (But apparently way shittier... ) Also, not far off from LSD: Dream Emulator.
Oh, before I forget, still working on the Level class, and right now I'm implementing albino's suggestion into the codebase.
And yes, that's what the game will look like. I'm aiming for a old graphics card showcase look. (But apparently way shittier... ) Also, not far off from LSD: Dream Emulator.
Oh, before I forget, still working on the Level class, and right now I'm implementing albino's suggestion into the codebase.
Broc W.
Sole Member of Sledgehog Software, trademark and LLC status pending.
Sole Member of Sledgehog Software, trademark and LLC status pending.
- Battlefrog
- Posts: 69
- Joined: March 31st, 2015, 10:10 pm
- Location: Florida, United States of America
Re: Cubytes / AssaultCube Devlog - REVIVAL
Tonight went alright.
As albinopapa suggested, I implimented his advice - slightly.
For some reason, I couldn't get the iterator working (Most likely because I didn't know how it works ), so I settled for this instead:
Most likely less functional than iterators, but the main thing is that it compiles.
Tomorrow, I'll be finding out how to load custom levels from levels(if refactoring doesn't get in the way...)!
As albinopapa suggested, I implimented his advice - slightly.
For some reason, I couldn't get the iterator working (Most likely because I didn't know how it works ), so I settled for this instead:
Code: Select all
bool foundLevel = false;
if (foundLevel == false)
{
for (int i = 0; i < numStoryLevels + 1; ++i)
{
if (storyLevels[i] == level)
{
LoadLevelIntoCurrentLevel(storyLevels[i]);
foundLevel = true;
}
}
for (int i = 0; i < numArcadeLevels + 1; ++i)
{
if (arcadeLevels[i] == level)
{
LoadLevelIntoCurrentLevel(arcadeLevels[i]);
foundLevel = true;
}
}
}
Tomorrow, I'll be finding out how to load custom levels from levels(if refactoring doesn't get in the way...)!
Broc W.
Sole Member of Sledgehog Software, trademark and LLC status pending.
Sole Member of Sledgehog Software, trademark and LLC status pending.
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Cubytes / AssaultCube Devlog - REVIVAL
I'd maybe put a break in there. That way when the level is found, it exits the loop. Maybe even combining the loops if the number of story levels and arcade levels are the same.
Sorry about the iterator thing, don't have your code, so couldn't test what I wrote.
Sorry about the iterator thing, don't have your code, so couldn't test what I wrote.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com
- Battlefrog
- Posts: 69
- Joined: March 31st, 2015, 10:10 pm
- Location: Florida, United States of America
Re: Cubytes / AssaultCube Devlog - REVIVAL
You're fine albinopapa. Besides, you gave me inspiration!albinopapa wrote: Sorry about the iterator thing, don't have your code, so couldn't test what I wrote.
New project in the works after Cubytes. It'll be using Unity, and it'll be quite odd. It'll be a exploration game, with extremely odd visuals, as you can see .chili wrote:Not sure what that is but it looks cool.
Like Cubytes, the project will work with my limitations (with 3D Modeling) and hopefully bulid around it by using cool shader tricks or something along the lines of that .
It'll focus more on the story than Cubytes, that's for sure.
I'll be telling more when Cubytes is more or less starting to get finished.
Last edited by Battlefrog on June 18th, 2017, 3:44 am, edited 2 times in total.
Broc W.
Sole Member of Sledgehog Software, trademark and LLC status pending.
Sole Member of Sledgehog Software, trademark and LLC status pending.
- Battlefrog
- Posts: 69
- Joined: March 31st, 2015, 10:10 pm
- Location: Florida, United States of America
Re: Cubytes / AssaultCube Devlog - REVIVAL
Alright, I finished a rough state of level loading.
Next up on the agenda is to figure out FileIO, so I can load information about levels from txt files. It'll make it easier to maintain and create levels.
After that I'll be working on getting the system to work in the game.
Hold tight. Alpha 3 will be the the largest gap between updates. Hopefully after Alpha 3 I should get out weekly or bi-weekly updates.
Next up on the agenda is to figure out FileIO, so I can load information about levels from txt files. It'll make it easier to maintain and create levels.
After that I'll be working on getting the system to work in the game.
Hold tight. Alpha 3 will be the the largest gap between updates. Hopefully after Alpha 3 I should get out weekly or bi-weekly updates.
Broc W.
Sole Member of Sledgehog Software, trademark and LLC status pending.
Sole Member of Sledgehog Software, trademark and LLC status pending.
- Battlefrog
- Posts: 69
- Joined: March 31st, 2015, 10:10 pm
- Location: Florida, United States of America
Re: Cubytes / AssaultCube Devlog - REVIVAL
Encapsulated the shit outta the level code, or at least the things I NEED to encapsulate.
Tomorrow I'll work through the Intermediate series to FileIO, and see if that solves my problems
Here's the code, if any of you are interested.
Tomorrow I'll work through the Intermediate series to FileIO, and see if that solves my problems
Here's the code, if any of you are interested.
Code: Select all
#pragma once
#include "Block.h"
#include "Player.h"
#include "Point.h"
#include "Goal.h"
#include <vector>
#include <string>
#include <assert.h>
class Level
{
public:
// Compares the level titles, not the actual content.
// It's much nicer, and quite possibly faster.
bool operator == ( Level &level);
// Adds the titles and other misc. things to the levels.
// THIS IS NEEDED. CALL ME, BUT ONLY ONCE!
// Again is a waste of time.
bool InitLevels();
// Finds and loads the level requested into the CurrentLevel.
void FindAndLoadLevel(Level &level);
// Unloads the level generically so that a new level can be loaded.
// A nice blank, clean state, really.
void UnloadLevel(Level &level);
int GetGoalX();
int GetGoalY();
int GetPlayerStartX();
int GetPlayerStartY();
// Vectors for holding the blocks and the points
std::vector<Block> blocks;
std::vector<Point> points;
// Title for the level. Might be shown to the player,
// but the primary purpose is to compare levels.
std::string title;
// Amount of things in the level. Nice to use for loops.
int amountOfBlocks;
int amountOfPoints;
// A singular goal, as you'd like a goal...
Goal goal;
private:
// Scans a .txt file for level infomation and adds it to
// the various factors of the level
void CollectAndStoreLevelInfo(Level &level);
// Actually loads the level. Not needed to be called, this is used internally.
void LoadLevelIntoCurrentLevel(Level &level);
// Simple x and y pos of the goal
int goalX;
int goalY;
// Two ints for holding the starting position of the player
int playerStartX;
int playerStartY;
};
int numStoryLevels = 6;
int numArcadeLevels = 6;
std::vector<Level> storyLevels;
std::vector<Level> arcadeLevels;
// The container for the currently loaded level. Levels are just
// buckets of infomation, but the CurrentLevel is where everything
// gets rendered, collides with, etc.
Level CurrentLevel;
Broc W.
Sole Member of Sledgehog Software, trademark and LLC status pending.
Sole Member of Sledgehog Software, trademark and LLC status pending.
- Battlefrog
- Posts: 69
- Joined: March 31st, 2015, 10:10 pm
- Location: Florida, United States of America
Re: Cubytes / AssaultCube Devlog - REVIVAL
I created a Trello board for monitoring my progress on the game.
It won't die, I promise.
https://trello.com/b/TiNYWGFh/cubytes
It won't die, I promise.
https://trello.com/b/TiNYWGFh/cubytes
Broc W.
Sole Member of Sledgehog Software, trademark and LLC status pending.
Sole Member of Sledgehog Software, trademark and LLC status pending.