Posts: 1,272
Threads: 119
Joined: Apr 2022
Reputation:
100
(01-09-2023, 09:42 AM)RokCoder Wrote: (01-08-2023, 10:59 PM)SMcNeill Wrote: Welcome to our insanity, Rok.
The screenshots look amazing. I'm certain you'll get up to speed with the new keywords in no time, and if you need any help with anything at all, feel free to speak up and ask. We have a bunch of friendly folks here who thrive on showing off their own knowledge and helping others, but we can't help if we don't know what someone might need help with!
Thanks for the welcome. Seems like a nice spot on the web full of lovely people. I was only having a quick dabble with something BASICesque for old time's sake but think I'm likely to stay for a while longer as it was so much fun. A refreshing break from the normality of C#/C++ programming (with a huge dash of Scratch on the side cos I teach it to kids and, y' know, it's crazy fun - actually, one of the Scratch projects is a BBC Micro emulator so is of some vague relevance here)
(01-09-2023, 02:50 AM)bplus Wrote: Well dang the screen is too big for my laptop. Code looks well organized and put together by veteran coder.
I see old fashioned way of CALLing Subs ( ).
Normal esc, top right X, and Alt+F4 would not quit opening screen because I couldn't even see let alone get to click "Play Game" as shown in screen shot.
Ouch! Not sure what I can do about that as the space is required for the larger puzzles. Is there a way to add OS scrollbars to app windows in QB64pe? Other than that I could make the front end into a smaller window and fire up into appropriate sized windows depending on the puzzle size. But scrollbars would be easier
(01-09-2023, 02:58 AM)mnrvovrfc Wrote: (01-08-2023, 10:48 PM)RokCoder Wrote: stuff
Welcome to the forums.
"Stuff" is definitely a fair synopsis of my post Thanks for the welcome!
(01-09-2023, 04:24 AM)TerryRitchie Wrote: As Steve so eloquently suggested, welcome to the asylum.
If game programming in QB64 is your thing I wrote a tutorial to help people get started. Since you're already familiar with BASIC you can probably skip ahead to later tutorials.
https://www.qb64tutorial.com/
Happy coding!
It was your website that pushed me towards QB64pe in the first place! Awesome website by the way. Initially I was going to make this project for an unmodified BBC Micro but my personal challenge was to make it in BASIC and I would have had to dive straight into 6502 for any performance chance whatsoever. So I then veered to BBC BASIC for Windows but thought that might be a little niche and I did want at least a few people to play the game. So I moved to QB64 and stumbled upon your website shortly afterwards. Sounds like a longwinded process but all the above was in the space of less than a week. QB64pe is just too much fun!
Your site was really helpful for reference throughout - the only thing I couldn't seem to get going was $EXEICON. I have the .ico file in place but I couldn't for the life of me get an $EXEICON line to stop being a big red error!
Edit: I just played your excellent Pacman implementation and had to comment the $EXEICON line out for that to compile, too. Is it just me? Have I borked my QB64pe installation somehow?
I had someone else comment that $EXEICON was not working on their system. That makes two now out of about 50 people that downloaded it. I just loaded the code into my IDE and all is well? I'll look into this further and see if I can come up with an answer.
Thank you for the kind words we well
Terry
Posts: 3,965
Threads: 176
Joined: Apr 2022
Reputation:
219
01-09-2023, 05:01 PM
(This post was last modified: 01-09-2023, 05:10 PM by bplus.)
Ico file quite often needs ..\ before filename for some reason to be found.
_FULLSCREEN got me through first screen but not proportional grid in actual game.
b = b + ...
Posts: 80
Threads: 7
Joined: Jan 2023
Reputation:
10
01-09-2023, 07:54 PM
(This post was last modified: 01-09-2023, 07:56 PM by RokCoder.)
(01-09-2023, 03:27 PM)mnrvovrfc Wrote: (01-09-2023, 09:42 AM)RokCoder Wrote: Your site was really helpful for reference throughout - the only thing I couldn't seem to get going was $EXEICON. I have the .ico file in place but I couldn't for the life of me get an $EXEICON line to stop being a big red error!
Edit: I just played your excellent Pacman implementation and had to comment the $EXEICON line out for that to compile, too. Is it just me? Have I borked my QB64pe installation somehow?
Make sure you place the QB64 directory into a major directory where you always have write permissions, without worrying about User Account Control or "Run As Administrator" thing. You could put it as direct child of the home user directory: "C:\Users\(yourname)\QB64PE". For good measure add the version-release-control numbers, something like "QB64PE341" in case you need to install another release later.
There is still this tendency to install to "Program Files", thanks to the zillions of installers. In Windows Vista and later, this practice began being frowned upon by the company that built the operating system, that's why UAC and other antics were created.
If you have been cool with these instructions about placing the QB64PE directory, then make sure the icon is in the same directory as the QB64PE.EXE executable so the compiler could find it and relate it to the utility to create an object file out of it.
I know a procedure to include an icon into an EXE file even before "$EXEICON" was conceived but it worked best for 32-bit WindowsXP and I don't know if it could be used at this point. I have to dig into my backups. :/
(01-09-2023, 04:24 PM)TerryRitchie Wrote: (01-09-2023, 09:42 AM)RokCoder Wrote: (01-08-2023, 10:59 PM)SMcNeill Wrote: Welcome to our insanity, Rok.
The screenshots look amazing. I'm certain you'll get up to speed with the new keywords in no time, and if you need any help with anything at all, feel free to speak up and ask. We have a bunch of friendly folks here who thrive on showing off their own knowledge and helping others, but we can't help if we don't know what someone might need help with!
Thanks for the welcome. Seems like a nice spot on the web full of lovely people. I was only having a quick dabble with something BASICesque for old time's sake but think I'm likely to stay for a while longer as it was so much fun. A refreshing break from the normality of C#/C++ programming (with a huge dash of Scratch on the side cos I teach it to kids and, y' know, it's crazy fun - actually, one of the Scratch projects is a BBC Micro emulator so is of some vague relevance here)
(01-09-2023, 02:50 AM)bplus Wrote: Well dang the screen is too big for my laptop. Code looks well organized and put together by veteran coder.
I see old fashioned way of CALLing Subs ( ).
Normal esc, top right X, and Alt+F4 would not quit opening screen because I couldn't even see let alone get to click "Play Game" as shown in screen shot.
Ouch! Not sure what I can do about that as the space is required for the larger puzzles. Is there a way to add OS scrollbars to app windows in QB64pe? Other than that I could make the front end into a smaller window and fire up into appropriate sized windows depending on the puzzle size. But scrollbars would be easier
(01-09-2023, 02:58 AM)mnrvovrfc Wrote: Welcome to the forums.
"Stuff" is definitely a fair synopsis of my post Thanks for the welcome!
(01-09-2023, 04:24 AM)TerryRitchie Wrote: As Steve so eloquently suggested, welcome to the asylum.
If game programming in QB64 is your thing I wrote a tutorial to help people get started. Since you're already familiar with BASIC you can probably skip ahead to later tutorials.
https://www.qb64tutorial.com/
Happy coding!
It was your website that pushed me towards QB64pe in the first place! Awesome website by the way. Initially I was going to make this project for an unmodified BBC Micro but my personal challenge was to make it in BASIC and I would have had to dive straight into 6502 for any performance chance whatsoever. So I then veered to BBC BASIC for Windows but thought that might be a little niche and I did want at least a few people to play the game. So I moved to QB64 and stumbled upon your website shortly afterwards. Sounds like a longwinded process but all the above was in the space of less than a week. QB64pe is just too much fun!
Your site was really helpful for reference throughout - the only thing I couldn't seem to get going was $EXEICON. I have the .ico file in place but I couldn't for the life of me get an $EXEICON line to stop being a big red error!
Edit: I just played your excellent Pacman implementation and had to comment the $EXEICON line out for that to compile, too. Is it just me? Have I borked my QB64pe installation somehow?
I had someone else comment that $EXEICON was not working on their system. That makes two now out of about 50 people that downloaded it. I just loaded the code into my IDE and all is well? I'll look into this further and see if I can come up with an answer.
Thank you for the kind words we well
Terry
(01-09-2023, 05:01 PM)bplus Wrote: Ico file quite often needs ..\ before filename for some reason to be found.
_FULLSCREEN got me through first screen but not proportional grid in actual game.
Thanks for all of the suggestions. Prefixing the filepath with ./ did the trick. I now have $EXEICON:'./assets/favicon.ico' and it works as expected
RokCoder - dabbling in QB64pe for fun
Posts: 80
Threads: 7
Joined: Jan 2023
Reputation:
10
(01-09-2023, 05:01 PM)bplus Wrote: _FULLSCREEN got me through first screen but not proportional grid in actual game.
The code has _Stretch in it now and seems to work fine when I set a lower resolution to test with. I don't know why it isn't working for you. Are you still unable to alter the window size in the latest version?
RokCoder - dabbling in QB64pe for fun
Posts: 3,965
Threads: 176
Joined: Apr 2022
Reputation:
219
01-09-2023, 08:30 PM
(This post was last modified: 01-09-2023, 08:33 PM by bplus.)
$Resize:Stretch does work. Something is still off while I drag the screen out of the task bar, like a child that doesn't want to go to bed, sometimes the mouse is completely misaligned other times it's perfect, toggling between max and resize after placed so I can view the entire screen.
b = b + ...
Posts: 1,272
Threads: 119
Joined: Apr 2022
Reputation:
100
"Thanks for all of the suggestions. Prefixing the filepath with ./ did the trick. I now have $EXEICON:'./assets/favicon.ico' and it works as expected"
I'll make sure to do that from now on when using $EXEICON in my programs.
Posts: 80
Threads: 7
Joined: Jan 2023
Reputation:
10
I felt the implementation wasn't particularly friendly so I've made some updates - - Appearance has been improved with black square for unknown, white square for full and a cross for empty
- Music can be toggled on/off
- Sound effects can be toggled on/off
- Controls have been updated so that left button cycles through full, empty and unknown and right button cycles in reverse order
- Display of incorrect grid entries can be toggled on/off
- Hints can be toggled on/off (these display numbers in green if there is something on that row/column that can be deduced or white if not)
Grab the new version straight from GitHub
RokCoder - dabbling in QB64pe for fun
Posts: 1,272
Threads: 119
Joined: Apr 2022
Reputation:
100
(01-14-2023, 11:56 PM)RokCoder Wrote: I felt the implementation wasn't particularly friendly so I've made some updates -- Appearance has been improved with black square for unknown, white square for full and a cross for empty
- Music can be toggled on/off
- Sound effects can be toggled on/off
- Controls have been updated so that left button cycles through full, empty and unknown and right button cycles in reverse order
- Display of incorrect grid entries can be toggled on/off
- Hints can be toggled on/off (these display numbers in green if there is something on that row/column that can be deduced or white if not)
Grab the new version straight from GitHub
I updated the tutorial's zip file so the latest version is downloaded.
Posts: 3,965
Threads: 176
Joined: Apr 2022
Reputation:
219
01-15-2023, 04:10 AM
(This post was last modified: 01-15-2023, 04:13 AM by bplus.)
(01-15-2023, 01:27 AM)TerryRitchie Wrote: (01-14-2023, 11:56 PM)RokCoder Wrote: I felt the implementation wasn't particularly friendly so I've made some updates -- Appearance has been improved with black square for unknown, white square for full and a cross for empty
- Music can be toggled on/off
- Sound effects can be toggled on/off
- Controls have been updated so that left button cycles through full, empty and unknown and right button cycles in reverse order
- Display of incorrect grid entries can be toggled on/off
- Hints can be toggled on/off (these display numbers in green if there is something on that row/column that can be deduced or white if not)
Grab the new version straight from GitHub
I updated the tutorial's zip file so the latest version is downloaded.
Terry has mentioned revealing artwork in his blurb about RokCoder's Game, ??? All I get is a "Congratulations" when puzzle is correctly clicked. Actually, I think I prefer it that way.
BTW see my 79 line version I am calling a Nonogram Trainer:
https://qb64phoenix.com/forum/showthread...7#pid12707
I only make you click to toggle white/black starting from all black.
b = b + ...
Posts: 1,272
Threads: 119
Joined: Apr 2022
Reputation:
100
(01-15-2023, 04:10 AM)bplus Wrote: (01-15-2023, 01:27 AM)TerryRitchie Wrote: (01-14-2023, 11:56 PM)RokCoder Wrote: I felt the implementation wasn't particularly friendly so I've made some updates -- Appearance has been improved with black square for unknown, white square for full and a cross for empty
- Music can be toggled on/off
- Sound effects can be toggled on/off
- Controls have been updated so that left button cycles through full, empty and unknown and right button cycles in reverse order
- Display of incorrect grid entries can be toggled on/off
- Hints can be toggled on/off (these display numbers in green if there is something on that row/column that can be deduced or white if not)
Grab the new version straight from GitHub
I updated the tutorial's zip file so the latest version is downloaded.
Terry has mentioned revealing artwork in his blurb about RokCoder's Game, ??? All I get is a "Congratulations" when puzzle is correctly clicked. Actually, I think I prefer it that way.
BTW see my 79 line version I am calling a Nonogram Trainer:
https://qb64phoenix.com/forum/showthread...7#pid12707
I only make you click to toggle white/black starting from all black.
I got that after doing a Google search for Hanjie. According to the rules of the game the finished puzzle should reveal a picture contained in the squares. Does this version not do that?
|