Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot. The file must have the ged and data files (complete game source) Use the forum attachment to post the files. It is always better to use the first post to put the game files
The reason I'd like to try implementing an algorithm on my own is just for developing myself as a programmer. But as I already stated, even if I'd make one of my own, I'd probably use Bresenham's as it would be more efficient.
And no, I don't need anti-aliasing here, and actually I must not use it. I'm not using the algorithm to draw a line. I'm using it to place blocks to a line. Blocks form the walls in SABRE. I can't anti-alias a wall shape
lcl wrote:The reason I'd like to try implementing an algorithm on my own is just for developing myself as a programmer. But as I already stated, even if I'd make one of my own, I'd probably use Bresenham's as it would be more efficient.
And no, I don't need anti-aliasing here, and actually I must not use it. I'm not using the algorithm to draw a line. I'm using it to place blocks to a line. Blocks form the walls in SABRE. I can't anti-alias a wall shape
Yea I know. Copy/Paste code isn't pro so most of the real resources nao are pseudo-code.
Yeah, Wikipedia has a pretty basic pseudocode of Bresenham's algorithm, I've already converted it to Game Editor. And I'd never want to use straight copy/paste code, first off there could be a lot errors caused by doing that, and when doing that, it doesn't grant one any knowledge of how the code does what it does.
lcl wrote:Yeah, Wikipedia has a pretty basic pseudocode of Bresenham's algorithm, I've already converted it to Game Editor. And I'd never want to use straight copy/paste code, first off there could be a lot errors caused by doing that, and when doing that, it doesn't grant one any knowledge of how the code does what it does.
Here's some updates about my progress on this project.
I've been working on the World Editor, and the rebooted version begins to take shape. Many of the most important parts are now done, but there's still stuff left to add. What there's currently in the editor:
Smooth rendering of the blocks drawn on the grid, the editor won't start lagging when you draw bigger maps
Colors represent different textures, later on you'll be able to modify the colors, add new colors and tag the colors with a texture name so that you'll always know what texture each color means.
For adding new colors, I've programmed a color selector that uses HSV (or HSB, depends on what you want to call it) color system. That is because normal RGB system makes it kinda difficult to find a specific color. But don't worry, you'll also be able to use the normal RGB colors
Bresenham's line drawing algorithm is now implemented for placing blocks in straight lines
A middle-point ellipse algorithm is implemented for placing blocks in ellipse-like formations (this one still needs some adjustment, but already works basically)
The editor has an automatic system checking for errors in the level structure, and it warns you for example if the player spawn point is placed inside a wall, or if the level edges have a "leak", i.e. the walls don't form a closed shape, which is a problem because it would allow the player to walk outside of the map array causing undefined behavior, most likely crashing the game. But yeah, the editor won't allow you to make mistakes like that. In case you're interested, the piece of code that checks this utilizes an algorithm similar to a recursive flood fill
The level testing in 3D works, too
Here's also a video explaining pretty much the same things and showing the editor in action. Please excuse any... No, I mean, please excuse all the mistakes and bad pronunciation, I'm kinda tired and not a native speaker
Hares wrote:Congrats dude, SABRE is really starting to come together.
Thanks
Hares wrote:At 0:30 the word features is pronounced like "feet"-ures. As in "feet", the plural of "foot". (Not trying to put you down here, just trying to help)
Haha, thanks!
Hares wrote:I can't wait for the engine to be finished Because then we get see what games you can make with it
And I can't wait to get it finished to see what games you and everyone else can make with it
bat78 wrote:I don't see you in skype suddenly. Will you have some time to log-in though? We have so much to discuss overall.
Yeah, I haven't been on Skype for some time. That's just because I don't actually use Skype that much, I forget to even log in. But I'll get on Skype some time soon! Well that sounded kinda stupid with the word 'Skype' repeated so many times. xD