Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

328 Neutral

About DavitosanX

  • Rank

Personal Information

  1. DavitosanX

    8 bit sprite animation

    Take a look at Paint.net. I like it because Gimp and Photoshop have far too many features and I don't know how to use them very well. Paint.net is a lot slimmer but still very capable. It feels like MS Paint, but it has layers, transparency and other interesting features. Also, it's free!
  2. DavitosanX


    Just curious if anyone has ever used povray to develop graphical assets for their game. A friend of mine is currently enrolled on a povray course, using to for molecular models, and I looked into it. It's very interesting, and it creates great looking images. In my case, whenever I've tried to use blender to create a 3d image, the results are often less than satisfactory, but since in povray you don't 'sculpt' your image, but rather program it in code, I almost always get the result I want.   I'm still working with basic shapes and lighting, but so far I've made some interesting images:   https://imgur.com/4uSQ8Cl   https://imgur.com/ZDSlmg6   These might not be very impressive, but I made them a lot faster than I would've done in Blender. Also, I'm not sure about this, but I understand that since this is ray tracing, not 3d meshes, the spheres, cylinders and cones have real curves, and should look better.   So, is anyone using povray?
  3. I'll point you to Tom Sloper's FAQ about the videogame industry. At least for me it was a real eye opener. http://sloperama.com/advice.html   To get started on game programming, you don't even have to spend money. There are several free online tutorials that will help you become fluent in any language you choose, and to get started in game programming. You can check out:   - The official Python tutorial - Cpluplus.com (for C++ programming) - Lazy Foo's SDL tutorial - The SFML tutorial   Those sites could keep you entertained for a couple of months :D Of course, if you have no interest in C++, python, SDL or SFML, then you can look for learning material on your subject of choice. Do ask around in these and other forums for recommendations on which tutorial to use, because it's not always a matter of taste, and a lot of tutorials are really better than others.
  4. DavitosanX

    New One Game Beginner

    You could always take a look into RPG Maker XV. I got it pretty cheap at a Humble Bundle sale, and the Steam Winter Sale is bound to start soon :D There are a few successful commercial games made with it, "To the Moon" being a good example. If you're a complete beginner, it may be helpful to start with a tool that allows you to focus on making a game, which RPG Maker does. It comes with a few basic assets (Map tiles, character sprites, music, etc) with which you could build an entire game if you wanted.   I'd suggest you download the free Lite version and see if it would fit your project, and play around with it. Since you wnat to make an RPG, maybe it's not necessary that you reinvent the wheel (programming-wise) when there are already engines that can do the heavy lifting for you.
  5. DavitosanX

    Help with writing for a game

    Looks great to me, but then again, english isn't my first language either. Since it's fantasy, you can turn this into an advantage, as the dialogue may sound faintly foreign, different from the player's everyday speech.
  6. When I started out with visual games, I found both Lazy Foo's SDL tutorials and the official SFML tutorials to be very helpful. I think that maybe you should take a step back and forget for a second about making a game. You said that you are already capable of coding a decent game on console, so maybe you don't need to worry about game-related programming right now. Instead, set these simple goals:   - Create a window. - Keep that window running, and be able to close it. - Fill that window with color. - Display an image on this window. - Move the image through code. - Move the image through player input.   Each one would be a project by itself, that you could complete rather quickly (a couple of hours in most cases).   Once you are able to move a sprite arround with the keyboard arrows or the mouse, you'll already be able to explore a huge number of possibilities in game making.
  7. DavitosanX

    How they made this game?

    If you set out to do something like this, and choose python over php, remember to check if your webpage's host can handle python scripts. Also, this link contains information on web frameworks for python: https://wiki.python.org/moin/WebFrameworks
  8. DavitosanX

    Where It all begins

    If you go the C++ way, check out SFML and the tutorials on their webpage. If you know your way around general programming, you can build a very decent game in relatively short time.   Still, you shouldn't entirely discard the idea of working with a game engine. If you use Unity, you still have to do some programming in C#, but mostly for game logic, whereas in a project made from scratch you'd had to deal with all kinds of technical issues.
  9. DavitosanX

    Hexagonal grid - Code review request

    Thank you both for the encouragement! I wil definitely take some time to really get into your answers. It may be evident now that my knowledge of vector math is poor, and I don't really know how to apply it. I'll read into that, as it seems it'll be far more useful than trigonometry for computer graphics.   About encapsulation, I'm still trying to get it right. I've struggled to grasp OO concepts, but it appears I'm not so far off now.   About optimization, well, I'll certainly take your suggestions into account. But maybe I'll wait a little before applying it, as it may turn a small concept program into a more complex, daunting task.   Thank you again!
  10. Hello! I'm not sure if this belongs here, or in the beginners' section, so excuse me if this code is too bad, or too basic.   I had set a short term goal for myself as an amateur programmer: To implement a hexagonal grid, similar to the one found in the original Fallout. You should be able to move your mouse around and the hexagon that contains the mouse pointer should be highlighted. I thought it would be a good exercise, because unlike a square grid, determining which hexagon contains the mouse pointer is trickier.   I did finish the program, and it does exactly what I want, but I do tend to overcomplicate things and I would appreciate it if people with more  experienced took a look at it and gave me any tips. This was coded in python with pygame. import pygame import math INITIAL_HEXAGON_VERTICES = ((-40,-40),(40,-40),(45,0),(40,40),(-40,40),(-45,0)) GRID_HEIGHT = 10 GRID_WIDTH = 10 VERTEX_COUNT = 6 X_ELEMENT = 0 Y_ELEMENT = 1 FIXED_ANGLE = 0.122 #7 degrees in radians NOT_MOVING = (0,0) def calculate_angle(fixed_point,var_point): opposite = math.fabs(fixed_point[X_ELEMENT] - var_point[X_ELEMENT]) adjacent = math.fabs(fixed_point[Y_ELEMENT] - var_point[Y_ELEMENT]) if adjacent == 0: adjacent = 0.1 angle = math.atan((opposite/adjacent)) return angle class Hexagon: def __init__(self,num,ver): self.number = num self.vertices = ver class InputManager: def check_events(self): for event in pygame.event.get(): if event.type == pygame.QUIT: game.running = False def mouse_in_grid(self,mouse_pos,hexagons): result = 0 for counter,hexagon in enumerate(hexagons): if (mouse_pos[X_ELEMENT] > hexagon.vertices[5][X_ELEMENT] and mouse_pos[X_ELEMENT] < hexagon.vertices[2][X_ELEMENT] and mouse_pos[Y_ELEMENT] >= hexagon.vertices[0][Y_ELEMENT] and mouse_pos[Y_ELEMENT] < hexagon.vertices[3][Y_ELEMENT]): result = hexagon.number if (mouse_pos[X_ELEMENT] < hexagon.vertices[0][X_ELEMENT] and mouse_pos[Y_ELEMENT] < hexagon.vertices[5][Y_ELEMENT]): angle = calculate_angle(hexagon.vertices[0],mouse_pos) if angle < FIXED_ANGLE: result = hexagon.number if (mouse_pos[X_ELEMENT] > hexagon.vertices[1][X_ELEMENT] and mouse_pos[Y_ELEMENT] < hexagon.vertices[2][Y_ELEMENT]): angle = calculate_angle(hexagon.vertices[1],mouse_pos) if angle < FIXED_ANGLE: result = hexagon.number if (mouse_pos[X_ELEMENT] > hexagon.vertices[3][X_ELEMENT] and mouse_pos[Y_ELEMENT] > hexagon.vertices[2][Y_ELEMENT]): angle = calculate_angle(hexagon.vertices[3],mouse_pos) if angle < FIXED_ANGLE: result = hexagon.number if (mouse_pos[X_ELEMENT] < hexagon.vertices[4][X_ELEMENT] and mouse_pos[Y_ELEMENT] > hexagon.vertices[5][Y_ELEMENT]): angle = calculate_angle(hexagon.vertices[4],mouse_pos) if angle < FIXED_ANGLE: result = hexagon.number return result class Game: def __init__(self,resolution,caption): self.screen = pygame.display.set_mode(resolution) pygame.display.set_caption(caption) self.clock = pygame.time.Clock() self.running = True self.gray = (220,220,220) self.green = (50,240,50) self.black = (0,0,0) self.hexagons = [] self.current_hexagon = 0 def draw_screen(self): self.screen.fill(self.gray) if pygame.mouse.get_rel() != NOT_MOVING: self.current_hexagon = input_manager.mouse_in_grid(pygame.mouse.get_pos(),self.hexagons) pygame.draw.polygon(self.screen,self.green,self.hexagons[self.current_hexagon].vertices,3) pygame.display.flip() def calculate_grid_points(self): number = 0 for column in range(GRID_WIDTH): for row in range(GRID_HEIGHT): points = [] lift_hexagon = 0 if column % 2 != 0: lift_hexagon = 40 for point in range(VERTEX_COUNT): points.append( ((INITIAL_HEXAGON_VERTICES[point][X_ELEMENT] + (85 * column)), ((INITIAL_HEXAGON_VERTICES[point][Y_ELEMENT] + (80 * row))-lift_hexagon) ) ) new_hexagon = Hexagon(number,points) self.hexagons.append(new_hexagon) number += 1 def main_loop(self,framerate): self.calculate_grid_points() while self.running: self.clock.tick(framerate) input_manager.check_events() self.draw_screen() pygame.quit() input_manager = InputManager() game = Game((800,600),"Game") game.main_loop(60) Thanks in advance!
  11. DavitosanX

    good python engine

    You can pick any engine you like, even if it doesn't support python. I say that because whatever you have learned in python so far will most likely be applicable in another language. Unity 3d, for example, uses either Javascript or C# as its scripting languages, and those aren't that different to python when it comes to the basic building blocks. Of course, there will be some learning involved, but if you already know how to solve problems through programming, then learning some new syntax and a slightly different paradigm isn't too hard.
  12. DavitosanX

    from python to c++

    I found this site very helpful when I started learning C++. I hope it helps you too.   http://www.cplusplus.com/doc/tutorial/   Also, try out different IDE's. Choosing the one that feels most comfortable to you is crucial, because it makes the whole experience a lot less frustrating. Personally, I ended up using gedit and g++.   Good luck on your endeavors!
  13. DavitosanX

    java or javascript?

      The point I'm trying to make is that these basic concepts are what a new programmer should be learning, and just like you said, they are very much alike between languages. It doesn't really matter is the OP starts out with Java or Javascript, learning these building blocks, and most importantly the reasoning behind them, will make the transition from one to the other painless.
  14. DavitosanX

    java or javascript?

    Well, I meant to say things like:   - How do statements end (semicolon or no semicolon) - How to write if's, for's and while's - Operators - Class and function definition   These are some differences between Python and C++   Python: #Statements need no semicolon print("Hello world!") #Function call. Arguments go inside parentheses. Strings go between quotes. x = 0 # Assignment operator #Structure of an IF if x == 0: # Comparison operators print("True") # Forced indentation for scope, no brackets. else: # Colon after if, elif, else print("False") list = [1,2,3,4] # Structure of a for loop for item in list: print(item) # Structure of a while loop while list[0] != 1: print("Looping...") # Function definition def foo(arg1, arg2): #keyword def, arguments between parentheses, colon -- code to run -- # Forced indentation # Class definition class Foo: def __init__(self): -- contructor code -- -- define more attributes methods -- C++ // Needs main function #include <iostream> using namespace std; // Statements need semicolons int main() { cout << "Hello World!" << endl; // Bitwise shift operator return 0; // Indentation is optional, brackets are necessary to indicate scope } int x = 0; // Assignment operator (strong-typed language, not syntax related, though) // Structure of an IF if (x == 0) { cout << "True" << endl; } else { cout << "False" << endl; } // For loop for (int i = 0; i < 10; i++) { // some code } // While loop while (variable == value) { // some code } // Function definition void Foo(int arg1, bool arg2) // starts with type, arguments between parentheses, also with type { // some code } // Class definition class Foo { int privateAttribute; // Attribute public: Foo() // Constructor { privateAttribute = 0; } } The examples might not be 100% accurate, but my point is that if you know what you're doing, syntax shouldn't be too much of a problem. How long did it take you to see the differences between the two blocks of code? And notice how syntax is consistent across the language, so the differences between a language and another tend to be consistent also.   A different thing is the actual use and logic of each language which can be extremely different, and it can take weeks or months to make the switch from one language to another.
  15. DavitosanX

    First Game

    One of the benefits of using RPG Maker is that it has a Ruby-based script editor, though I'm not sure if it's also included in the lite version. With it, you can learn some basic programming, while developing an actual, playable game. Also, not trying to discourage you, but you'll realize just how massive a project an RPG truly is. Of course you can do it, even by yourself, but it's going to be hard work, and a long, long road before it's completed.   If you'd like to start programming with python, you should take a look at the tutorial on python's website. Make sure you understand every concept fully before moving on, and do lots of exercises! There's nothing worse than speeding through tutorials, since you won't remember much, and won't learn much either.
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!