Return to Video

Module 1: BennuGD

  • 0:01 - 0:05
    Welcome to the first video tutorial in the course of game programming
  • 0:05 - 0:07
    with BennuGD
  • 0:07 - 0:09
    where to see how to make
  • 0:09 - 0:14
    video games in 2 dimensions using this great software
  • 0:14 - 0:18
    This program we can find it in the following address
  • 0:18 - 0:29
    www.bennugd.org
  • 0:29 - 0:33
    upon entering will see the official website
  • 0:33 - 0:35
    of this game programming language
  • 0:35 - 0:37
    Let me introduce you a bit on the history of the language
  • 0:37 - 0:41
    The history of this language came from what was at the time
  • 0:41 - 0:46
    the Fenix language, which, also came from of what was the DIV Games Studio
  • 0:46 - 0:52
    DIV Games Studio was a software of the 90' which allowed an easy way to
  • 0:52 - 1:02
    make games in 2 dimensions such as for example the SNES, Sega MegaDrive, NES ones.
  • 1:02 - 1:10
    Currently DIV Games Studio came to version 2, then the development was abandoned.
  • 1:10 - 1:17
    and a group of users started to develop programs based on DIV Games Studio
  • 1:17 - 1:21
    Thus the CDIV and the Fenix appeared, among others.
  • 1:21 - 1:30
    Fenix has an evolution in its core, and became what is today BennuGD
  • 1:30 - 1:37
    In the page we see one of the news, we have the different ports info
  • 1:37 - 1:40
    to different consoles, for example to Dreamcast
  • 1:40 - 1:44
    Also there is port made to Nintendo Wii, PS2 consoles
  • 1:44 - 1:51
    They're talking to be able to port the software to HTML5. And the first tests of it.
  • 1:51 - 1:54
    in the Andriod OS. Already this port for ipod.
  • 1:54 - 2:05
    you already can load the games in the App store of Apple.
  • 2:05 - 2:10
    The games also can be used in devices such as the wiz and the canoo consoles
  • 2:10 - 2:22
    Also is possible for desktop computing platforms such as Windows, Linux and MAC.
  • 2:22 - 2:30
    Between all of them also there are various ports that are are doing and the great community makes it
  • 2:30 - 2:36
    without any kind of interest in return
  • 2:36 - 2:45
    Let's see some games made with this software, the first one
  • 2:45 - 2:55
    a game called Deadly Eye, is a shooter with a top-down view
  • 2:55 - 3:07
    where we can see the graphic quality that can be achieved, also the effects.
  • 3:07 - 3:10
    everything is based on the ability of the programmer,
  • 3:10 - 3:15
    and the idea of this course is that we are learning from the level most basic to the most advanced
  • 3:15 - 3:18
    to be able to make increasingly better games.
  • 3:18 - 3:34
    Also here we see an example of the game Puzsion on an iPod.
  • 3:34 - 3:37
    This software developed by joseba
  • 3:37 - 3:43
    This game was one of the first gennugd games for the app store of apple
  • 3:43 - 3:49
    And here we see that this BennuGD game has nothing to envy
  • 3:49 - 3:55
    from Professional games
  • 3:55 - 4:03
    A simple genre, a puzzle, but a very good game.
  • 4:03 - 4:19
    We also have a remake for KoF also made with this engine
  • 4:19 - 4:27
    Here you can see the quality of games that one can do if you put dedication to
  • 4:27 - 4:39
    the use of the software. This language provides everything you need to create good games
  • 4:39 - 4:46
    The community is a very active community which is there to answer any questions.
  • 4:46 - 4:51
    The game is a Kof, if we look at the movements are very good
  • 4:51 - 4:58
    thehitboxes, the collisions between the characters, the FX
  • 4:58 - 5:05
    It has nothing to envy to a Original KoF created by neogeo
  • 5:05 - 5:13
    We continue to see quality games. a very named game in recent times
  • 5:13 - 5:20
    by a ban who wanted to impose sega, this game is Streets of Rage Remake
  • 5:20 - 5:28
    the truth that is a game very well programmed, it had its development time
  • 5:28 - 5:40
    We see once more the quality that we can achieve with bennugd
  • 5:40 - 5:46
    look the movements of the characters, the design.
  • 5:46 - 5:52
    Nowadays you can do not only games to entertain,
  • 5:52 - 5:57
    but with the possibility to port to different platforms, we can make games
  • 5:57 - 6:03
    to sell the different stores, as it is the case of App store
  • 6:03 - 6:17
    or when the android port will be done, also to the android market
  • 6:17 - 6:29
    and finally, let's see Escape from Zombie City
  • 6:29 - 6:34
    This is also an original game that has been ported to portable platforms
  • 6:34 - 6:40
    as the wiz, the canoo.
  • 6:40 - 6:47
    in the game you can choose different characters, and as in all zombie game
  • 6:47 - 6:52
    the zombies have invaded the city, and these characters with their weapons
  • 6:52 - 6:54
    will have to go and kill them
  • 6:54 - 7:01
    the graphics are all original, and this is a point in favor of the games
  • 7:01 - 7:05
    they are games that have not been seen in other platforms
  • 7:05 - 7:11
    With this we have seen the quality of games that can be made.
  • 7:11 - 7:17
    now let's talk a little bit of what the Bennugd website is like.
  • 7:17 - 7:23
    then we'll start with the download and installation of the software that we use
  • 7:23 - 7:32
    in the course, to be able to start creating our own videogames.
  • 7:32 - 7:37
    also it is necessary that you know that the idea is to develop complete projects
  • 7:37 - 7:43
    and that I think that the best way to learn, since one can eee with various projects
  • 7:43 - 7:50
    how to implement the various tools offered by this wonderful soft.
  • 7:50 - 7:56
    To download we can go to Downloads and there are going to be able to select the download
  • 7:56 - 8:02
    for different operating systems
  • 8:02 - 8:13
    then there is the different versions that have been made for various consoles and platforms
  • 8:13 - 8:28
    for example we have Motorla Linux Phone, Xbox, Wii, Pandora, PPA for Ubuntu, Mac OS, FreeBSD, Haiku, and Dreamcast
  • 8:28 - 8:36
    We also have the possibility of downloading guides, Bennu Programming Manual, BennuGD Manual
  • 8:36 - 8:42
    They are in Spanish and are 2 amazing manual
  • 8:42 - 8:49
    Osk manual is very comprehensive and great, is to take your time and also there are full projects.
  • 8:49 - 9:01
    and the manual of windgate is also a very interesting manual and a more concrete one.
  • 9:01 - 9:09
    We also have the possibility to download the Bennupack that for this course I recommend download
  • 9:09 - 9:12
    Since it comes with pre-installed tools, we are going to use
  • 9:12 - 9:17
    In addition to that already brings instructions and source code
  • 9:17 - 9:26
    so we can see the code of various video games
  • 9:26 - 9:47
    Here we have the bennupack, the last revision we have 29 Dec 2011
  • 9:47 - 10:01
    2.4 revision, and to access the download will have to access this link
  • 10:01 - 10:10
    Notice that you can download all these files.
  • 10:10 - 10:19
    We have tools, the Installer source code a game, examples of dll making
  • 10:19 - 10:23
    We have medium examples, advanced and basic.
  • 10:23 - 10:29
    We also have the Castle Of Dr Malvado, which was the game that came with the div
  • 10:29 - 10:37
    but this time adapted and updated to bennugd
  • 10:37 - 10:43
    As I have already downloaded these files the next thing we are going to do is to install it
  • 10:43 - 10:49
    We go to the folder where we have downloaded the program
  • 10:49 - 10:58
    and let's go to TOOLS R24. let's unpack it
  • 10:58 - 11:13
    It is a single file, a setup.exe
  • 11:13 - 11:21
    Double click on setup.exe
  • 11:21 - 11:27
    This bennupack made by coldev, is a group of very dedicated programmers
  • 11:27 - 11:33
    and who has collaborated with the community
  • 11:33 - 11:42
    set the Default install directory to c:\bennupack
  • 11:42 - 11:47
    Now the the different tools are going to be installed
  • 11:47 - 11:55
    graphical tools, tools for working with 2d files, also the Notepad++ IDE
  • 11:55 - 12:01
    which we are going to use to edit our game
  • 12:01 - 12:04
    to edit the source code.
  • 12:04 - 12:14
    It's also installing FPG edit. A tool used to add graphics resources to our games
  • 12:14 - 12:23
    FNT Edit, to add fonts. Also there is an editor of explosions, like the old DIV Games Studio did.
  • 12:23 - 12:30
    There is a 3D sprite editor, a tilemap editor
  • 12:30 - 12:36
    We have different types of editors that will contribute to which we can make our game
  • 12:36 - 12:43
    Once it is installed, click finish, and that of all, is installed on a windows system.
  • 12:43 - 12:52
    If wishing to install on linux can see guides
  • 12:52 - 13:04
    I recomendio download from the PPA for ubuntu and do not attend rener problems
  • 13:04 - 13:16
    For tools graphics going to agree to use windows, FPG Edit to the TNF edit.
  • 13:16 - 13:30
    Once you have installed the tools are going to be able to go to start - the disordered Tdos - Bennupack
  • 13:30 - 13:34
    And here we will have DOCS, who will be manuals
  • 13:34 - 13:40
    We are going to have different tools, 3d tools, TOOLS generator explosion
  • 13:40 - 13:54
    Editor FNT, Editor FPG, Graf Editor, Packager of games
  • 13:54 - 14:02
    2d and 3d sprites generator and the tilemap editor
  • 14:02 - 14:13
    We have the option to uninstall it, and the option to start to program with PRG Editor
  • 14:13 - 14:25
    Also would be good to install some programs of examples at this level
  • 14:25 - 14:36
    We are going to install the advanced examples, which is the most examples have
  • 14:36 - 14:41
    The good thing about this system is that the community has contributed with source code
  • 14:41 - 14:45
    and in many cases we can learn from these programs created by the community
  • 14:45 - 14:52
    to develop our own
  • 14:52 - 15:05
    (remove the examples)
  • 15:05 - 15:17
    Here is the software that we use, we will see any of the examples
  • 15:17 - 15:25
    The good thing about this IDE is that it is pretty light and has the tool that will facilitate
  • 15:25 - 15:36
    the writing of coffigo Tranquilo
  • 15:36 - 15:45
    We are going to be able to search among the different games that we have in the examples folder
  • 15:45 - 16:02
    We can see that there are Tetris, Zelda, platforms Tutorial, Final Fight, Breakout, Minesweeper
  • 16:02 - 16:06
    They have different types of games that you can try.
  • 16:06 - 16:16
    Let's try the hook eek eek. Open the source code, which has the pattern of the notepad.
  • 16:16 - 16:30
    Here we can see all the source code. In this case we see that the game has 5285 lines of code.
  • 16:30 - 16:47
    This is an advanced example. We pressed F6 to run. It will compile
  • 16:47 - 17:02
    and in this case a window is going to exit the presentation and the game. We are going to let it run
  • 17:02 - 17:18
    It is a very complete game, an original game. encouragement to undertake projects with graphics orignales.
  • 17:18 - 17:29
    And as far as possible the subject. I think that gives you a great value to the qu are the video games of today.
  • 17:29 - 17:36
    And depending on the console self is going to be a casual game or hardcore.
  • 17:36 - 17:41
    We see that today is very well casual games like Angry Birds endiendo estanv
  • 17:41 - 17:46
    on platforms such as ipod, ipad, or android.
  • 17:46 - 18:02
    Notice the detail of the eye that follows the arrow. We are going to play, you can choose level
  • 18:02 - 18:13
    The graphics are original, it has a presentation.
  • 18:13 - 18:25
    "Obviously, the evil Lab"
  • 18:25 - 18:39
    A good presentation also helps the game.
  • 18:39 - 18:45
    That was to show an example that we have. We are going to start by the Basic.
  • 18:45 - 18:53
    Let's start by displaying text on the screen
  • 18:53 - 19:00
    We are going to close that tab, and will begin to show the basic estructuctuca
  • 19:00 - 19:03
    of a prgorama in bennugd.
  • 19:03 - 19:12
    First of all every game will begin with the reserved word PROGRAM
  • 19:12 - 19:19
    First we are going to save it, so that it works the syntax coloring.
  • 19:19 - 20:24
    Let's create a folder and this file go to VIDEO1.PRG
  • 20:24 - 20:32
    PRG is the extension in bennugd programs.
  • 20:32 - 20:36
    Keep and let's start with the name of our game PROGRAM
  • 20:36 - 20:48
    for example PROGRAM VIDEO1
  • 20:48 - 20:57
    Now we will have to import the module for text, IMPORT
  • 20:57 - 21:08
    What are going to do is display text on the screen. Pongo IMPORT "mod_text";
  • 21:08 - 21:14
    We can do to make the comments / /
  • 21:14 - 21:28
    "//this program sample text on the screen"
  • 21:28 - 21:34
    We will see in our game when we handle screen graphics, we are going to
  • 21:34 - 21:43
    having to import a module to drive that, when we work with scroll is the same
  • 21:43 - 21:52
    We have to import the different modules that we will use
  • 21:52 - 22:02
    After this we are going to enter MAIN PROCESS)
  • 22:02 - 22:11
    This process must always be in our game, is the main and is where
  • 22:11 - 22:20
    the compildor will find to read code. without this process will give an error
  • 22:20 - 22:33
    then put BEGIN and END to end this block of code
  • 22:33 - 22:42
    below we could have other PROCES, e.g. PROCESS PUERTA()
  • 22:42 - 22:46
    that also start with a BEGIN and end with an END.
  • 22:46 - 22:54
    and also we can have for example functions, FUNCTION ABRIR()
  • 22:54 - 23:07
    the parentheses can have parameters. but it will be more clear then.
  • 23:07 - 23:15
    Also the functions start with BEGIN and END
  • 23:15 - 23:30
    The main process they can be called as PUERTA(); and as ABRIR();
  • 23:30 - 23:43
    This was to explain a little structure, but then let's see each one individually
  • 23:43 - 23:50
    It is convenient to tabulate when we write a block
  • 23:50 - 23:52
    to obtain a code much more clear.
  • 23:52 - 24:02
    Let's do a LOOP, in this case the main loop. So you don't forget me I close my end.
  • 24:02 - 24:10
    and within the LOOP we are going to use a function that will display a text on screen
  • 24:10 - 24:15
    This function WRITE() is called and has a number of parameters
  • 24:15 - 24:19
    the first parameter indicates which source to use.
  • 24:19 - 24:32
    When we see the source editor will see that sources are going to follow an id, that id will be in this place.
  • 24:32 - 24:37
    In the event that we do not have an id, it will be 0.
  • 24:37 - 24:51
    Then it will have the X position, and. Where is to locate the text on screen
  • 24:51 - 24:58
    The fourth parameter will indicate alignment, for example 0.
  • 25:00 - 25:23
    Then will write the text: "Hello community BennuGD.org and elbus.com.ar"
  • 25:23 - 25:32
    We close the parenthesis and then a; to indicate that you ended the statement.
  • 25:32 - 25:47
    Notice that the ";" in the reserved words (BEGIN, LOOP, PROGRAM) will not.
  • 25:47 - 25:54
    If we know languages like pascarl, we will notice some similarities.
  • 25:54 - 26:01
    We will then make a FRAME;
  • 26:04 - 26:15
    The frame is what we saying once the actions to be implemented, I want to show them
  • 26:20 - 26:32
    We are going to try as well to see that comes out. Click on F6. Click on OK.
  • 26:32 - 26:39
    It is giving us an error in the program. 0 Online.
  • 26:39 - 26:51
    The error was that I need a ";".
  • 26:51 - 26:57
    Look there shows me the text that this cut because it is very long.
  • 26:57 - 27:10
    Let's see if the alignment instead of 0 is 1, press f6.
  • 27:10 - 27:22
    Back to change instead of 1, 2, and see how the position of the text is changed
  • 27:22 - 27:31
    If we keep changing, for example 4, we pressed F6 and are going to be watching.
  • 27:31 - 27:48
    We see what happens if we starting at X 0 and 0, and will see to be towards the top paerte
  • 27:48 - 27:54
    In some cases it may disappear. There is no longer seen,
  • 27:54 - 28:13
    We are going to leave it in the position that it was. We put instead of X = 100, X = 35
  • 28:13 - 28:17
    so we can see a little more complete the text. Save and press F6.
  • 28:17 - 28:27
    If what we want to see whole we can put that you start at position 0. There is whole.
  • 28:27 - 28:43
    Another thing that we see is the FRAME. What is going to allow is to show the on-screen instructions
  • 28:43 - 28:52
    If we discussed the frame to not run, we pressed F6 and see that it shows us nothing
  • 28:52 - 28:55
    This is because the frame command is missing
  • 28:55 - 28:59
    When any of our objects, either graphic or text not to be displayed, we need to check
  • 28:59 - 29:07
    There is the statement in that process or function frame.
  • 29:07 - 29:10
    Uncomment, and reappears there.
  • 29:10 - 29:21
    Another detail, given are multiple comments by / ** and ** /
  • 29:21 - 29:35
    In this case not turns green due to the IDE error, per the compiler does not give any error
  • 29:35 - 29:39
    Well, this would be all for this first video tutorial.
  • 29:39 - 29:45
    In the next will continue to see different instructions that will enable us to
  • 29:45 - 29:51
    programarnuestro video game. We are going to continue dealing with the texts on screen.
  • 29:51 - 29:58
    And we will begin to see variables and constants to use in our game
  • 29:59 - 30:03
    I hope you liked this video and see you at the next.
Title:
Module 1: BennuGD
Description:

First Videotutorial of the "Game Programming Curse with BennuGD".

more » « less
Video Language:
Spanish, Argentinian
Duration:
30:03
gecko666 added a translation

English subtitles

Revisions