Jump to content

BigNickBrick

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by BigNickBrick

  1. Problem fixed thanks to Rick just dropped a clean app.lua file in the script folder, thanks to all for helping!
  2. thank you! I tried to start a new project and it's still the same app.lua file. im not sure exactly where that should go but i'll play with it!
  3. Like this? Obviously, something is still off, as it's not loading still! Thank you for the help by the way, I really do appreciate it, hard being a noob, but my learning curve is usually pretty good. --This function will be called once when the program starts function App:Start() --Set the application title self.title="MyGame" --Create a window self.window=Window:Create(self.title) self.window:HideMouse() --Create the graphics context self.context=Context:Create(self.window,0) if self.context==nil then return false end --Create a world self.world=World:Create() self.world = World:Create() -- load the starting map local mapfile = System:GetProperty("map", "Maps/start.map") if Map:Load(mapfile) == false then return false end end --This is our main program loop and will be called continuously until the program ends function App:Loop() --If window has been closed, end the program if self.window:Closed() or self.window:KeyDown(Key.Escape) then return false end --Update the app timing Time:Update() --Update the world self.world:Update() --Render the world self.world:Render() --Render statistics self.context:SetBlendMode(Blend.Alpha) if DEBUG then self.context:SetColor(1,0,0,1) self.context:DrawText("Debug Mode",2,2) self.context:SetColor(1,1,1,1) self.context:DrawStats(2,22) self.context:SetBlendMode(Blend.Solid) else self.context:SetColor(1,1,1,1) self.context:DrawText("FPS: "..Math:Round(Time:UPS()),2,2) end --Refresh the screen self.context:Sync(false) --Returning true tells the main program to keep looping return true end
  4. Sorry, I do have that portion in my app.lua i'll post the whole thing, something has to be missing i can't run anything not even the tutorial! --This function will be called once when the program starts function App:Start() --Set the application title self.title="MyGame" --Create a window self.window=Window:Create(self.title) self.window:HideMouse() --Create the graphics context self.context=Context:Create(self.window,0) if self.context==nil then return false end --Create a world self.world=World:Create() end --This is our main program loop and will be called continuously until the program ends function App:Loop() --If window has been closed, end the program if self.window:Closed() or self.window:KeyDown(Key.Escape) then return false end --Update the app timing Time:Update() --Update the world self.world:Update() --Render the world self.world:Render() --Render statistics self.context:SetBlendMode(Blend.Alpha) if DEBUG then self.context:SetColor(1,0,0,1) self.context:DrawText("Debug Mode",2,2) self.context:SetColor(1,1,1,1) self.context:DrawStats(2,22) self.context:SetBlendMode(Blend.Solid) else self.context:SetColor(1,1,1,1) self.context:DrawText("FPS: "..Math:Round(Time:UPS()),2,2) end --Refresh the screen self.context:Sync(false) --Returning true tells the main program to keep looping return true end
  5. ah **** i deleted something out of the app.lua file maybe you could help me get it back to right --This function will be called once when the program starts function App:Start() --Set the application title self.title="MyGame" --Create a window self.window=Window:Create(self.title) self.window:HideMouse() --Create the graphics context self.context=Context:Create(self.window,0) if self.context==nil then return false end --Create a world self.world=World:Create() end
  6. I bought the indie edition through steam, that could be why.
  7. I can't download it, it says im unable too! Edit: I dont have Permission!
  8. I was wondering how I take that nice sky background and well, use it!
  9. Bought Leadwerks on Steam today, completely new to this i have used gamemaker i know its completely differen't i like the program theres only a few holes in my head that i haven't filled in but I like figuring out that kinda stuff, but i might ask for help!
×
×
  • Create New...