game-development

Updating image in table

醉酒当歌 提交于 2019-12-24 18:13:27
问题 I'm currently creating an inventory system in which the user can select an item from their inventory list collection, and the icon on the right will update. As of now, I've implemented a ClickListener to get the currently selected item from the inventory list and called the .getImage() method that I created to get the icon of the selected item. I used table.add(image); to add the icon to the table. However, when the icon is added to the table, it fills up that space, and another column is

Extracting data to create “Match Statistics” using (flash-based) game-replay files

社会主义新天地 提交于 2019-12-24 14:30:20
问题 I play a very basic multiplayer flash-applet game @ http://www.haxball.com (check it out!) Haxball’s match Replay files can be recorded by users in-game, and saved to disk as “.hbr” files. These Replay files can later be viewed by loading the .hbr replay file directly in the haxball.com interface, or by uploading the .hbr file publicly to a third-party service like "haxballtube.com" My goal is to launch a third-party web-service which will allow users to upload haxball match replay files (

How to find the “Saved Games” folder programmatically in C/C++?

倾然丶 夕夏残阳落幕 提交于 2019-12-24 01:09:19
问题 I am writing a game. I am planning to store saves in the "saved games" directory. How to find the location of the Saved Games folder programmatically? It needs to work on non-English Windows. Hacks like %USERPROFILE%\Saved Games are not an option. 回答1: The Saved Games directory can be located with the SHGetKnownFolderPath() function, available since Windows Vista and Windows Server 2008. Note that the FOLDERID_SavedGames argument is a C++ reference. Replace with &FOLDERID_SavedGames to call

Unity blurry and pixelated sprites in editor (no pixel art)

给你一囗甜甜゛ 提交于 2019-12-23 03:31:22
问题 I am currently making a mobile match-3 like game in unity. I have made all the graphics for the gems(the objects with which you make the matches) in Inkscape at 256x256 and exported them(PNG Files) with 90 dpi(also tried with 360 but nothing changed). My problem is that when I run the game in the editor the graphics seem to be "pixelated" and blurry. In my sprite settings I've set Pixels per Unit to 256, checked Generate Mip Maps, I am using Bilinear Filter Mode and the aniso level is 0. I

Blank Screenshots In Vista and Win7 when gaming

牧云@^-^@ 提交于 2019-12-23 03:23:08
问题 I noticed another person also requested help on this. I read that post and it seems it wasn't resolved yet. I also tried changing from my code to the code in the "Screen shot in 2 clicks" Post, But implementing that in my code messed around with all my other code for some reason. At the moment, The screen shots show up perfectly in Win XP. In Vista and Win7 how ever, they show up blank unless the game is played in window mode. I hope someone out there can help us as this is the last step to

How do I use applyLinearImpulse based on rotation in Corona / Lua

淺唱寂寞╮ 提交于 2019-12-21 20:23:37
问题 I am using the Corona Gaming Addition SDK to build an iphone / andorid game. I have a space ship on the screen and I will allow the user to rotate the ship 360 degrees. I would like to then call the applyLinearImpulse method to allow the user to thrust the ship forward in the direction the ship is facing. The method accepts these arguments witch are applied to the ships X and Y in order to move the ship to the new destination. The trick is to figure out what the new X and Y needs to be based

Reading Console Buffer / Output C++

本秂侑毒 提交于 2019-12-18 05:15:16
问题 My question is quite simple, but the solution seems absolutely impossible for me to find. I have a dedicated game server (JEDI ACADEMY JAMPDED), which is a console application. It writes some information continously and I want to handle the data somehow. It would be easy if I could read the output of it with external. Problem: It does not write to Standard Output, so can't be piped with batch file and popen does not work also. So I wanted to do with WINAPI. I was able to create the process,

How to make a server discoverable to LAN clients

泄露秘密 提交于 2019-12-18 02:55:28
问题 I am working on a multiplayer game in python that uses the socket library for its networking. The game will support play over LAN. One player will set up the server and other players on the LAN will be able to join the game. To implement this, I need a simple way for the players to discover a list of available servers (players shouldn't be expected to have to enter IP addresses!). My preferred solution would use only the python socket library (and optionally other parts of the standard

Screen Size in Java

纵然是瞬间 提交于 2019-12-13 06:49:55
问题 Hello I am making a game in Java and I get the screenSize using DefaultToolkit, but the problem with that is that is detects the size of the screen if it was FULLSCREEN. How can I get the screen size of the area the game screen (which is not fullscreen) takes up. To be more precise, my sprite is moving beyond the edge of the bottom screen because of the system tool bar which add extra "padding" to it. How can I get the size of the Area the Game Screen takes up? Thank you very much 回答1: I

Where should I store textures for a game?

有些话、适合烂在心里 提交于 2019-12-13 03:21:48
问题 I am currently creating a game in SFML using C++ and I'm wondering: what is good practise for a location for textures? Should I store it with my project? Or my executable? Or even in something like the Documents folder? What would be the most efficient when the game would theoretically be released, as it will not simply include the project but rather a compiled and build version of it? 回答1: Most common game releases have their textures inside a Media folder or similar. Inside that folder are