Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text Effect
#4
I'm amazed the Naalaa 5 code to achieve the star wars crawling text effect is only 35 lines !
I still have Naalaa 5, Naalaa 6, and of course Naalaa 7 on my computer  Big Grin

Code:
rem ==================================================================
rem Mode 7 - Bonus example.
rem
rem By Marcus.
rem ==================================================================

rem Import libraries.
import "Mode7.lib"
import "Speed.lib"

rem Set window.
set window 16, 16, 512, 384, false, 1
set redraw off

rem Init mode 7.
proc M7_Init width(primary), height(primary), 3.0

rem Load map.
flags[][] = M7_LoadMap("m7_data/starwars_map.txt")
if sizeof(flags) = 0 then end

rem Change fog.
proc M7_SetFog 0, 0, 0, 1.0, 3.0

z# = 0.5
do
    z = z + 0.008

    set color 0, 0, 0
    cls
    proc M7_Render 0.5, z, 0.4, 270.0, -128, 70.0

    redraw
    proc SPD_HoldFrame 10
until z > 5.5 or keydown(27) or not running()
Reply


Messages In This Thread
Text Effect - by 1micha.elok - 12-08-2024, 03:49 PM
RE: Text Effect - by johnno56 - 12-08-2024, 05:49 PM
RE: Text Effect - by kevin - 12-09-2024, 11:19 AM
RE: Text Effect - by 1micha.elok - 12-09-2024, 01:40 PM
RE: Text Effect - by Marcus - 12-09-2024, 04:40 PM
RE: Text Effect - by Marcus - 12-09-2024, 05:41 PM
RE: Text Effect - by johnno56 - 12-09-2024, 06:45 PM
RE: Text Effect - by 1micha.elok - 12-09-2024, 11:01 PM
RE: Text Effect - by johnno56 - 12-10-2024, 06:02 AM
RE: Text Effect - by 1micha.elok - 12-11-2024, 04:25 AM
RE: Text Effect - by johnno56 - 12-11-2024, 06:52 AM
RE: Text Effect - by 1micha.elok - 12-11-2024, 08:10 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)