game-engine

2D Cross-Platform Game Development Engines [closed]

落花浮王杯 提交于 2019-11-28 14:57:25
I've worked for some time with Corona SDK and love how fast and easy I can create powerful apps using Lua. But it can only compile for iOS and Android, which feels like too little now. My main interest is for it to be able to compile to Desktop AND Mobile. At least for the following: Windows + Mac for desktop, as standalone applications. iOS + Android for mobile. I'd prefer it to lean more towards Lua type scripting instead of ActionScript, but please feel free to post anything that you have worked with and love. I've found the following engines so far: Marmalade Quick - After further looking

Detect/receive multiple key-presses at the same time in DOS?

可紊 提交于 2019-11-28 14:43:11
I'm in the middle of writing air hockey in tasm and I have encounter a problem which is how I get two keys/clicks at once because I need to get both click at once to move both players in one time and Im trying a lot but I don't think I have a way to doing it. I heard that I need to read from the buffer directory and see what keys are there and read each one individually but I don't really know how to do this. Do you mind working with scancodes? I know this is not the simple, drop-in, solution you were looking for but I'm afraid there is none. So I'm writing this in the hope that, if not you,

Investigation of optimal sleep time calculation in game loop

眉间皱痕 提交于 2019-11-28 05:26:53
When programming animations and little games I've come to know the incredible importance of Thread.sleep(n); I rely on this method to tell the operating system when my application won't need any CPU, and using this making my program progress in a predictable speed. My problem is that the JRE uses different methods of implementation of this functionality on different operating systems. On UNIX-based (or influenced) OS:es such as Ubuntu and OS X, the underlying JRE implementation uses a well-functioning and precise system for distributing CPU-time to different applications, and so making my 2D

Detect mouseover an image in Pygame

假如想象 提交于 2019-11-28 04:58:09
问题 I have an image: newGameButton = pygame.image.load("images/newGameButton.png").convert_alpha() I then display it on the screen: screen.blit(newGameButton, (0,0)) How do I detect if the mouse is touching the image? 回答1: Use Surface.get_rect to get a Rect describing the bounds of your Surface, then use .collidepoint() to check if the mouse cursor is inside this Rect. Example: if newGameButton.get_rect().collidepoint(pygame.mouse.get_pos()): print "mouse is over 'newGameButton'" 回答2: I'm sure

Game engine for iPhone/Android [closed]

大城市里の小女人 提交于 2019-11-28 04:10:18
Is it possible to do cross platform game engine for iphone and android. if its how can i do this. what are all thinks i need to study to do this. Check out Cocos2d-x. It's completely free and open-source. There is also http://www.appgamekit.com It's something I am interested in. It supports "Basic" as well as "C++". I think that Marmalade is really powerful. I've messed around with it. And highly recommend it. If you are only targeting Android and iOS for a 2D game, I would highly recommend Cocos2d-x. It's one of the most game-complete and free framework for C++ I've come across. The advantage

Finder what point is to the left of a line/point after spinning it

徘徊边缘 提交于 2019-11-28 02:20:11
I am currently trying to write a shader in unity that draws a triangular pattern around countries in a risk-styled game if both countries are not owned by the same player (visual aid to see your borders). Right now, I'm having an issue with making the shader set the countries properly. It always sets country 0 to the left, and country 1 to the right - country 0 and 1 are set programically. The line, a border, can be between 0 and 359 degrees. How I find the countries 0 and 1 is I draw 3 points to the left and right of the midpoint of the line, one .01f, one .1f and one 1f away from the

i keep getting the error 'module' object has no attribute 'init'

醉酒当歌 提交于 2019-11-28 02:18:12
Especially when i run it from an external python file and just run it using IDLE or Pycharm..Please Help...but at times it works with in the interactive shell and then something happens and it starts its problems ....I simply typed import pygame x = pygame.init() print(x) C:\Python33\python.exe C:/Users/Home/Desktop/pygame.py Traceback (most recent call last): File "C:/Users/Home/Desktop/pygame.py", line 1, in import pygame File "C:\Users\Home\Desktop\pygame.py", line 2, in x = pygame.init() AttributeError: 'module' object has no attribute 'init' Process finished with exit code 1. The problem

DirectX/C++ 3D Engine programming: Learn now, or wait for DirectX 12? [closed]

六月ゝ 毕业季﹏ 提交于 2019-11-28 01:32:29
I'm a relatively ok-ish programmer, but my main focus has been in application development with C# so far. I have almost zero experience with game development and 3d engines - I've begun reading up on how 3d Engines work in general, e.g. there was a wonderful guide explaining how to develop a very simple software-based 3D engine in C#. Very helpful, but that pretty much summarizes my whole experience with the topic. Also, I haven't really been working with C++ much so far (even though I'm aware of the basic conceptual differences to C#, and would consider getting up to at least "sufficient"

2D Cross-Platform Game Development Engines [closed]

旧时模样 提交于 2019-11-27 19:45:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I've worked for some time with Corona SDK and love how fast and easy I can create powerful apps using Lua. But it can only compile for iOS and Android, which feels like too little now. My main interest is for it to be able to compile to Desktop AND Mobile. At least for the following: Windows + Mac for desktop,

Chipmunk Physics or Box2D for C++ 2D GameEngine?

僤鯓⒐⒋嵵緔 提交于 2019-11-27 17:55:34
问题 I'm developing what it's turning into a "cross-platform" 2D Game Engine, my initial platform target is iPhone OS, but could move on to Android or even some console like the PSP, or Nintendo DS, I want to keep my options open. My engine is developed in C++, and have been reading a lot about Box2D and Chipmunk but still I can't decide which one to use as my Physics Middleware. Chipmunk appears to have been made to be embedded easily, and Box2D seems to be widely used. Chipmunk is C , and Box2D