Jump to content

ChrisMAN

Members
  • Posts

    174
  • Joined

  • Last visited

Everything posted by ChrisMAN

  1. As far as graphics goes my skill is my limit. A better renderer will only get me so far. LE 3 is a huge win for me.
  2. The only reason I would want to bake lighting in leadwerks 2 is if I didn't want something to be lit in a precise/mathematical way. I love leadwerks 2 lighting/shadows.
  3. Most of the c# serialization coolness is from reflection. C++ doesn't so much have that. There is some cheezy ms proprietary reflection thing... I would be curious to see if c++ has an automapper.
  4. Many of my colleagues have. Good mouse, and clipboard support. A modern font rasterer. Is the vintage mode any good?
  5. If you are feeling masochistic, which I often do, I recommend Vim. I don't recommend Vim to beginners but to people who are really serious about editing their code. Vim and Emacs are the 'true' text editors. Modal editing is vastly more productive. This should be contrasted with modesty and the fact that solving problems is infinitely more time consuming then typing things. I am a web developer by day. My main weapons are Ruby and Javascript. I deal with haml, coffeescript, sass, scss, markdown and many other texty things. The truth is outside of a decent debugger and syntax highlighting your editor doesn't give you much in a dynamic language. When it does I will have a real choice on my hands but... until then I will take all of the speed I can get. If you master vim you are faster at what you do. It took me a year. It sucked. The amount of Java/.Net web programmers minds I have blown by hacking in vim is kind of awesome. Gary Bernhardt is probably the most amazing vim user I have scene. He blows my mind how fast he is. http://blog.extracheese.org/2010/11/screencast-custom-vim-refactorings.html My vim settings are at my github account https://github.com/friesencr/vim-settings
  6. mouse is being declared outside the 'lexical scope' but because it is not declared with the local keyword it is being put in global scope which lets it work. In general global variables should be looked down upon. However after you find out why they are bad you will go through a dogmatic period of time where principles are the law of the land. Then after mastery is acquired you go back to breaking all of the rules whenever you feel like. So I guess I don't know what to say... ShowMouse and HideMouse do not require a parameter. I would leave the mx, my variable as they were and not set them in the gui loop. Also you do not need to use MoveMouse in the gui loop since you are moving that on your own. The MoveMouse command is often used to set the mouse back to the middle of the screen programatically when you have moved it manually. Due to the way the Curve function works it lags behind. I hope this helps.
  7. Thanks Josh. Now to test the steel of my marriage.
  8. What is the exact version of lua used in leadwerks? I assume with msvc?
  9. I am hearing you Ken. If i can't get at some of the native powers of lua I will have to rewrite my entire game in c/c++. I have 7000 lines of non trivial dynamic code. It will have a hard time porting and getting the same result. My wife grounded me from c++ last time i tried since the house was not pleasant. If I have to buy and read a book on gcc...
  10. Leadwerks uses LuaJit. LuaJit ships with ffi. Require ffi doesn't work. I am lost.
  11. ChrisMAN

    Decoda

    I am using vim (which i cannot love enough), but I have thought about trying to use http://studio.zerobr...obrane.com/ if i need to debug.
  12. ChrisMAN

    One Last Thing

    That code is expressive... its like.. you care.
  13. Don't forget you get to be standards compliant and open instead of using M$ propreitary short sighted vision. You can cross compile which is neato too.
  14. I think some interesting things could be done with lua and ffi to talk back to leadwerks
  15. I havn't gotten to pausing in my game but it might just stop the internal clock from moving forward which would stop animations that are using AppSpeed(). Total b.s. answer.
  16. ChrisMAN

    KeyHit

    Unlike C 0 is a truthy value in lua. Only nil and false are falsy everything else is truthy.
  17. ChrisMAN

    KeyHit

    key hit is missing an == 1 if KeyHit(KEY_E) == 1 then
  18. Why emulate when you can have perfectly legitimate reason to buy a new toy
  19. Is there a way to add lua.h against the engine.dll?
  20. I am a compiling newb how do you compile against the leadwerks built in lua?
  21. I have wanted to do the same but from what i saw only a small portion of the lua bindings are exposed in the engine. It would be very helpful for leadwerks to expose its internal c++ lua binding library and the native c one that ships with lua.
  22. This is good advise. If you learn c++ without learning c first you will not understand some of the stuff that is going on. Learn C the hard way is pretty tight. http://c.learncodeth...ay.org/book/ C is a lot less bull****; simple and effective. I love linus torvolds rant on c++. I hope that Josh exposes the rest of the lua bindings in the engine header file for leadwerks 3. We could see some really cool C + lua stuff.
  23. It runs on my laptop which has an intel hd 4000 and an nvidia 620. The intel hd 4000 worked until i upgraded to windows 8. The intel hd 4000 runs about 50% perf as the 620. If I don't run in 1920x1080 it is very tolerable. 800x600 usually gets me 60fps for my crappy game.
  24. Error messages are nice but... I feel the exact opposite about c++ being good for beginners. C++ is nothing but syntax sugar for blocks of memory. A beginner should be able to get results while building a foundation in problem solving without having to take on the the problems of compilers, pointers, templates. I don't know why all c++ devs decided they had to abbreviate variables and template names but it is pretty stupid. Try finding beginner information on c++ iterators. The documentation styles for c++ are arcane and ineffective. Some of the new c++11 stuff really breathes fresh air into it but if you are coding in visual studio you won't see those features for a while. To make matters worse a lot of developers get stuck in structural programming languages like c++ before they learn object oriented ones, or functional styles of programming. To contrast it is a foundational language that is great for making video games. It teaches algorithmic thinking and performance. It is undergoing a bit of a renaissance and will be a fantastic environment once the right people get involved. Most importantly its rise will hearken the end of the dark ages of programming, the framework languages (.NET, Java) as c++ is becoming a viable substitute. This is coming from a bitter man who has spent way too much time trying to get mingw to work on a microsoft ecosystem and praying to the gods for binaries to drop from the sky.
  25. If you want to hook into a setter for a table you will have to use a metatable __index/__newindex function. http://www.lua.org/pil/13.4.1.html
×
×
  • Create New...