Eye of the Beholder IV (Ver 0.011) Level Editor (Ver 0.011)

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Eye of the Beholder IV

Post 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
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
PMV
Enthusiast
Enthusiast
Posts: 727
Joined: Sat Feb 24, 2007 3:15 pm
Location: Germany

Re: Eye of the Beholder IV

Post 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
User avatar
takis76
Enthusiast
Enthusiast
Posts: 143
Joined: Tue Aug 30, 2011 1:31 pm
Location: Athens - Greece

Re: Eye of the Beholder IV

Post 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?).
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: Eye of the Beholder IV

Post 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.
Best wishes to the PB community. Thank you for the memories. ♥️
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: Eye of the Beholder IV

Post 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.
Best wishes to the PB community. Thank you for the memories. ♥️
User avatar
takis76
Enthusiast
Enthusiast
Posts: 143
Joined: Tue Aug 30, 2011 1:31 pm
Location: Athens - Greece

Re: Eye of the Beholder IV

Post 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.
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Eye of the Beholder IV

Post 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! ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Re: Eye of the Beholder IV

Post 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
User avatar
takis76
Enthusiast
Enthusiast
Posts: 143
Joined: Tue Aug 30, 2011 1:31 pm
Location: Athens - Greece

Re: Eye of the Beholder IV

Post 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.
Last edited by takis76 on Sat Sep 17, 2011 11:06 am, edited 1 time in total.
Zach
Addict
Addict
Posts: 1675
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: Eye of the Beholder IV

Post 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.
User avatar
takis76
Enthusiast
Enthusiast
Posts: 143
Joined: Tue Aug 30, 2011 1:31 pm
Location: Athens - Greece

Re: Eye of the Beholder IV

Post 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
Zach
Addict
Addict
Posts: 1675
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: Eye of the Beholder IV

Post 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
User avatar
takis76
Enthusiast
Enthusiast
Posts: 143
Joined: Tue Aug 30, 2011 1:31 pm
Location: Athens - Greece

Re: Eye of the Beholder IV

Post by takis76 »

Do you have some demo of your text rpg engine?
User avatar
takis76
Enthusiast
Enthusiast
Posts: 143
Joined: Tue Aug 30, 2011 1:31 pm
Location: Athens - Greece

Re: Eye of the Beholder IV

Post 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.
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: Eye of the Beholder IV

Post 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!!!
Best wishes to the PB community. Thank you for the memories. ♥️
Post Reply