I am trying to find the highest value across a line in a uniform 2D Array e.g. 300x300. The line is not necessarily a line that can be drawn horizontally, vertically or at a 45 degree angle. It can be ...

I'm a student in a Java Programming class and my problem deals with converting all the temperatures in the 2d array from Fahrenheit to Celsius. The array has all the temperatures for each hour of the ...

Recently I've been trying to make a 2D game in XNA, but I seem to have hit a dead end. No mater where I look on the internet, I can't seem to find any examples of how to make two objects collide in ...

I have a laser, but it is not rotating!
LaserStart, Middle, End are prefabs with sprites.
Rotation influence only on Raycast, and sprites are not rotating.
Thanks in advance
using UnityEngine;
using ...

Does anybody know if there is any easy way to plot a larger grid over an image from image2D?
So I have a matrix of values which I currently plot using the code below:
image2D(matrix, 0:max(data$y), ...

I'm trying to design and develop game alone. So I'm writing game in C/C++, but I've never been doing any graphic design and i need to do it for a game(characters, environment etc..). Game is in 2D, ...

The problem is to write a function that takes a 2 dimensional array, 2 integers which represent the number of rows and columns in the array, and prints out a 2 X 2 array which represents the largest ...

I'm sorry if this has been asked before but i searched and couldn't find anything like the case i have, however i'm coming from C# so i'm still learning C++, i have a std::string that represents the ...

I am creating a snakes and ladders game. My issue is that I have two classes, one the main GUI in a JFrame for the game with an image of a snakes and ladders board, and the other a 2D array of a grid ...

So I am a relatively new to programming and I am trying to make 2D game using LWJGL. I have made a background map using tiles in an array list, I then update the necessary things such as the player ...

I am creating a small snakes and laddders game. I have multiple classes, but the two I am concerned with are my BoardGame class and my Grid class.
After doing some research, I decided the best way to ...

I have a coin class which takes in an integer numOfCoinsand an enum LayoutType, which can be linear or curved. A linear layout displays the coins in a straight line one after the other - we'll work ...

I am doing an assignment for class where I have to open a text file and convert that said file into a 2d array so I can later access it depending on what the user requests.
So far, my code is this:
...

I wrote a physical simulation about gravitational force between two planets.It worked perfectly fine so I decided to take it to a new level and rewrote it using arrays and five planets(circles).But ...

I have been playing around with multiple different ways of doing this, and none of them work. I am trying to essentially have a laser the goes outwards to the right of the character, but it just does ...

First post ever here. Short story, I had to make a tetris game in Java, it was working fine but it had some problems in the optimization aspect (I only started programming this semester).
When I was ...

I'm trying to draw 2D triangles using this or this (scripts) but unsuccessfully (I don't see any triangles). I have only camera, canvas and panel in it, also I've tried to apply it on empty canvas's ...

in chapter 5 of David Brackeen's book - Developing games in java, the game is built to use the fullscreen mode. i have been trying to modify the code so that it will use window mode. i need someone ...

I have attached 2 photos below. Currently I'm working on simple 2d platformer game; the idea is the player starts from left corner of the screen and if player captures the flag on the right corner of ...