flat assembler
Message board for the users of flat assembler.

Index > Windows > Sources for start of small 2d game

Author
Thread Post new topic Reply to topic
aaro



Joined: 21 Jun 2003
Posts: 107
Location: hel.fi
aaro 02 Dec 2003, 16:19
I'm giving away sources of small 2d game. I think this was first project i did with fasm so maybe not the cleanest code there is. And not finished but i think it might help someone.

Contorls:
w,a,s,d - movement
ctrl - fire
f - suicide

[edit]
Attachment deleted because of the size. If someone wants it ask and i'll send it to your email
[/edit]


Last edited by aaro on 18 May 2004, 12:17; edited 1 time in total
Post 02 Dec 2003, 16:19
View user's profile Send private message Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo 02 Dec 2003, 16:56
Thanks aaro, very nice example.

If you want to reduce disk usage, Thomas has a ready to use asm library for PNG files here: http://www.madwizard.org/dl.php?file=PNGlib
Post 02 Dec 2003, 16:56
View user's profile Send private message Yahoo Messenger Reply with quote
aaro



Joined: 21 Jun 2003
Posts: 107
Location: hel.fi
aaro 02 Dec 2003, 23:55
Sorry about the size but when i coded this i just wanted to get started fast. If someone wants to improve this first thing he/she should do is implement loading of compressed files(don't know much about png, but even rle should be efficient enought).
Post 02 Dec 2003, 23:55
View user's profile Send private message Reply with quote
Philip



Joined: 08 Apr 2012
Posts: 7
Location: Russia
Philip 14 Apr 2012, 12:13
Sorry, i know it was a long time ago.)
But maybe somebody still have source codes of these 2d game examples)

IF somebody have, please send it to my email :
philka9498@rambler.ru

I will be so kind of you.)

P.S.
My English is not so good as can be )
Post 14 Apr 2012, 12:13
View user's profile Send private message Reply with quote
bzdashek



Joined: 15 Feb 2012
Posts: 147
Location: Tolstokvashino, Russia
bzdashek 14 Apr 2012, 14:29
Upload it to some filesharing, please, it's interesting.

pelaillo
Thanks for sharing, very useful library!
Post 14 Apr 2012, 14:29
View user's profile Send private message Reply with quote
aaro



Joined: 21 Jun 2003
Posts: 107
Location: hel.fi
aaro 14 Apr 2012, 14:43
Haven't been here for a while. Nice to see forum is still alive and kicking.
I tried to search for this but it seems i have lost all my sources. Sad
So if someone has sources please send it here. It would be fun to see what had i done.
Post 14 Apr 2012, 14:43
View user's profile Send private message Reply with quote
Philip



Joined: 08 Apr 2012
Posts: 7
Location: Russia
Philip 14 Apr 2012, 15:00
Maybe someone have another interesting examples.
Just want try to make a 2d game with FASM.
looking for some source codes.
So it's will be very useful
Post 14 Apr 2012, 15:00
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1678
Location: Toronto, Canada
AsmGuru62 14 Apr 2012, 22:30
Can you give an example of 2D game?
Post 14 Apr 2012, 22:30
View user's profile Send private message Send e-mail Reply with quote
Philip



Joined: 08 Apr 2012
Posts: 7
Location: Russia
Philip 15 Apr 2012, 12:41
I am just in search too )
Post 15 Apr 2012, 12:41
View user's profile Send private message Reply with quote
bzdashek



Joined: 15 Feb 2012
Posts: 147
Location: Tolstokvashino, Russia
bzdashek 15 Apr 2012, 13:45
Philip wrote:
I am just in search too )

Philip, he means what kind of 2d game you are going to create?
Какой тип двумерной игры ты собираешься создать?
Post 15 Apr 2012, 13:45
View user's profile Send private message Reply with quote
Philip



Joined: 08 Apr 2012
Posts: 7
Location: Russia
Philip 15 Apr 2012, 13:55
I mean small 2d platformer game.
Like aaro present in a first post.

Player moves :
left
right
up
Down
Post 15 Apr 2012, 13:55
View user's profile Send private message Reply with quote
Philip



Joined: 08 Apr 2012
Posts: 7
Location: Russia
Philip 15 Apr 2012, 13:57
It maybe not exactly a game , just example of player moving on screen.
Post 15 Apr 2012, 13:57
View user's profile Send private message Reply with quote
abc



Joined: 03 Nov 2009
Posts: 7
Location: Russia
abc 16 Apr 2012, 04:44
You want pure FASM?

For DirectX see "Lemminiscing" on http://flatassembler.net/examples.php

Perhaps you can use any game engine with FASM?
For example Allegro. I have example for Irrlicht, but it is 3d.

_________________
private serfing
pyIrrlicht
Post 16 Apr 2012, 04:44
View user's profile Send private message Visit poster's website Reply with quote
Philip



Joined: 08 Apr 2012
Posts: 7
Location: Russia
Philip 16 Apr 2012, 15:17
Yeah, just pure FASM.

Quote:

For DirectX see "Lemminiscing"


Nice example, added this one yesterday.

I thought about engines, but aim myself make a game just with some API functions.
Not more.
Post 16 Apr 2012, 15:17
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.