PeeJay's Game Programming Tutorial

Previous topic - Next topic

Kitty Hello

http://www.glbasic.com/main.php?site=tutorial&lang=en
English so far, only.
Excellent work from PeeJay, who wrote a complete game as a tutorial from scratch.
On his site you can find another tutorial.
http://www.peejays-remakes.co.uk/

bigsofty

Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

PeeJay

Ta! As games go, they are pretty simple affairs, but if it helps someone start coding in GL, then it can only be for the good :)
www.peejays-remakes.co.uk
For games, remakes, and GL Basic Tutorials
Artificial Intelligence is no match for Natural Stupidity

Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Achim

Thumbs up ! Well done :D

CYA !
- www.softworxs.de -
[Be different - play smart]

AndyH


WPShadow

AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

BumbleBee

Yes, excellent!
And i've just visited your site and i found some nice games.  :)

Cheers
The day will come...

CPU Intel(R) Core(TM) i5-3570k, 3.4GHz, AMD Radeon 7800 , 8 GB RAM, Windows 10 Home 64Bit

shaf

PeeJay,
 I'd like to add my thanks, started looking through the tutorials, very well done.

Cheers

Shaf

François Vanzeveren

Hello,

I am reading PeeJay's Tutorial and adapt the first lesson to run on my GP2X-F100 (i.e. setting the screen resolution to 320x240
Here is the code:
Code (glbasic) Select
SETSCREEN 320,240,1
LIMITFPS 60
SETTRANSPARENCY RGB(0,0,0)
LOADSPRITE "player.bmp",0
GLOBAL px= 320/2 - 32/2
GLOBAL py= 240/2 - 32/2

WHILE KEY(01)=FALSE
DrawTheScreen()
WEND
END

FUNCTION DrawTheScreen:
DRAWSPRITE 0,px,py
SHOWSCREEN
ENDFUNCTION
I loaded the following files on my GP2X in a folder /Projects/MyFirstGame/
MyFirstGame.gpe
player.bmp

I am using the demo version.

This is maybe an issue with the screen depth?

Thanks for your precious help!

Regards

François

XaMMaX

If you write code for gp2x, better not even write "SETSCREEN 320,240,1" =)
Sry for my english

François Vanzeveren

Hi XaMMaX,

I tried without SETSCREEN... but that does not help :(

XaMMaX

You miss "mmuhack.o" in your folder!
Sry for my english

François Vanzeveren

THank you, XaMMaX,

It works!

François Vanzeveren

Hello,

I am done wit this fantastic tutorial. I really enjoyed following it and it convinced it to invest into the GLBasic Premium Pack (bought with a GP2X-F200 on www.gp2x.de).

So, the next steps...
Programming in GLBasic looks so simple, that now I have the feeling the most difficult task to develop a game is to create nice graphics...
So,my question is simple: is there a good tool that allows to build graphics and animations for those whith no drawing capabilities/skills :) (e.g. based on templates)...
I would be also interested in any web sites dedicated to 2D games graphics.

Thanks for your help

François