Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - STos

Pages: [1] 2
1
Perfect! as always KrazyK.

Just to let you know it runs flawlessly under Wine on Linux.

2
Hey everyone!

Haven't looked into this forum for quite a while and also haven't done much for the last couple of years.
Good to see there's some recent activity happening here and the website also seems to be working much better than last time I checked!

Didn't find a fitting subforum to post this but I managed to get a little demo done for Revision this year.
It's for Pico8, which is coded in Lua, so it's probably quite a bit different from the languages that are popular here.
However, all source code is included, so if anyone is interested, you're welcome to have a look.
You can find the download at Pouet.
Have fun and let me know what you think you think about it!
Cheers.

Great Pico8 magic, nice work hellfire.

Thanks for including the source and sharing the knowledge.

3
Projects / Re: Stax 32 remake
« on: April 16, 2024 »
Hi KrazyK,

Always a good idea to take a step back and a break.  Hell I think my break from the twiddle screen was about 2 years if I had to take a guess, but It all clicked in a matter of a couple of days when I returned.

The last thing you want to do is slogg away making it not enjoyable as it will deter you from further great work.

All the best.

4
Purebasic / Re: Remake source
« on: March 25, 2024 »
I've attached some scrolltext examples in this here zip file.
Some basic scrollers and a couple more complex ones including the sinewave tube scroller.
Feel free to adapt it and make it better and use it where you wish.

Thanks KrazyK.

I hope you don't mind but I'm working through them under the Linux demo version of PureBASIC and have had to make changes to get them to compile and run.

For anyone running the Linux version here is the first example.  This should provide enough information to get the other to compile & run (fingers crossed).

Just as a side note, this is why I've never commited to purchasing the full Linux product as I'm not confident in the cross Linux/Windows compatibility, and I think the PureBASIC developers have had long enough to address/sort out these inconsistances.
Code: [Select]
; Scroll_example1_Image.pb by KrazyK
;
; Ammended to compile & run for Linux demo version 5.31 by SToS

; Added to pass compilation on my system
Import "-no-pie"
EndImport

;Drawing a scroller on a sprite then displaying the sprite
If InitSprite() = 0 Or InitKeyboard() = 0
  MessageRequester("Error", "Sprite system can't be initialized", 0)
  End
EndIf

; Added to get anything to display? I think OpenWindowScreen is broken on Linux or at least the demo version 5.31
OpenScreen(800, 600, 32, "Scroll Example 1")

; Removed the following, see above
;OpenWindow(0,0,0,800,600,"",#PB_Window_ScreenCentered|#PB_Window_BorderLess)
;OpenWindowedScreen(WindowID(0),0,0,800,600,0,0,0)
;StickyWindow(0,1)

Enumeration
        #font
        #tmpimg
        #scrollsprite
EndEnumeration

CatchImage(#font,?font)               
CreateSprite(#scrollsprite,800,64)     ;draw scroltext on here

Global xmove=64*12,speed=8,letter=1
Global scroll$="  THIS IS AN IMAGE ON SPRITE THIS IS A TEST SCROLLER  THIS IS AN IMAGE ON SPRITE THIS IS A TEST SCROLLER  THIS IS AN IMAGE ON SPRITE THIS IS A TEST SCROLLER  THIS IS AN IMAGE ON SPRITE THIS IS A TEST SCROLLER           THIS IS AN IMAGE ON SPRITE THIS IS A TEST SCROLLER  THIS IS AN IMAGE ON SPRITE THIS IS A TEST SCROLLER                     "

Global alpha$=" !     '()  ,-./0         :    ? ABCDEFGHIJKLMNOPQRSTUVWXYZ"             ;font layout


Procedure Scroller()
       
        StartDrawing(SpriteOutput(#scrollsprite))
        For i=1 To (800/64)+2
                t$=Mid(scroll$,letter+i,1)              ;next letter
                pos=FindString(alpha$,t$)-1     ;get the position in font alphabet
                GrabImage(#font,#tmpimg,64*pos,0,64,64)
                DrawImage(ImageID(#tmpimg),xmove+(i*64),0)
        Next i
        StopDrawing()
        FreeImage(#tmpimg)
       
        xmove-speed
        If xmove=-128:xmove=-64:letter+1: EndIf
        If letter>Len(scroll$):letter=1:xmove=64*12:EndIf
       
        DisplayTransparentSprite(#scrollsprite,0,300)
       
EndProcedure


Repeat
        ;Removed, not needed for fullscreen
        ;event=WindowEvent()
        ClearScreen(0)
       
        Scroller()
       
        FlipBuffers()       
       
        ExamineKeyboard()
; Added, as GetAsyncKeyState is Windows only
Until KeyboardPushed(#PB_Key_Escape)
; Removed, see above
;Until GetAsyncKeyState_(#VK_ESCAPE)
     


DataSection
        font:   :IncludeBinary "./GFX/bigfont.bmp"
EndDataSection

5
Projects / Re: No Escape oldskool stylie
« on: March 24, 2024 »
nice one once again krazy k... oh, and thanks for the greets too :) i watched it twice over to make sure i saw it the first time :D

Ditto, I had to look twice; albeit using a hex editor ;D

Never been mentioned in a scrolltext before, but then I had no reason to be either.
It took me back a bit, KrazyK popped my greetz cherry! :bfuck2:

6
Projects / Re: No Escape oldskool stylie
« on: March 23, 2024 »
Left Alt - if you managed to get that far in the scrolltext.

I'll be honest, I cheated and looked at the scrolltext using a hex editor to find the escape button.
The speed was diminishing with every extra effect, I had no patience; sorry.


These bloody bugs in DBF are killing it.  No smileys, occasional attachment errors, on and on...........

7
Projects / Re: No Escape oldskool stylie
« on: March 23, 2024 »
Thanks for the info STos. I never knew exactly what the scrambler did until now. Did the demo work ok on Wine?

Runs reasonable upto the 3Dballs then I can notice a slow down, but it's not until the sine/rotating scroller when I can start to physically count the frames.

Just my crappy laptop though!

P.S. No-Escape = kill -9 $(pgrep No-Escape) ;)

8
Projects / Re: No Escape oldskool stylie
« on: March 23, 2024 »
Hey.

Did you kinda pack the exe with UPX or something - defender went crazy when I try to run the exe.

cheers.
It's packed with upx and a upx scrambler.
I can post the unpacked exe later?

Knurz,

In a hex editor open .EXE file.

In the sections header, change...
   "code" to "UPX0"
   "text" to "UPX1"
   "rsrc" to "UPX2"

..and after "3.96\0" (33 2e 39 36 00) change the 4 next bytes to "UPX!"

Save.

Unpack with normal UPX -d.

Not really scrambled!


KrazyK, fine work.  Keep'em coming.

9
Freebasic / libbasszxtune
« on: March 20, 2024 »
I've revisited FreeBASIC in the last day or two after inspiration from old Shockwave posts and seeing what it can achieve.

Anyhoo. I was in need of an AY/YM/SID library for my C/C++ projects and came across libbasszxtune and therefore created a library header for FreeBASIC inclusion.

I couldn't find an implementation already but if you have beaten me to it, sorry for hijacking!

I include an archive below...  NOT been tested on anything other than Linux x86_64 (Debian bullseye).
Please let me know if it doesn't work if tested within MY test parameters.

You're on your own for Windows/Apple/Android or Linux 32bit, sorry!

10
Projects / Re: TLB Twiddle demo
« on: March 19, 2024 »
Try the attached and press 1 for BilinerFiltering and 2 to for no filtering to see if it makes a difference for you.

No noticeable difference but thanks for that KrazyK, appreciated.


11
Projects / Re: TLB Twiddle demo
« on: March 19, 2024 »
Nice KrazyK,

This one runs at a reasonable rate under Wine on my laptop.

Question about PureBASIC....
Did you use smoothing on the rendering? I ask because I wonder if there is much of a speed improvement if it's turned off (if possible), or is that just how PureBASIC rolls?

Again, good one.

12
Projects / Re: TLB Megatube intro
« on: March 18, 2024 »
Did you use SDL/Raylib?

I used SFML (C++), but I also like to (as good excersise) convert them to SDL (C) and Raylib (C) if possible (and vice versa) as it helps retain the knowledge (being an old git now.)
I've also in the past used the good old Allegro framework and the TinyPTC framebuffer library.

My preference is always C apart from my first love, that being M68000 assembly, the best processors (in my opinion) ever made.

13
Projects / Re: TLB Megatube intro
« on: March 17, 2024 »
My effort so far, just the music to do!

https://youtu.be/uU4jFWmiY1I

Now complete with audio! Finally!
https://youtu.be/5nWPhwptM_c

14
Projects / Re: TLB Megatube intro
« on: March 16, 2024 »
Nice one too, unfortunately still only about 3-4 FPS under Wine for me :'(

How do you feel about taking on the TLB Twiddle screen from Dark Side Of The Spoon? ;D
It has a huge pre-calculated rotated/zoomed font, I'm actually trying to disassemble it at the moment WIP.

I actually started that one a little while ago got it as far as getting the text bending without the raster behind.  I might pick it back up now that you've reminded me :-)

Like me, I'm back and forth and have it "working" albeit without music and rasters behind the "twiddle" font.
For some reason (probably my own stupidity) the math's didn't translate; I thought maths is maths right A+B in M68000 or JS or ? would be the same in C/CPP.
So my version is a "looks like" version at the moment.

15
Purebasic / Re: Remake source
« on: March 16, 2024 »
 :updance:
Thank you KrazyK


16
Projects / Re: TLB Megatube intro
« on: March 16, 2024 »
Nice one too, unfortunately still only about 3-4 FPS under Wine for me :'(

How do you feel about taking on the TLB Twiddle screen from Dark Side Of The Spoon? ;D
It has a huge pre-calculated rotated/zoomed font, I'm actually trying to disassemble it at the moment WIP.

17
Projects / Re: The Ah Yeah! screen
« on: March 16, 2024 »
You're on a roll sir, nice!

P.S. Do your user libraries have source too? ;)
Not really familiar with PureBASIC, could a Linux version be possible without the user libraries?

18
Projects / Re: A brief history of time
« on: March 09, 2024 »
Thanks STos, that's abig help to me. I can progress now. You'll have to tell me how you did it if you get the time.

Nothing special or technical really.
In this instance I simply used Hatari debugger to create a memory dump and ripped the fonts using GfxRip on that memory dump.

19
Projects / Re: A brief history of time
« on: March 09, 2024 »
Yes the Digital Insanity 3rd screen from the mindbomb demo.  It might take a while as i'm struggling to get the font from iton my initial attempt.

Would 1 bit raw converted to PNG's taken straight from the Atari ST demo be any good?
Here you go if you want them...
I can also provide them as raw binary data if required.

20
Projects / Re: A brief history of time
« on: March 07, 2024 »
No problem.  I'll just have to tidy it up and comment it which will take a while as i've started ripping the Oh Yeah screen from the same demo now as I haven't done any Digital Insanity remakes yet.

I understand, I wouldn't want anyone to see my code either with it being uncommented and probably unconventional to the elite. :-[

Do you remake based on original code m68k disassembly or like me have used the codef source at WAB.COM as the basis for your conversions?

I have part converted a lot of WAB.COM codef html5/javascript examples to c/c++ using SFML/SDL1.2/SDL2/Raylib.  I may one day if brave enough share some/all of them.

Is the Ah Yeah screen the one off The Mindbomb Demo by Digital Insanity?
I look forward to your remake regardless.

Pages: [1] 2