Page 2 of 4

Re: Eye of the Beholder IV

Posted: Wed Sep 14, 2011 6:17 pm
by J. Baker
So, does the following not run on Win7 either? As this is what I gave you in your other topic as an example.

Code: Select all

;scales a low resolution 16x9 screen to a monitor of any aspect ratio
;July 28 2010

If InitSprite() = 0 Or InitKeyboard() = 0
    MessageRequester("Error", "Sprite system can't be initialized", 0)
   End
EndIf

ExamineDesktops()

  KeepAspect = (DesktopHeight(0) - (DesktopWidth(0)  / 16) * 9) / 2 ;this line does it all mathematically

If OpenWindow(0, 0, 0, DesktopWidth(0), DesktopHeight(0), "16x9 Low Resolution Test", #PB_Window_BorderLess)
   
    SetWindowColor(0, RGB(0, 0, 0))

    If OpenWindowedScreen(WindowID(0), 0, KeepAspect, 640, 360, 1, 0, KeepAspect)
   
         CreateSprite(0, 640, 360)
        If StartDrawing(SpriteOutput(0))
           Box(0, 0, 640, 360, RGB(255, 255, 255))
           Box(32, 32, 256, 256, RGB(0, 0, 255))
           Box(256, 256, 64, 64, RGB(255, 0, 0))
           Box(384, 128, 512, 512, RGB(0, 255, 0))
          StopDrawing()
        EndIf
   
      Else
       MessageRequester("Error", "Can't open windowed screen!", 0)
      End
    EndIf
   
EndIf

Repeat

   ExamineKeyboard()

  Repeat
   Event = WindowEvent()
     
    If Event = #PB_Event_CloseWindow Or KeyboardPushed(#PB_Key_Escape)
        End
    EndIf
  Until Event = 0
   
    SetFrameRate(30)
     FlipBuffers()
     ClearScreen(RGB(0, 0, 0))
    DisplaySprite(0, 0, 0)
   
ForEver

Re: Eye of the Beholder IV

Posted: Wed Sep 14, 2011 6:40 pm
by PMV
takis76 wrote:I changed the resolution from 640x400 to 640x480 and the game worked with some flickering on the screen.
Image have you anything read what i/ we have told you? Of course 640x400 doesn't work. :x
And i'm now really confused that my monitor can handle that. :lol:

for all the people who are wearing special clothes ...
thats why posting ready to copy code doesn't help

:twisted:


The Alt-Tab problem is a good question. Because that is not really mentioned
in the help file. But what about searching in this forum? :wink:
1. Hint: The screen looses any data loaded when jumping out of the fullscreen.
2. Hint: IsScreenActive()
3. Hint: search in this forum (or http://purearea.net/) for code :)


Btw.
Kuron wrote:
takis76 wrote:

Code: Select all

OpenWindow(#Program_Window, 0, 0, 0, 0, "Game", #PB_Window_BorderLess | #PB_Window_ScreenCentered | #PB_Window_Maximize)
OpenWindowedScreen(WindowID(#Program_Window), 0, 0, 640, 400, 1, 0, 0, #PB_Screen_SmartSynchronization)
You are opening two windows, the windowed screen and a regular window. Look at the included PB example called windowed screen. It will show you how to do it right.
Where are the two windows? I see only a screen inside a window. Thats how it is needed.

MFG PMV

Re: Eye of the Beholder IV

Posted: Wed Sep 14, 2011 8:04 pm
by takis76
Did the version 0.001c worked? Because I have made some improvements.

have you anything read what i/ we have told you? Of course 640x400 doesn't work.
Yes but the version 0.001c worked in windows 7. I found one windows 7 here and worked.
Also I will test some change I made when I opening these windowed screens , and I put some WindowEvent()
and things improved much more and the ALT+TAB problem fixed , because when I am pressing ALT+TAB , my application
don't minimizes , but you can see and other opened windows and even if you click the show desktop icon in windows , you can return to my game without any problem.

I am testing my game in windows xp and 7.

Now I am working on with dropped items on the floor and I am using linked lists and WORKS PERFECT.
Stay tuned for the complete inventory engine. After that I will work with my level editor a little.

Thank you very much all of you again.
but still you've only just come to PB and I'm still pissing around with my Tools, haven't even started on my engine... jealousy
What engine are you creating? (Dungeon Crawler?).

Re: Eye of the Beholder IV

Posted: Thu Sep 15, 2011 2:48 am
by Kuron
PMV wrote: Where are the two windows? I see only a screen inside a window. Thats how it is needed.
He says he is seeing two windows on his screen, the only way that can happen is if you are opening two. Obviously, he is doing more than what he shows in the code example for that to happen.

Re: Eye of the Beholder IV

Posted: Thu Sep 15, 2011 3:05 am
by Kuron
takis76 wrote: Now I am working on with dropped items on the floor and I am using linked lists and WORKS PERFECT.
I am glad to hear it! I am really looking forward to seeing this progress.

Re: Eye of the Beholder IV

Posted: Thu Sep 15, 2011 9:22 am
by takis76
So, does the following not run on Win7 either? As this is what I gave you in your other topic as an example.
I use a similar code you gave me and I check and windowevent()
Here I test my game and works prefect in windows 7 too. I clicked and everywhere and nothing stucks and all are functional.
Version 0.002 will be out very soon.

Re: Eye of the Beholder IV

Posted: Thu Sep 15, 2011 9:43 am
by J. Baker
takis76 wrote:
So, does the following not run on Win7 either? As this is what I gave you in your other topic as an example.
I use a similar code you gave me and I check and windowevent()
Here I test my game and works prefect in windows 7 too. I clicked and everywhere and nothing stucks and all are functional.
Version 0.002 will be out very soon.
Sounds great! Keep up the good work! ;)

Re: Eye of the Beholder IV

Posted: Thu Sep 15, 2011 10:09 am
by Num3
Nice work!

I would suggest opening the game in a window, not in full screen.

This way the graphics will look much much better :D

Re: Eye of the Beholder IV

Posted: Thu Sep 15, 2011 12:10 pm
by takis76
I will put special command line option or setup configuration for this.
If some people like the game in window mode.

But for me , I like it in fullscreen.

Re: Eye of the Beholder IV

Posted: Thu Sep 15, 2011 3:47 pm
by Zach
Since you asked.

I am building a Text RPG Engine. No graphics!

It will be like a cross between the old style Text Adventure games, and more modern MUD games people play on The Internet. I am hoping to make it a very interactive experience, and possibly multi-player.

Re: Eye of the Beholder IV

Posted: Thu Sep 15, 2011 9:00 pm
by takis76
Perfect , you remember me 20 years ago , I was created one text adventure with GWBASIC. Do you remember the old
text adventure "The Castle adventure"? I have created with GWBASIC , but I don't have the files anymore.

So about text adventures and rpgs , I am planning to create this "Castle adventure" again in some time in the future.

Is a good idea. I will see all things you have about your text rpg , will be very useful.

:D

Re: Eye of the Beholder IV

Posted: Sat Sep 17, 2011 5:47 pm
by Zach
I have a huge discussion thread, where I have talked about ideas with other people.
Nothing is set in stone, but once I finish the Room building part of my tool and can make some place to "Walk around" then I will start with the engine and post updates. I already have some ideas for how the text rendering will be done, and will do stuff like Colored Text hopefully. I actually have not played very many Text Adventures because I found them too primitive and frustrating. Most of my experience is with MUDs on the Internet, but a lot of similarities cross over.

http://www.purebasic.fr/english/viewtop ... 16&t=45768

Re: Eye of the Beholder IV

Posted: Sat Sep 17, 2011 6:05 pm
by takis76
Do you have some demo of your text rpg engine?

Re: Eye of the Beholder IV

Posted: Sat Sep 17, 2011 8:41 pm
by takis76
I started to create my level editor a little and I was played with the splash screen of level editor.

Image

Do you like it?
I try to find some idea.

I will make some changes this is the alpha version of splash screen.

Re: Eye of the Beholder IV

Posted: Sun Sep 18, 2011 5:46 am
by Kuron
takis76 wrote:I started to create my level editor a little and I was played with the splash screen of level editor.

Image

Do you like it?
I try to find some idea.

I will make some changes this is the alpha version of splash screen.
Wow, looks awesome!!!