Jump to content

Yue

Members
  • Posts

    2,302
  • Joined

  • Last visited

Everything posted by Yue

  1. Thanks!! Here on Lua. self.entity:SetDebugPhysicsMode(true)
  2. Ok, This is the most real thing I can do. ventana = Window:Create() lienzo = Context:Create(ventana) mundo = World:Create() x = 0 mapa = 0 function Loading() lienzo:DrawText("Loading Map...",lienzo:GetWidth()/2,lienzo:GetHeight()/2+75) lienzo:Sync() end while x <= 200 do x = x + 1 if x == 100 then cargar = true end lienzo:DrawRect(lienzo:GetWidth()/2-50,lienzo:GetHeight()/2-25.5, x, 25, 0 ) lienzo:DrawRect(lienzo:GetWidth()/2-50,lienzo:GetHeight()/2-25, 200, 26, 1 ) lienzo:SetBlendMode(Blend.Alpha) lienzo:DrawText("Loading",lienzo:GetWidth()/2,lienzo:GetHeight()/2+25) lienzo:Sync() if cargar == true then mapa = Map:Load("Maps/07-AI and Events.map","Loading") cargar = false end end -- Level 1 Render. while true do if ventana:Closed() or ventana:KeyDown( Key.Escape )then return false end mundo:Update() mundo:Render() lienzo:SetBlendMode(Blend.Alpha) lienzo:SetColor(1,0,0) lienzo:DrawText("HOLA",0,0) lienzo:Sync() end
  3. Test My Solution. Bar Progress Animating. No work. 'loadingScreenActive' Where? ventana = Window:Create() lienzo = Context:Create(ventana) mundo = World:Create() local x = 0 local mapa = nil while mapa == nil do mapa = Map:Load("Maps/start.map") x = x + 1 lienzo:DrawRect(0,0, x, 50, 0 ) if x >= 100 then x = 100 end lienzo:Sync() end while true do if ventana:Closed() or ventana:KeyDown( Key.Escape )then return false end mundo:Update() mundo:Render() lienzo:Sync() end
  4. How can I see the bodies in the game on Lua?
  5. Hello, I have a strange problem when I want to run the full screen in Leadwerks 4.4. local s = Vec2(System:GetGraphicsMode(System:CountGraphicsModes() - 1).x, System:GetGraphicsMode(System:CountGraphicsModes() - 1).y) window = Window:Create("Test",0,0,s.x,s.y,Window.FullScreen) Result :
  6. local s = Vec2(System:GetGraphicsMode(System:CountGraphicsModes() - 1).x, System:GetGraphicsMode(System:CountGraphicsModes() - 1).y) window = Window:Create("Test",0,0,s.x,s.y,Window.FullScreen) No, No work, result Here:
  7. This No work on 4.4. window=Window:Create("app test full screen 4.4",0,0,800,600,Window.FullScreen) Result:
  8. Hello, you mean I did not start the GUI system in version 4.4, will it work correctly Full Screen?
  9. Hello, version 4.4 does not work correctly in full screen mode. So I've returned to version 4.3 that does not have a GUI system, any suggestions for creating buttons for a menu and system options?
  10. Ok, the only thing that worked was to install version 4.3, this has no problems with the full display.
  11. ok, i back to 4.3, run perfect fullscreen.
  12. mmmmmmmmm, How do I know which version I have installed? And how do I update it?
  13. Test new. --Create a window window = Window:Create("app", 0, 0, 800,600,Window.Fullscreen + Window.Center) context = Context:Create(window) world = World:Create() local camera = Camera:Create() camera:Move(0,0,-3) local light = DirectionalLight:Create() light:SetRotation(35,35,0) model = Model:Box() model:SetColor(0.0,0.0,1.0) while true do if window:Closed() or window:KeyHit(Key.Escape) then return false end model:Turn(0,Time:GetSpeed(),0) Time:Update() world:Update() world:Render() context:Sync(false) end Result:
  14. Hello, it's the default code found on Main.lua. --Create a window local windowstyle = 0 local winwidth local winheight local gfxmode = System:GetGraphicsMode(System:CountGraphicsModes()-1) if System:GetProperty("devmode")=="1" then gfxmode.x = math.min(1280,gfxmode.x) gfxmode.y = Math:Round(gfxmode.x * 9 / 16) windowstyle = Window.Titlebar else gfxmode.x = System:GetProperty("screenwidth",gfxmode.x) gfxmode.y = System:GetProperty("screenheight",gfxmode.y) windowstyle = Window.Fullscreen end window=Window:Create(title,0,0,gfxmode.x,gfxmode.y,windowstyle)
  15. Hello, I have a problem here. When I launch the application in full screen mode in a version to distribute, I get the following error. Any suggestions?
  16. Thanks!! window=Window:Create(title,0,0,gfxmode.x,gfxmode.y,Window.Titlebar+Window.Center)
  17. One question, how do I center a window with respect to the width and height of the desktop?
  18. Here error on DrawText, What am I doing wrong?
  19. Yue

    EuroTrip II

    Perfect!!
×
×
  • Create New...