• Stars
    star
    115
  • Rank 296,240 (Top 6 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created about 10 years ago
  • Updated almost 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A introductory guide to shaders with Cocos2D 3.1.

Cocos2DShaderCookbook

Cocos2D v3.1 includes a new rendering engine with vastly improved support for shaders. This project is intended as both a beginner introduction to writing shaders for Cocos2D as well as a "cook book" of ideas to make your own.

You'll want to perform a recursive checkout of the project since the project has a submodule for Cocos2D. Change directory (cd) to your project directory and then perform a recursive checkout. The GitHub for Mac client might do this part for you, I'm not sure. The CLI tools do not.

cd myProjectsDirectory/orWhatever git clone --recursive https://github.com/slembcke/Cocos2DShaderCookbook.git

Then you'll have a nice fresh checkout named Cocos2DShaderCookbook in the current directory.

Each of the examples is fairly self contained and includes an explanation to go along with the code. If you've never written a shader before, you'll want to start at the beginning since the explanations are meant to be read in order.

example

Good luck!

More Repositories

1

Chipmunk2D

A fast and lightweight 2D game physics library.
C
2,097
star
2

debugger.lua

A dependency free, embeddable debugger for Lua in a single file (.lua or .c)
Lua
711
star
3

Tina

Tina is a teeny tiny, header only, coroutine and job library.
C
249
star
4

SpacePatrol

A high performance, large scale, deformable terrain example for Chipmunk Pro.
Objective-C
82
star
5

CocoRoids

Example game Cocos2D v3 using CCPhysics and SpriteBuilder.
Objective-C
63
star
6

CCPhysicsColorMatch

A simple CCPhysics based color matching game.
Objective-C
49
star
7

CloudBomber

Chipmunk Pro Autogeometry demo built on top of Cocos2D 2.0.
Objective-C
46
star
8

CCController

Use XBox, PlayStation (and other HID controllers) with Apple's GameController.framework.
Objective-C
32
star
9

ChipmunkShowcase

Chipmunk Pro Showcase app for iOS
Objective-C
28
star
10

UnofficialCocos2DTemplate

Cocos2D v3.4 template that does not require SpriteBuilder
Objective-C
26
star
11

veridian-expanse

Source code for the asteroid mining game I've been building.
C
20
star
12

ChipmunkColorMatch

A simple color matching game example for Chipmunk, Chipmunk Pro, Cocos2D and UIKit.
Objective-C
17
star
13

GalacticGuardian.spritebuilder

Open source Cocos2D/SpriteBuilder twin stick shooter.
Objective-C
15
star
14

LiFFT

The little FFT library
C
14
star
15

CausticCavern.spritebuilder

SpriteBuilder demo using some of the new 3.1 features.
Objective-C
14
star
16

critical-match

A hybrid platform/color matching game for NES.
C++
12
star
17

mini-lz4

A little lz4 implementation I made for fun.
Assembly
8
star
18

TwilightGolf

Open sourcing an old iPhone game we made.
C
8
star
19

love-debugger

A wrapper for debugger.lua for the Lรถve game engine.
Lua
8
star
20

Gemeralds

Pinball game using CocosBuilder and Chipmunk Pro to make the collision geometry.
Objective-C
7
star
21

InterglacticTransmissing

Interglactic Transmissing for NES
C
7
star
22

neslib-template

Template NES project in C using neslib.
C++
6
star
23

AngryChipmunks

A simple Cocos2D/ChipmunkPro example project.
Objective-C
5
star
24

slembcke.github.io

Website
JavaScript
4
star
25

streamingtest

Playing around with memory mapped bandwith with lz4
C
4
star
26

HotReloadingInC

C
3
star
27

Disasteroids2

Simple CCPhysics prototype game using GPL spritelib graphics.
Objective-C
3
star
28

flatpak-marathon

Flatpak build for Aleph One + Marathon 1, 2, and 3
Makefile
3
star
29

GCControllerTester

Extremely simple app that displays the values of an iOS 7 GCController (extended profile only).
Objective-C
3
star
30

elua.lua

ERB inspired templates for Lua.
Lua
2
star
31

libpng

Temporary libpng Xcode project repository for Cocos2D.
C
2
star
32

pixler

C library for creating NES games.
Assembly
2
star
33

PuzzleSnake

A little js / svg puzzle game
C
2
star
34

Super-City-Mayor

C++
2
star
35

SlapstickNES

Global Game Jam NES project template
C
2
star
36

ImageConvert

Extremely simple image conversion CLI tool for OS X.
Objective-C
1
star
37

MultiTouchObjectiveChipmunk

A simple Cocos2D 2.1 project demonstrating multi-touch physics with Objective-Chipmunk.
Objective-C
1
star
38

vscode-m68k

Gnu as m68k syntax highlighting for VSCode.
1
star
39

Blockade

Board game for the NES made during the 2021 Global Game Jam
C++
1
star
40

ggj22

Global Game Jam '22
Lua
1
star
41

AdventOfCode2020

Lua
1
star
42

iPhoneSnap2D

A simple ChipmunkPro/UIKit example of a physics board game.
Objective-C
1
star
43

tree-perf

Comparing performance of various AABB tree algorithms
C
1
star
44

over-crispd

Gene editing game for the NES inspired by Overcooked. Made for the Global Game Jam 2019.
C
1
star
45

ConcaveSprite

A simple example showing how to use Chipmunk Pro autogeometry to generate concave polygon shapes from Cocos2D sprites automatically.
Objective-C
1
star