The Big Programming Thread - Page 312
| Forum Index > General Forum |
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. | ||
|
waxypants
United States479 Posts
| ||
|
Millitron
United States2611 Posts
I was wondering if anyone knew any good 2D engines that support isometric view and mouse interaction. Thanks in advance. | ||
|
Wobulator
United States15 Posts
On June 13 2013 09:03 waxypants wrote: Do you have the source for the DLL? If so, are you compiling it as part of your solution? I have only use the C++ editions of VS so I am not sure how much visibility the C# version provides as far as C++ code and disassembly goes. Sorry if this was unclear. I'm writing both the DLL and the c# code. | ||
|
n0ise
3452 Posts
not the "does this compile" or "what does this print" type, but as theoretical as possible | ||
|
Millitron
United States2611 Posts
On June 14 2013 18:56 n0ise wrote: anyone has some Java theoretical tests available? (book / link / whatever) not the "does this compile" or "what does this print" type, but as theoretical as possible Java is so high-level it isn't terribly good for learning about theory of computation, if that's what you mean. As for books, I recommend Introduction to Theory of Computation by Sipser. | ||
|
Sluggy
United States128 Posts
On June 13 2013 00:24 Wobulator wrote: Dear all; I’ve been creating a chess AI. I’ve already created earlier versions, so I’m familiar with the programming required, but I have some specific questions about coding. The GUI is written in c#, which calls c++ DLLs to do the real thinking. Both are written by me in visual studio 2010 Express. 1) My board representations make heavy use of bitwise operators. Are these optimized and fast in a managed language? (Specifically Visual c++) 2) How does one debug a DLL? I saw something about attaching a debugger to the DLL. I’m not quite sure how this would work, and the internet says this can’t be done in Express edition anyways. Because I'm not a computer scientist/engineer and just program for fun, I've always used the easiest programming tools, so I sometimes end up learning things backwards. Thanks for the help. You need the .pdb file to be in the same directory as the dll if you want to step in to the library. You can check to make sure visual studio debugger has the symbols loaded if you: - start debug session - In the visual studio toolbar go to debug -> windows -> modules That will give you a list of all the debug symbols it could and could not find. If your library symbols were found, you should be able to set a breakpoint in there and hit it. I am using visual studio ultimate, not sure if you can do it in express Edit: just checked visual studio express 2012 edition, doesn't seem to have a modules option in the debug -> windows menu but that doesn't necessarily mean throwing the .pdb files in the main bin folder won't work. quick google of it gave this link, not sure if it's useful - don't really have time to check it thoroughly http://through-the-interface.typepad.com/through_the_interface/2006/07/debugging | ||
|
sluggaslamoo
Australia4494 Posts
On June 13 2013 09:03 Millitron wrote: I need a little advice. My friends and I have been wanting to make a videogame for a good two years now. We finally have a good idea, and I want to start off on the best foot possible. I just graduated with a BS in Computer Science, so I'm pretty good at programming. I'm most confident in Java, but I also know a good deal of C#. My friends have no programming experience, and have just started learning Java. I was wondering if anyone knew any good 2D engines that support isometric view and mouse interaction. Thanks in advance. The biggest problem you will find is assets, and there are basically no assets for isometric games, you will have to do them yourself, in fact you are better off doing a full 3d game if you are doing isometric. Regular tiled 2d you should have no problems with however. I haven't seen any good 2d isometric engines, let alone in Java. Probably the best one out there is the one done in Actionscript, but ewww actionscript. I will look for my isometric renderer that I did in Jogl/Java about 4 years ago it should help you. I actually had a basic autotiling engine at some point but lost it when my hd died, this was before I hosted everything in the cloud. An earlier version exists somewhere though I will look for it later. | ||
|
sluggaslamoo
Australia4494 Posts
On June 16 2013 09:06 Millitron wrote: Java is so high-level it isn't terribly good for learning about theory of computation, if that's what you mean. As for books, I recommend Introduction to Theory of Computation by Sipser. Whether its low level or high level programming isn't important, computing theory is equally deep in both aspects. Look at functional programming and aspects like lambda calculus, which is as far from "coding to the metal" as you can be, while being as deep if not deeper than low level programming. Hell you will spend far more time trying to learn Haskell than C. The term you are looking for is computer science. If you want to go down that path that's a good thing, but you won't learn anything by going through books based on languages. If you want to learn "Java based" computer science, you should study heavily in books on Object Oriented Programming and Responsibility Driven Design. There are also Java specific design patterns (which imo are terrible ideas conjured up in by an academic who only sees things in a vacuum), such as coding and designing with interfaces rather than concrete classes. | ||
|
Millitron
United States2611 Posts
On June 17 2013 12:09 sluggaslamoo wrote: The biggest problem you will find is assets, and there are basically no assets for isometric games, you will have to do them yourself, in fact you are better off doing a full 3d game if you are doing isometric. Regular tiled 2d you should have no problems with however. I haven't seen any good 2d isometric engines, let alone in Java. Probably the best one out there is the one done in Actionscript, but ewww actionscript. I will look for my isometric renderer that I did in Jogl/Java about 4 years ago it should help you. I actually had a basic autotiling engine at some point but lost it when my hd died, this was before I hosted everything in the cloud. An earlier version exists somewhere though I will look for it later. Assets shouldn't be a problem, I've got a friend who can make them for us. We wanted 2D Isometric because we're going for something kinda like the old Sierra games, i.e. Pharaoh, Zeus, Caesar. I'm currently doing XNA tutorials, specifically because I had so much trouble finding an engine in Java. I think all I really need is tiling, collision detection, and a way to do menus. | ||
|
phar
United States1080 Posts
On June 17 2013 13:21 Millitron wrote:I think all I really need is tiling, collision detection, and a way to do menus. Famous last words http://ppahs.files.wordpress.com/2011/11/tip-of-an-iceberg.jpg | ||
|
Millitron
United States2611 Posts
On June 17 2013 14:06 phar wrote: Famous last words http://ppahs.files.wordpress.com/2011/11/tip-of-an-iceberg.jpg Well XNA comes with an update loop and a draw loop. I can't think of anything else I wouldn't have to write on my own anyways. | ||
|
sluggaslamoo
Australia4494 Posts
On June 17 2013 14:18 Millitron wrote: Well XNA comes with an update loop and a draw loop. I can't think of anything else I wouldn't have to write on my own anyways. No worries, saves me the effort. Though I have to agree with phar here, I've been making engines since I was 9 years old, I have about 70 different engines that haven't been finished, about 3 are close and could be used for making games. Knowledge was never a problem, discipline was, it would be 1 year down the track and I'd find a new way to do things, a new renderer, new language, and repeat the cycle again. Netgore is a 2d engine that was done in XNA I think, it took 2 years and the renderer was converted to SFML. Also layering in iso will cause you a lot of trouble if you are going to do anything slightly complex, and that is just the tip of the iceberg ![]() http://projectzomboid.com/blog/2011/04/isometric-development/ | ||
|
phar
United States1080 Posts
On June 17 2013 14:18 Millitron wrote: Well XNA comes with an update loop and a draw loop. I can't think of anything else I wouldn't have to write on my own anyways. Yea I mean this applies generally to all programming anyone ever does. Things look so much simpler at the outset. | ||
|
BisuDagger
Bisutopia19292 Posts
| ||
|
Tobberoth
Sweden6375 Posts
On June 17 2013 13:21 Millitron wrote: Assets shouldn't be a problem, I've got a friend who can make them for us. We wanted 2D Isometric because we're going for something kinda like the old Sierra games, i.e. Pharaoh, Zeus, Caesar. I'm currently doing XNA tutorials, specifically because I had so much trouble finding an engine in Java. I think all I really need is tiling, collision detection, and a way to do menus. Keep in mind that XNA is being discontinued by Microsoft, so the future of XNA is uncertain at best. | ||
|
waxypants
United States479 Posts
On June 17 2013 14:06 phar wrote: Famous last words http://ppahs.files.wordpress.com/2011/11/tip-of-an-iceberg.jpg I need to think about this any time I find myself about to say to my boss "yeah it seems easy, should only take a couple days" ![]() | ||
|
Millitron
United States2611 Posts
+ Show Spoiler + On June 17 2013 14:06 phar wrote: Famous last words http://ppahs.files.wordpress.com/2011/11/tip-of-an-iceberg.jpg Well XNA comes with an update loop and a draw loop. I can't think of anything else I wouldn't have to write on my own anyways. No worries, saves me the effort. Though I have to agree with phar here, I've been making engines since I was 9 years old, I have about 70 different engines that haven't been finished, about 3 are close and could be used for making games. Knowledge was never a problem, discipline was, it would be 1 year down the track and I'd find a new way to do things, a new renderer, new language, and repeat the cycle again. Netgore is a 2d engine that was done in XNA I think, it took 2 years and the renderer was converted to SFML. Also layering in iso will cause you a lot of trouble if you are going to do anything slightly complex, and that is just the tip of the iceberg ![]() http://projectzomboid.com/blog/2011/04/isometric-development/ Well, this is about as complex as I was hoping to make it: + Show Spoiler + There is no player character, so we don't need to make sure he's always visible, and if obstruction does turn out to be a problem, I can include a way to rotate the camera 90 degrees. On June 17 2013 22:39 Tobberoth wrote: Keep in mind that XNA is being discontinued by Microsoft, so the future of XNA is uncertain at best. So? It's not like it will uninstall itself when they discontinue it. | ||
|
CptCutter
United Kingdom370 Posts
On June 17 2013 22:39 Tobberoth wrote: Keep in mind that XNA is being discontinued by Microsoft, so the future of XNA is uncertain at best. Just google MonoGame, its an opensource conversion of XNA. | ||
|
Roe
Canada6002 Posts
Some of the code: + Show Spoiler + public void Work() { .....//Conditionals checking for the right broker this.Buy(StockMarket.index[0], StockMarket.brokers[i]); } public void Buy(Company a, Broker b) { this.Portfolio[0] = a; this.Portfolio[0].Shares += 1; } Company[] portfolio; public Company[] Portfolio { get { return portfolio; } set { portfolio = value; } } | ||
|
supereddie
Netherlands151 Posts
Create a simple diagram with the classes you think you need, with their operations. Don't code until you've made fairly complete diagram. Extra: you always use the first element of 'index', and you overwrite the first element of 'Portfolio'. | ||
| ||

