GLBasic forum

Main forum => GLBasic - en => Topic started by: basicgameskilled on 2011-Dec-07

Title: Begginner need some info
Post by: basicgameskilled on 2011-Dec-07
Hello, I'm trying to get into glbasic, and I´ve followed all the tutorials, and I think I understand the basic functions and such, but I coulndt find additional tutorials to build on that. I would like to make a simple 2d game, and I guess I would like to know if there´s somewhere where I could read on algorithms I could read and try to code in glbasic, both to render and game specific code.

thank you.
Title: Re: Begginner need some info
Post by: Crivens on 2011-Dec-07
Open a project and look in the samples. There are loads. Also on the main GLB site there is a showroom that has loads of code samples.

Cheers
Title: Re: Begginner need some info
Post by: basicgameskilled on 2011-Dec-07
Awesome, but those samples explained? I'd like to know when to add specific algorithms each time.  What i want to make is a top down game, like alien breed, but simpler and in 2d.
Title: Re: Begginner need some info
Post by: matchy on 2011-Dec-07
There avast tutorials in the forum but I suggest the fastest and fun method of progressing is to post some of your code. Alternatively, if you have a specific sample code, then explaining it here will help other in future also. That's how we roll, I assume.  :good:
Title: Re: Begginner need some info
Post by: Crivens on 2011-Dec-07
Personally I find the samples better than tutorials, but then I've been programming for decades. Also look on the forum for GLB books (Ebooks I believe). There are some that have been made. I don't know how good they are but worth a gander.

Cheers
Title: Re: Begginner need some info
Post by: fuzzy70 on 2011-Dec-07
Quote from: Ocean on 2011-Dec-07
Read the source, Luke! ;)

:D

You could always do like what I did to learn GLB & that was to enhance the samples that come from the docs. I never finished mine as got sidetracked with other projects  :whistle:



[attachment deleted by admin]
Title: Re: Begginner need some info
Post by: mentalthink on 2011-Dec-07
You have a enough info in the forum example... You can find a very long time , I think a couple of video, explaining from the hand of Glbasic Creator, how make a siple, but very util games, like space shotting games...

Another trick it´s load examples, I cousill the brick game, like Arkanoid, makeing somthing like this and understandig "Arrays" you will have a very great way do it, for make something more complex...

You have external and very good info, like MRTatoad Books, you can buy in LULU Books...

And well take a lot of pacience and a great amount of works hours, but you can see in a couple of weeks you have a little game, made all for youself.

If you want start to understand GLBASIC, and I tell you my experience, it´s very simple, (I don´t program before), use a lot of the help, and make very simple codes, like example, move a background whit keys, launch a Bomb whit command POW, look something of Basic Math(don´t care I don´t use complex things, basically sums, divive, mult.. ETC), and how I sayed, a lot of hours from the computer... in a year, you can move like I fish in water whit Glbasic, it´s very powerfull, and very very easy...

Welcome, to the forum.

Iván J
Title: Re: Begginner need some info
Post by: Wampus on 2011-Dec-07
Quote from: basicgameskilled on 2011-Dec-07
and I guess I would like to know if there´s somewhere where I could read on algorithms I could read and try to code in glbasic, both to render and game specific code.

There are a very large number of different places devoted to specific types of game or game mechanics. I think its best to go looking for them when you need them in the course of making a game, otherwise it would be a bit academic.

What mentalthink said about creating simple games then working up, that is the best way imo. If you were to try making a version of Space Invaders, Pac Man, Defender or another similar early game that is a good starting point. Doing that will teach you quickly. Anything that you need to complete a game you can go looking for, ask here, or work out the problem yourself.

What kind of game would you like to make?
Title: Re: Begginner need some info
Post by: Ian Price on 2011-Dec-07
QuoteIf you were to try making a version of Space Invaders, Pac Man, Defender or another similar early game that is a good starting point.

Actually ALL of those arcade games you mention are quite complex - just think about how much is going on in each of those games. Think of the AI, the movement patterns, the player limitation, the drawing of the screen, the interaction between characters/items/bullets, scoring, animation etc.

NONE of those games are less complex than an Alien Breed clone, which the OP mentioned that he wanted to do.

I would recommend starting by creating routines and demos, rather full games such as those listed to get a better understanding of the language syntax and structure. A really good place to start would be by looking at PeeJays tutorials - http://www.peejays-remakes.co.uk/tutorial/tutorial.html, which start with something very basic, then build on that to become a more complex interactive demo. PeeJays tutorial is pretty old, but should still work with current versions of GLB - however, if they don't you can have a go at fixing things yourself or ask the forums. We don't bite. Often.

And PeeJay, if you're reading this, it's been way too long mate. Come on back and say hello. :(
Title: Re: Begginner need some info
Post by: fuzzy70 on 2011-Dec-07
I can recommend PeeJays site as I had a look there when I started with GLB, Everything runs fine from what I recall although some required turning off "Explicit Declarations" from the projects menu as there are a few undefined variables.

If GLB is your 1st experience of programming then like follow Ian's link to PeeJays site, even if you are just new to GLB it is a handy site to visit.

Lee
Title: Re: Begginner need some info
Post by: okee on 2011-Dec-07
A few easy ones to start with are:

A noughts and crosses game
A Blackjack game with Card Images
A match pairs game like (http://www.groovygames.com/kitty/pairs/)
A quiz game with graphic interface

There's no better way to learn than doing


Title: Re: Begginner need some info
Post by: fuzzy70 on 2011-Dec-07
Quote from: okee on 2011-Dec-07
There's no better way to learn than doing

Very true, that's why I played with the "Lights out/LOGO" I posted earlier, as the game code was there already in the help file it allowed me to play with how sprites/polyvectors work in GLB, I used TYPES for the starfield & changed some other things as well.

I learnt a fair bit about GLB just doing that little (incomplete) example, more could be added like a time limit per lvl, high score table, title screen etc. Basically all the features you would see in a complete game.

Lee
Title: Re: Begginner need some info
Post by: Wampus on 2011-Dec-08
What Ian said, not what I said.  :P

Quote from: Ian Price on 2011-Dec-07
And PeeJay, if you're reading this, it's been way too long mate. Come on back and say hello. :(

Double this.
Title: Re: Begginner need some info
Post by: Hatonastick on 2011-Dec-08
Quote from: Wampus on 2011-Dec-08
What Ian said, not what I said.  :P

Quote from: Ian Price on 2011-Dec-07
And PeeJay, if you're reading this, it's been way too long mate. Come on back and say hello. :(

Double this.
Ian is he still around on Retro Remakes?  Does anyone know if he's alright?
Title: Re: Begginner need some info
Post by: Ian Price on 2011-Dec-08
Quote
Ian is he still around on Retro Remakes?  Does anyone know if he's alright?
Not seen him on RR in ages. I really hope he's alright.
Title: Re: Begginner need some info
Post by: Kryten on 2011-Dec-12
IM pretty sure PJ is ok - hes been moving house, caught up in am dram stuff and generally had real life getting in the way of things. Ill drop him a note on FB :-)
Title: Re: Begginner need some info
Post by: Ian Price on 2011-Dec-12
Cheers Kryten. Send him our regards :)
Title: Re: Begginner need some info
Post by: PeeJay on 2011-Dec-13
Aw, I can feel the love from here  <3 though I wish Ian would take it easy with the S&M loving  :whip:  :D

I'm fine folks - like Kryters said, I've been moving house, and for the past couple of years have been very busy with making a tit of myself on stage - we actually did 6 productions this year alone, and I have been involved to some degree in all of them! You can check out some of my handywork at www.sados.co.uk (yep, I got roped in to doing the society website too, as well as all the artwork for flyers, posters and programmes ..... on top of acting, singing (ish) and dancing (like I'm having a seizure) - I am seriously considering taking some time out to get back to coding, but the director of the next production, Fiddler On The Roof, already has me lined up for a part to audition for - it's relentless, I tell you - worse than knocking out 50 crap games in a month!  =D
Title: Re: Begginner need some info
Post by: Ian Price on 2011-Dec-13
There's no S&M love from me PeeJay! Just missed you is all. You and Caff helped me big time when I needed it after Div disappeared and Blitz was new to me.

Glad everything's going well :)
Title: Re: Begginner need some info
Post by: Kitty Hello on 2011-Dec-14
You're an pro actor now? Awesome changes...
Glad to see you're fine up and alive!  :coke:
Title: Re: Begginner need some info
Post by: Moru on 2011-Dec-14
Welcome back PJ!

That looks awfully interesting, any chance of videos from the plays?
Title: Re: Begginner need some info
Post by: PeeJay on 2011-Dec-22
Sadly, the licensing restrictions mean that recording of the plays is allowed for personal learning only - broadcasting is strictly prohibited - and since I am heavily involved in the society committee, and it is a registered charity, I would not even think about doing something that could jeopardise their standing (which is incredible - SADOS is actually the oldest am dram society in the UK!)

I'm not a professional actor, no - though the only difference between amateur and professional is that professionals get paid to do it. We just do it because we love standing on a stage terrified with hundreds of eyes bearing down on us, like rabbits caught in headlights! (not really - the first time is pretty scary, but I've been doing it on and off all my adult life, so any stagefright has long since left .....)
Title: Re: Begginner need some info
Post by: erico on 2011-Dec-22
It is strange that posting tube things are not allowed, it must be tradition speaking...
...things on internet nowadays really helps boosting everyone´s work.

You can have your stuff down on youtube and not allow them to sell or use it, specially on TV.

If it´s such a great traditional group, internet videos is a must! (of course not about the play that is going on)

Sorry if I sound naive, I´m formed movie maker(5 years now), bachelors degree, stuff I´m doing can be seen on my signature.
It was a hard time to post my movies on youtube, I did it after a hardcore discussion with a lot of people...they convinced me at the end, and I´m sure it was the right thing to do, I was wrong all along...

I love the russians school af acting, I went to your page and checked everything.
Great work you guys are doing! people should have access to it.

We all know that watching a play on vimeo, and watching a play for real has a huuuuuuge difference.