7 Replies - 561 Views - Last Post: 04 January 2016 - 06:32 AM Rate Topic: -----

#1 Yeonin   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 03-January 16

Newbie Game Creation

Posted 04 January 2016 - 12:39 AM

I just learned vb.net few days ago and I'm making a game.

I finished the basic UI of the game and is currently working on the game mechanics.

Here is my source code:
https://github.com/Y.../TerroristsOTM/

Would this method be the most efficient?


I'm planning to make the graphics after making the game mechanics

Is This A Good Question/Topic? 0
  • +

Replies To: Newbie Game Creation

#2 andrewsw   User is online

  • RequestedRangeNotSatisfiable
  • member icon

Reputation: 6561
  • View blog
  • Posts: 26,611
  • Joined: 12-December 12

Re: Newbie Game Creation

Posted 04 January 2016 - 12:45 AM

Post the relevant code directly here, between code tags.
Was This Post Helpful? 0
  • +
  • -

#3 Yeonin   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 03-January 16

Re: Newbie Game Creation

Posted 04 January 2016 - 01:21 AM

View Postandrewsw, on 04 January 2016 - 12:45 AM, said:

Post the relevant code directly here, between code tags.

That would be pretty long though
Was This Post Helpful? 0
  • +
  • -

#4 andrewsw   User is online

  • RequestedRangeNotSatisfiable
  • member icon

Reputation: 6561
  • View blog
  • Posts: 26,611
  • Joined: 12-December 12

Re: Newbie Game Creation

Posted 04 January 2016 - 05:07 AM

Post the "relevant" code, not all of it; the part that you have a question about.

This is a community forum, all relevant information needs to be available here directly in the forum, not a link to your entire project and a vague question of "Would this method be the most efficient"? Which method?

This post has been edited by andrewsw: 04 January 2016 - 05:12 AM

Was This Post Helpful? 0
  • +
  • -

#5 IronRazer   User is offline

  • Custom Control Freak
  • member icon

Reputation: 1505
  • View blog
  • Posts: 3,808
  • Joined: 01-February 13

Re: Newbie Game Creation

Posted 04 January 2016 - 05:38 AM

I don`t see where you have really done anything except for setting up the controls on Form1 from looking at the code. So, you are the only one that can really say if it is the right or wrong way to do that part. The looks of Form1 is up to you.

However, if this is going to be a game that requires several moving objects kind of like a normal video game then VB.Net is probably not the best programming platform to design it. There are programming environments made specifically for creating games such as Unity3D.

If you still want to get the most out of using VB.Net then you can check out the GdiGaming API on CodePlex.

If you do not want to use any of the above and want to design it all yourself then you need to design the game properly from the start or you will surely find that you have to rewrite the whole game about half way through it because, it is to slow or to hard to combine everything. That is usually a mistake that beginners make by using controls like PictureBoxes for all the characters and other objects.

To do it correctly you need to draw all the objects directly onto the Form`s Graphics object using the GDI methods. That requires quite a bit of planning, thinking, and experimenting to get right.

I would recommend reading through the 2 links below. The first is a little old but, was written by a guy i know, Reed Kimble who is very good at designing games. The second link is a thread where Reed posted a good start on how to properly design a game in vb.net for another beginner that wanted to know how to create a game. You will notice that different types of objects in the game have there own class and everything is not just crammed into the Form`s code.

How to Create Video Games in VB.Net (Windows Forms)

https://social.msdn....forum=vbgeneral

There may also be a tutorial here on DIC that i think i remember seeing but, did not search for it yet. You can look for that too. It is best to find all the best ways to do all these different things before starting to write the actual game code. 8)
Was This Post Helpful? 1
  • +
  • -

#6 Yeonin   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 03-January 16

Re: Newbie Game Creation

Posted 04 January 2016 - 06:09 AM

Thanks for this advice. This is really helpful since I'm just new to game programming.

This post has been edited by andrewsw: 04 January 2016 - 06:51 AM
Reason for edit:: Removed previous quote, just press REPLY

Was This Post Helpful? 0
  • +
  • -

#7 IronRazer   User is offline

  • Custom Control Freak
  • member icon

Reputation: 1505
  • View blog
  • Posts: 3,808
  • Joined: 01-February 13

Re: Newbie Game Creation

Posted 04 January 2016 - 06:24 AM

You`re welcome. 8)

I believe it was modi123_1 that might have made a tutorial here on DIC. He might see this and post a link or even have a few more tips. 8)
Was This Post Helpful? 0
  • +
  • -

#8 IronRazer   User is offline

  • Custom Control Freak
  • member icon

Reputation: 1505
  • View blog
  • Posts: 3,808
  • Joined: 01-February 13

Re: Newbie Game Creation

Posted 04 January 2016 - 06:32 AM

I just found that tutorial here on DIC by modi123_1. Here is the link to it. 8)

OOP with Video Game Basics Part 1
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1