LoginLogin
Might make SBS readonly: thread

PTC Ports Volume 1 (Text Games)

Root / Submissions / [.]

MYCRAFTisbestCreated:
Download:R3TXVNNV
Version:0.7Size:354405
This is a collection of some Petit Computer games converted to run as a standalone program in SmileBASIC. It is the first step of an upcoming effort to slowly implement a PTC to SB converter. As of now, the project is highly incomplete. There are 7 games included in this pack so far, ^^^^^^, Dot Racer (PTC), Just An Adventure, Man of Apples, Race, Tales From the Labyrinth, and Tennis. There are also 1 tech demo, Pinball, which shows off print console emulation. More games are planned to be added to this pack as well as other packs in the future. You can find the converter program at https://smilebasicsource.com/page?pid=713 although, remember, it is highly incomplete and buggy.

NOTE: No one has actively worked on this project since 2017. Anyone wanting to preserve PTC code for Smile Basic who wants to work off this code, please do.

CREATOR CREDITS ^^^^^^: THEV360 Dot Racer: SmileBoom Just An Adventure: SUPERFOO Man Of Apples: Casquall Pinball: MYCRAFTisbest Race: Randomouscrap Run!Run!: I can't find any credits for a creator, if anyone knows, please tell me. Tales From the Labyrinth: GS Games Tennis: SmileBoom Expect some bugs still, you can read the state of the games down below. VERSION 0.7 CHANGES Added Run!Run! (Touch screen support) Improved Tales From the Labyrinth fixing various colors and the title screen More accurate speed in Just An Adventure Removed Land VERSION 0.6 CHANGES Added Just An Adventure Added Tales From the Labyrinth Added Land Rebuilt Race with newer conversion method Partially rebuilt ^^^^^^ to draw damage bar on lower screen Rebuilt Pinball without manual edits to show off the new PRINT emulation VERSION 0.5 CHANGES Added ^^^^^^ Fixed graphical bug in Race Partly centered screen for Dot Racer Added lines to Tennis so walls are more clearly defined VERSION 0.2 CHANGES Added Race Added Pinball Added Man: Hunter of Apples Fixed most of the colors in Dot Racer

Instructions:

★☆☆☆☆ Broken: Does not start, syntax error
★★☆☆☆ Menu: Crashes somewhere between booting and starting
★★★☆☆ Starts: Game will start playing, but will eventually encounter an error
★★★★☆ Playable: Game is playable with only minor graphical or audio bugs
★★★★★ Perfect: No issues whatsoever

^^^^^^ (Caret6) ★★★☆☆ (Main game is playable but edit mode is broken, text on lower screen is only white)

A VVVVVV like game.
Flip gravity and solve unique platforming puzzles.


Dot Racer ★★★★☆ (minor color issues on title, sound issue when collecting dots)

Collect as many dots as you can in your car.
Use the D-Pad to move the car to different levels of the map.
And don't forget to watch out for aliens!


Just An Adventure ★★★★☆ (Minor inaccuracies in movement)

It's just an adventure. Move with DPAD, hold B to move slower.


Man: Hunter of Apples ★★★★☆ (Sprite of shiny red apple does not load)

You are a man who likes his apples.
Collect as many apples as you can before time runs out.
Move with the D-Pad.
Walk off the side of the screen and wrap around.
Can you get 50 apples?


Pinball ★★★★★

Press a button and gamble your life away.
This game isn't pinball, more like RNG the game.
Originally coded for the Apple II and published in a teaching book.
Re-coded for PTC because the code sounded nothing like pinball.
At least it runs perfectly.


Race ★★★★★

A game of concentration...
Can you cross the finish line?

Choose from 3 difficulties.
Use the D-Pad to move your car out of danger.

Note: This is no race, just you and the road


Tales From the Labyrinth ★★★☆☆ (Game runs at wrong speed (used VSYNC 2 in place of VSYNC 1 to help) missing custom sprites

Journey through a deadly realm on a quest to reach a long lost labyrinth and claim the amazing treasure said to be found on its final floor. Fight monsters, find food to avoid starving to death, use powerful magic found in scrolls and staves and beware of lethal traps!

All of the stages in the game are randomly generated so you'll get a completely unique adventure every time you play. It's a turn based strategy RPG where you'll really need all your wits about you to survive!


Tennis ★★★★★

Use the D-Pad to move the paddle at the bottom of the screen.
Stop the ball from getting past you.


RUN!RUN! ★★★★★

Run! collect everything as fast as you can!



So you were able to help me port text games but just refused to, then used my idea for your own project... Do you not feel that's in bad taste? At least you aren't porting Tales From The Labyrinth like I wanted to, but since you were able to do this, could you please actually help me with it? I just find it rather rude of you to do this, not that you can't I suppose, but I still feel hurt by this...

Replying to:ElzoBro
So you were able to help me port text games but just refused to, then used my idea for your own project... Do you not feel that's in bad taste? At least you aren't porting Tales From The Labyrinth like I wanted to, but since you were able to do this, could you please actually help me with it? I just find it rather rude of you to do this, not that you can't I suppose, but I still feel hurt by this...
Elzo, I'm just porting PTC games. It's an idea that many people of had including you. I plan to port that game along with many others hopefully even games like Village at some point. I'm treating this converter like an emulator. A lot use a star system so let's go with that. Tennis has 5 stars, it is fully playable with 0 known issues. Dot Racer is 4 stars, it runs and is playable, but some graphical and audio glitches occur. At this time, pretty much every other game is ether a 2 stars where it can boot to the title or partially loads and then crashes, or a 1 star where the game will not load at all. Once more games are supported I will port them as well as distribute the program that ports them. It's also worth noting that special characters are broken. A-Z, a-z, 0-9, and standard symbols like @$*& ect. will transfer fine, but special text will ether load as a ☒ or won't appear at all. For instance, the map for Dot Racer was completely gone. Only the house in the center (as a ☒) and spaces were left. All the walls and dots were gone and I had to put them back by hand. A PC converter would have to be implemented to prep files for transfer to avoid this or the methods of transfer (petit modem, SB File Manager) would have to convert them when they send. I'm sorry if I've somehow insulted you or hurt your feelings. So many people talked about doing this before and failed. You know what they always say, if you want something done right, you gotta do it yourself. (P.S. I used Petit Modem to transfer the files because FileManager didn't like the unknown characters and aborted the transfer).

Replying to:ElzoBro
So you were able to help me port text games but just refused to, then used my idea for your own project... Do you not feel that's in bad taste? At least you aren't porting Tales From The Labyrinth like I wanted to, but since you were able to do this, could you please actually help me with it? I just find it rather rude of you to do this, not that you can't I suppose, but I still feel hurt by this...
Ok, well not helping someone and then turning around and doing something not too disimilar from what the person who asked you wanted causes people to come to conclusions. Hence why I said bad taste. I also dont see why you wouldnt help me with something relatively simple, and not give a reason. Its rude, very simply. Good luck I guess, but can you actually help me with what I wanted to do? Youve shown that you obviously can and just decided to not to.

Replying to:ElzoBro
So you were able to help me port text games but just refused to, then used my idea for your own project... Do you not feel that's in bad taste? At least you aren't porting Tales From The Labyrinth like I wanted to, but since you were able to do this, could you please actually help me with it? I just find it rather rude of you to do this, not that you can't I suppose, but I still feel hurt by this...
Elzo, If you really want I can get you a copy of that game if you link me to the PTC original and you can port it by hand. I've never even played that game before. I just want to make it so we can get as many PTC games over to SB as possible.

I'd love to help in any way I can

So I wanted to ask how this works, is it like a library, or somethig else entirely, I'm super interested!

Replying to:ElzoBro
So I wanted to ask how this works, is it like a library, or somethig else entirely, I'm super interested!
i wouldn't be surprised if the games were just hand written but if you do want an actual PTC emulation layer, i still have plans about that

Replying to:ElzoBro
So I wanted to ask how this works, is it like a library, or somethig else entirely, I'm super interested!
There is a library of replacement functions as well as a parser (I think I suck at using the right terms) that goes through the code slowly and fixes some things, like arrays using parenthesis in PTC instead of square brackets as well as identify and swap out the functions.

Here's my PRINT replacement: KP44JD functions: _PRINT string$ _PRINT_ string$ 'print string without new line _COLOR text,bg 'Use -1 to not set a value, so _COLOR 3,-1 just sets the text color. _LOCATE x,y _CHKCHR(x,y) _CLS you can move the text around by using SPOFS 0,x,y (though you should probably GOFS the graphics layer too, so they line up)

Replying to:ElzoBro
So I wanted to ask how this works, is it like a library, or somethig else entirely, I'm super interested!
Ah, sounds cool! So the checking process on a computer, or did you somehow make something in SB?

Replying to:ElzoBro
So I wanted to ask how this works, is it like a library, or somethig else entirely, I'm super interested!
It's all done in SB. It probably makes more sense for a PC version since we're going to need a program to prevent the data loss from characters (12Me21 is working on that). The main reason I made it in SB itself is because it is much easier to test and debug. I'm in the middle of publishing version 0.02 and some unconverted PTC files for anyone who wants to mess with it or see how it works. As you'll find it, there are still some manual edits that need to be done at the moment for many games, but as DOTRACER.PTC shows, once we have a character converter (I manually re-inserted the title and map because they were lost) that some games can be converted perfectly.

Replying to:12Me21
Here's my PRINT replacement: KP44JD functions: _PRINT string$ _PRINT_ string$ 'print string without new line _COLOR text,bg 'Use -1 to not set a value, so _COLOR 3,-1 just sets the text color. _LOCATE x,y _CHKCHR(x,y) _CLS you can move the text around by using SPOFS 0,x,y (though you should probably GOFS the graphics layer too, so they line up)
Awesome! I'll have to try and work that into the next version of the converter thingy.