Author Topic: IViewer  (Read 12429 times)

0 Members and 1 Guest are viewing this topic.

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: IViewer
« Reply #45 on: September 14, 2013, 02:14:23 am »
By the way, when drawing images, do the content remains on the graph screen as if the pixels were turned ON? Just wondering if Pxl-test is useable with them.

Also the routines could be handy for hybrid BASIC games, although for tilemaps it might be on the slow side.

Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: IViewer
« Reply #46 on: September 14, 2013, 03:01:48 am »
All drawing is done straight to the screen, to allow the OS to read it would limit the number of colors from over 200,000 to under 20 :( However I've created a ReadPixel function that will return the color of a pixel at a location. I may add a tilemap routine in the future. Here's an updated list of functions that work with the IViewer library:

N 0=Initialize(X version)
N 1=DrawImage(X x, Y y, R var[0-8], Str1-9 image name)
N 2=FillScreen(R red, X green, Y blue , T screen (0=full,1=left,2=right))
N 3=CopyBackground(X x, Y y, R id [0-4], T Size[8,16,32])
N 4=PasteBackground(X x, Y y, R id [0-4], T Size[8,16,32])
N 5=WriteText(X x, Y y, T char color, R background color, str0 text)
N 6=HideScreen()
N 7=ShowScreen()
N 8=LowRes()
N 9=HighRes()
N 10=LowColorMode()
N 11=FullColorMode()
N 12=InvertScreen()
N 13=SwitchScreen()
N 14=OSDefaultScreen()
N 15=ClearHomeScreen()
N 16=GetVersion()-returns version in Ans
N 17=ReadPixel(X x, Y y)-returns R red, X blue, Y green
N 18=ScrollScreen(X value)
N 19=VarToText(R value)-returns the variable as a text string in str0

Here's a video demonstrating the copy an paste background functions:


I've seen a couple games being developed with it and they're look pretty good. Once its complete I may start a competition to see what it can do. I really need to finish it so I can get back to making some games!

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: IViewer
« Reply #47 on: September 14, 2013, 03:49:26 am »
wha, that is awesome! Great job! :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

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: IViewer
« Reply #48 on: October 17, 2013, 01:51:55 pm »
Wow I missed this, this looks actually fast, particularly filling the screen. Tilemaps would most likely be fast enough with Iviewer.

Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: IViewer
« Reply #49 on: October 17, 2013, 04:37:37 pm »
Thanks, I still haven't finished it or even worked on it in a while! I'll throw up a private video of the image converter grabbing data for gif animations and modify this post.

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: IViewer
« Reply #50 on: October 17, 2013, 04:44:32 pm »
By the way, this doesn't use any parser hook, right? Can Iviewer games still be used even if DCSE is installed? With the original xLIB APP for monochrome calcs, there were many complaints because xLIB hooks screwed with Symbolic and Omnicalc.

Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: IViewer
« Reply #51 on: October 17, 2013, 05:02:36 pm »
This uses ExecLib and I haven't tested it with DCSE, but it should work. I *think* multiple libs can be opened and called in a program.

Here is a debug version of my unfinished Animated GIF Converter. As I click, the frame advances and the converter only saves the parts of the image that change from frame to frame to reduce the file size and increase the speed. The difference threshold is custom so lower qualities and sizes can be selected:


Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: IViewer
« Reply #52 on: October 18, 2013, 06:04:05 pm »
awesome as usual! :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

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: IViewer
« Reply #53 on: October 24, 2013, 02:18:59 am »
Very nice, and glad you are implementing the WabbitEmu way of doing animated GIFs. I hate how large VirtualDub GIFs can get because it overwrites the entire GIF every frame.

Just one thing, though: If that is implemented on-calc, I assume there will be issues with GIFs suddenly speeding up then slowing down, right?

Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: IViewer
« Reply #54 on: October 25, 2013, 12:40:48 am »
I'm going to try to have it acknowledge the millis frame request if it can keep up. Complex/fast animations will lag behind probably. I wish I had an on calc demo but I have to rewrite most of the app to get it to work. The converter itself is almost ready though. I should be putting more work into it but I think of games faster than I can make them :(

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: IViewer
« Reply #55 on: October 25, 2013, 09:28:29 am »
[...] but I think of games faster than I can make them :(
Be happy while you still are that way, eventually you'll run out of ideas :/

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: IViewer
« Reply #56 on: October 25, 2013, 09:38:50 am »
Be happy while you still are that way, eventually you'll run out of ideas :/
Yeah, I know that right. D:

Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: IViewer
« Reply #57 on: October 25, 2013, 04:54:22 pm »
Got a few of them coming eventually...

mario,moonlander,cydia,code zombie,kill hunt,they,dragster

Offline tpt1234567890

  • LV3 Member (Next: 100)
  • ***
  • Posts: 45
  • Rating: +0/-0
    • View Profile
Re: IViewer
« Reply #58 on: October 29, 2013, 05:50:58 pm »
Awesome job, dude!

Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: IViewer
« Reply #59 on: October 29, 2013, 06:51:01 pm »
Thanks tpt1234567890!