Author Topic: PeeJay's Game Programming Tutorial  (Read 30472 times)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10859
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
PeeJay's Game Programming Tutorial
« on: 2008-Feb-12 »
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/

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2795
    • View Profile
PeeJay's Game Programming Tutorial
« Reply #1 on: 2008-Feb-12 »
Wow, well done PeeJay! :)
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)

Offline PeeJay

  • Mr. Polyvector
  • ***
  • Posts: 244
    • View Profile
    • PeeJays Remakes
PeeJay's Game Programming Tutorial
« Reply #2 on: 2008-Feb-12 »
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

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5116
  • O Rly?
    • View Profile
PeeJay's Game Programming Tutorial
« Reply #3 on: 2008-Feb-12 »
;) Nice work!
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

Offline Achim

  • Mr. Drawsprite
  • **
  • Posts: 87
    • View Profile
    • softworXs
PeeJay's Game Programming Tutorial
« Reply #4 on: 2008-Feb-13 »
Thumbs up ! Well done :D

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

Offline AndyH

  • Dr. Type
  • ****
  • Posts: 383
    • View Profile
    • http://www.ovine.net/
PeeJay's Game Programming Tutorial
« Reply #5 on: 2008-Feb-13 »
Nice one Peejay.

Offline WPShadow

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1667
    • View Profile
    • http://lostrevenant.blogspot.com
PeeJay's Game Programming Tutorial
« Reply #6 on: 2008-Feb-13 »
Really nice work!!!
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

Offline BumbleBee

  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 891
    • View Profile
PeeJay's Game Programming Tutorial
« Reply #7 on: 2008-Feb-13 »
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

Offline shaf

  • Mc. Print
  • *
  • Posts: 18
    • View Profile
PeeJay's Game Programming Tutorial
« Reply #8 on: 2008-Feb-15 »
PeeJay,
 I'd like to add my thanks, started looking through the tutorials, very well done.

Cheers

Shaf

Offline François Vanzeveren

  • Mc. Print
  • *
  • Posts: 45
    • View Profile
PeeJay's Game Programming Tutorial
« Reply #9 on: 2008-Mar-02 »
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

Offline XaMMaX

  • Mr. Drawsprite
  • **
  • Posts: 67
    • View Profile
PeeJay's Game Programming Tutorial
« Reply #10 on: 2008-Mar-02 »
If you write code for gp2x, better not even write "SETSCREEN 320,240,1" =)
Sry for my english

Offline François Vanzeveren

  • Mc. Print
  • *
  • Posts: 45
    • View Profile
PeeJay's Game Programming Tutorial
« Reply #11 on: 2008-Mar-02 »
Hi XaMMaX,

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

Offline XaMMaX

  • Mr. Drawsprite
  • **
  • Posts: 67
    • View Profile
PeeJay's Game Programming Tutorial
« Reply #12 on: 2008-Mar-02 »
You miss "mmuhack.o" in your folder!
Sry for my english

Offline François Vanzeveren

  • Mc. Print
  • *
  • Posts: 45
    • View Profile
PeeJay's Game Programming Tutorial
« Reply #13 on: 2008-Mar-02 »
THank you, XaMMaX,

It works!

Offline François Vanzeveren

  • Mc. Print
  • *
  • Posts: 45
    • View Profile
PeeJay's Game Programming Tutorial
« Reply #14 on: 2008-Mar-05 »
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