Page 1 of 1

Quadrilateral Conundrum

Posted: December 5th, 2018, 5:44 am
by sleepingburrito

Quadrilateral Conundrum

Username: Sleeping Burrito
Project Title: Quadrilateral Conundrum
Time to Complete: 1 week
SDK: Psy-Q
Genre: Game
Latest Release: V1.0
In Development: No
Initial Release Date: 12/4/2018
Last Date Updated: NA
Controller: Classic
Players: 1
Memory Card: NA
Languages: Eng
Region: NTSC
Burn and Play: Yes
Executable Included: Yes
Source Included: Yes

Quadrilateral Conundrum is a simple Tetris homebrew clone for ps1. PS1 was my first game system and with the help with http://www.psxdev.net/ resources I was able to make something for it! I plan on making more interesting projects in the future if I can figure out how to program them.

Screenshots:
Image
Image
Video:
https://youtu.be/gJWoWCCUJnc

Credits:
Image
PS-EXE, CUE + BIN and Source Code: https://github.com/sleepingburrito/Qadr ... lConundrum (I know about the spelling error, oops!)

I attached just the CUE-BIN to this post and the source is on the github.


Re: Quadrilateral Conundrum

Posted: December 5th, 2018, 9:31 am
by Xavi92
Looks really promising! :) However, why did you implement some function on a header file (DRW.H)? That could cause you big problems if including such file more than once.

Re: Quadrilateral Conundrum

Posted: December 5th, 2018, 9:41 am
by sleepingburrito
Xavi92 wrote: December 5th, 2018, 9:31 am Looks really promising! :) However, why did you implement some function on a header file (DRW.H)? That could cause you big problems if including such file more than once.
I have no excuses other than I am not a good programmer. Everything was in only 1 file and I sort of made the others just to make it less crowded but its defiantly me being lazy than doing something in the right way and I admit it.

Re: Quadrilateral Conundrum

Posted: December 5th, 2018, 10:17 am
by Xavi92
Don't get me wrong - I don't think you are a bad programmer at all. In fact, I liked the const-correctness of your code. That's definitely not something common to see. :)

Re: Quadrilateral Conundrum

Posted: December 5th, 2018, 9:40 pm
by Yagotzirck
Aside from putting function definitions inside another .c file rather than inside headers, you should also put include guards in your header files to avoid problems such as the one mentioned by Xavi.
It's no hassle at all, e.g. in DRW.H you should put something like this at the beginning of the file:

Code: Select all

#ifndef DRW_H
#define DRW_H
then append this at the end of the file:

Code: Select all

#endif 
and you're good to go.

As for the project itself, nicely done - it's always nice to see more people joining the scene :)

Re: Quadrilateral Conundrum

Posted: December 6th, 2018, 7:19 am
by sleepingburrito
Yagotzirck wrote: December 5th, 2018, 9:40 pm Aside from putting function definitions inside another .c file rather than inside headers, you should also put include guards in your header files to avoid problems such as the one mentioned by Xavi.
It's no hassle at all, e.g. in DRW.H you should put something like this at the beginning of the file:

Code: Select all

#ifndef DRW_H
#define DRW_H
then append this at the end of the file:

Code: Select all

#endif 
and you're good to go.

As for the project itself, nicely done - it's always nice to see more people joining the scene :)
Will do, I will add the guards right now to my file. All future projects will have it now. Thank you!