First check the step-by-step tutorials, then you can check the Example folder of GD. It contains examples which come bundled with GD.
Other examples/source files which you can find in this Forum:
- Tutorials, examples remade in GD
viewtopic.php?f=19&t=5471
Games:
-
Group-It
viewtopic.php?f=19&t=5442 -
avoidance_demo.gdg
viewtopic.php?f=37&t=5065 -
Upon a time (French)
viewtopic.php?f=7&t=5189
Source: mega.co.nz/#!ss5F2SaB!wnWCAgoBH … K37q_LrKh8 -
Grand Space Project
viewtopic.php?f=37&t=5505 -
Kart Mode7
viewtopic.php?f=16&t=5495 -
Plane (simple shooter)_test
viewtopic.php?f=37&t=5574 -
Brick game_test
viewtopic.php?f=19&t=5120 -
GD splash screen
viewtopic.php?f=18&t=5458
Examples:
- Array, list ordering: viewtopic.php?f=19&t=5448&start=10
- Changing origin point of a tiled sprite: viewtopic.php?f=19&t=5425
- Flipping/changing frames by clicking: viewtopic.php?f=19&t=5438
- Functions see Flipping/Changing frames
- Gravity toward an object: viewtopic.php?f=36&t=5623
- Loop ‘For’: viewtopic.php?f=19&t=5260
- Pendulum: viewtopic.php?f=19&t=5613
- Platformer. double jump: viewtopic.php?f=19&t=5570
- Primitive drawing: viewtopic.php?f=19&t=5544
- Random colors: viewtopic.php?f=19&t=5269
- Random placement of objects: viewtopic.php?f=19&t=5648
- Scaling sprites: viewtopic.php?f=19&t=5380
- Screen scrolling: viewtopic.php?f=19&t=5587
- Setting sprite transparency: viewtopic.php?f=22&t=5644
- Snake following: viewtopic.php?f=19&t=5580
- Snapping to grid: viewtopic.php?f=19&t=5608&p=45535&hilit=grid#p45535
- Sound, play/stop, change pitch: viewtopic.php?f=19&t=5457
- Sprite Font Demo: viewtopic.php?f=19&t=5447
- Structure Variables (arrays) see Primitive drawing, List ordering
- Text centering: viewtopic.php?f=19&t=5498
- Text Entry Object: viewtopic.php?f=19&t=5258