Author Topic: The Blue Platform Rebooted, Revamped, and just plain better!  (Read 118755 times)

0 Members and 1 Guest are viewing this topic.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: The Blue Platform Rebooted, Revamped, and just plain better!
« Reply #15 on: December 28, 2010, 01:46:07 am »
The scripting for that scene there looks like this:
Code: [Select]
intro_scene:
Pbackground(MapData,tileData)
Psprite(8,16,BlackMage+(32*5),P8x16m)
Psprite(25,16,Civilian,P8x16m)
Pupdatescreen
Pwait(1)
Pbackground(MapData,tileData)
Psprite(11,16,BlackMage+(32*6),P8x16m)
Psprite(25,16,Civilian,P8x16m)
Pupdatescreen
Pwait(1)
Pbackground(MapData,tileData)
Psprite(13,16,BlackMage,P8x16m)
Psprite(25,16,Civilian,P8x16m)
Pupdatescreen
Ptext(0,0,"This is a cutscene\nPress a key")
Pupdatescreen
Ppause
Ptext(0,0,"This is some more text")
Ppause
Pend
Currently I have 10 commands that are as follows:
Code: [Select]
Pend = end of the cutscene
Pclearscreen = clears the screen buffer
Pupdatescreen = updates the screen from the buffer
Ptext(x,y,text) = displays text on the screen
Psprite(x,y,sprite pointer,type) = displays a sprite on the screen
 sprite types:
 #P8x8 = 8*8 or
 #P8x16 = 8*16 or
 #P8x16m = 8*16 masked
Ppause = waits for a key to be pressed and then depressed (updates screen too) displays a small filled circle to alert users
Pwait(wait time) = waits n quarter seconds
Prect(x1,y1,x2,y2,color) = draws a rectangle on the screen
Pnull = do nothing, waste a few cycles
Pbackground(pointer,spriteset) = draws the tilemap at the location pointed to by pointer, using the spriteset pointed to by spriteset
Limitations of this scripting is, it has no logic operators, just basic display and timing.
It is pretty fast, thus Pwait() which can slow it down a little too slow, so I might tweak that command a little.
Scripting with it is pretty simple as the initial script shows.

EDIT: oh, and I forgot to mention, I just finished adding in the beginnings of an in game menu :)
« Last Edit: December 28, 2010, 01:46:45 am by Eeems »
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: The Blue Platform Rebooted, Revamped, and just plain better!
« Reply #16 on: December 28, 2010, 02:04:38 am »
Nice, is the scripting system some sort of macro system you can use in the assembler/IDE?
« Last Edit: December 28, 2010, 02:04:51 am by DJ Omnimaga »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: The Blue Platform Rebooted, Revamped, and just plain better!
« Reply #17 on: December 28, 2010, 03:20:35 am »
Actually it's more like basic, the correct value is stored for the command, followed by the arguments. So Pclearscreen is replaced with .db 1 while Psprite(0,0,BlackMage,P8x16m) would be replaced by .db 4,0,0 \ dw BlackMage \ .db P8x16m so the parses reads the first value, and runs the right subroutines and grabs the arguments accordingly. This cuts down on size, especially how big macros would make it, and with large amounts of cutscenes this makes it much more efficient, and easier to code.
I can also expand my script set to include more commands later on, which I probably will when I'm done, I will probably be releasing this as a tool for others wanting to code cutscenes but not wanting to go through the work of making a parsing engine.
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: The Blue Platform Rebooted, Revamped, and just plain better!
« Reply #18 on: December 28, 2010, 07:22:47 pm »
Mhmm I see. Thanks for the info. Seems like a great idea as it makes things much easier.
« Last Edit: December 28, 2010, 07:22:59 pm by DJ Omnimaga »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: The Blue Platform Rebooted, Revamped, and just plain better!
« Reply #19 on: December 28, 2010, 07:37:49 pm »
Np :)
yeah, I did something like that for my Hybrid one too, it would take up more room then this one though :P
/e

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: The Blue Platform Rebooted, Revamped, and just plain better!
« Reply #20 on: December 29, 2010, 01:03:26 am »
Ok, I've got saving/loading working! Same with setting the contrast while in game! While in the game press [clear] or [graph] or [mode] to open the in game menu, open settings, contrast and use [up]/[down] or [right]/[left] or [+]/[-] to change the contrast :) this contrast is also saved for when you exit the game.
/e

_player1537

  • Guest
Re: The Blue Platform Rebooted, Revamped, and just plain better!
« Reply #21 on: December 29, 2010, 03:50:41 pm »
Very cool Eeems :)  It took me a minute to realize the the spikes were the triangles on a stick, and not the ceiling >.>  Other than that, very very nice :D

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: The Blue Platform Rebooted, Revamped, and just plain better!
« Reply #22 on: December 29, 2010, 04:30:03 pm »
Lol :P Well I should probably include a help section after I'm done, explaining what tiles are what and how they effect you, or maybe just show it in the game's first level
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: The Blue Platform Rebooted, Revamped, and just plain better!
« Reply #23 on: December 30, 2010, 12:00:34 pm »
For the contrast, is it because the game uses fade-in/out effects? In that case it's a good idea to let the user choose a default contrast, as I did the mistake of not doing so a few years ago and on certain calc models, the game would be nearly unplayable because it is too light and on some others it is too dark.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: The Blue Platform Rebooted, Revamped, and just plain better!
« Reply #24 on: December 31, 2010, 01:39:36 am »
Yeah it is because of the fading. I have the contrast option working now so people can edit the contrast, I'll make a settings menu on the main menu too so people can change the contrast before going into a game.
/e

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: The Blue Platform Rebooted, Revamped, and just plain better!
« Reply #25 on: December 31, 2010, 01:50:40 am »
Maybe it can read the contrast when the game starts and use that as a reference?

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: The Blue Platform Rebooted, Revamped, and just plain better!
« Reply #26 on: December 31, 2010, 01:59:31 am »
It does actually, I'm just letting the users change it if they want. This also is saved for when you exit the game.
/e

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: The Blue Platform Rebooted, Revamped, and just plain better!
« Reply #27 on: December 31, 2010, 01:59:47 am »
ah i see :) Good work then! :D

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: The Blue Platform Rebooted, Revamped, and just plain better!
« Reply #28 on: December 31, 2010, 02:03:38 am »
Thanks :)
Btw, if you want to take a peek at the source just let me know I'll email you the current one :)
/e

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: The Blue Platform Rebooted, Revamped, and just plain better!
« Reply #29 on: December 31, 2010, 07:52:33 pm »
Settings menu on the main menu now :)
/e