Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 May, 2013, 07:06:07 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 ... 28 29 [30] 31 32 ... 42   Go Down
  Print  
Author Topic: Routines -  (Read 42493 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Builderboy
Physics Guru
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: Today at 06:22:59
Date Registered: 20 April, 2009, 00:28:53
Location: Ravenholm
Posts: 5642


Total Post Ratings: +589

View Profile
« Reply #435 on: 20 October, 2010, 19:42:36 »
0

I actually don't think that the built in ones are so bad that it wont work, it just might be a little more distorted.  But given that the screen is so small i dont know how noticeable it is
Logged

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Online Online

Gender: Male
Last Login: Today at 06:56:42
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50202


Total Post Ratings: +2611

View Profile WWW
« Reply #436 on: 20 October, 2010, 19:47:39 »
0

Yeah that's what I was wondering, personally.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
calc84maniac
Epic z80 roflpwner
Coder Of Tomorrow
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 10:02:35
Date Registered: 28 August, 2008, 05:09:05
Location: Right behind you.
Posts: 2735


Total Post Ratings: +373

View Profile
« Reply #437 on: 27 October, 2010, 22:21:53 »
+3

Here is an Asm routine that will return the state of the ON button, just like getKey() does for other keys -- 1 if pressed, 0 if not pressed.

Asm(DB041F1F1F1FED6223)

Edit:
Here is the assembly code, in case anyone (hint hint Quigibo) might want it Tongue

1
2
3
4
5
6
7
in a,(4)
rra
rra
rra
rra
sbc hl,hl
inc hl
« Last Edit: 27 October, 2010, 23:55:29 by calc84maniac » Logged

"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Online Online

Gender: Male
Last Login: Today at 06:56:42
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50202


Total Post Ratings: +2611

View Profile WWW
« Reply #438 on: 28 October, 2010, 04:55:21 »
0

Nice, since that button works differently than others, this might be useful. Will this work regardless of if interrupts are disabled or something, though?
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
ztrumpet
The Rarely Active One
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: 23 April, 2013, 16:09:52
Date Registered: 08 November, 2009, 21:10:12
Location: Michigan
Posts: 5687


Total Post Ratings: +360

View Profile
« Reply #439 on: 28 October, 2010, 23:59:12 »
0

Nice, since that button works differently than others, this might be useful. Will this work regardless of if interrupts are disabled or something, though?
It must be in LnReg mode, I believe. Smiley
Logged

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Online Online

Gender: Male
Last Login: Today at 06:56:42
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50202


Total Post Ratings: +2611

View Profile WWW
« Reply #440 on: 29 October, 2010, 00:01:53 »
0

You mean LnReg might have to be called before using Calc84maniac's routine?
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
ztrumpet
The Rarely Active One
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: 23 April, 2013, 16:09:52
Date Registered: 08 November, 2009, 21:10:12
Location: Michigan
Posts: 5687


Total Post Ratings: +360

View Profile
« Reply #441 on: 29 October, 2010, 00:05:32 »
0

I think so.  I may be wrong, though. Undecided
Logged

calcdude84se
Needs Motivation
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 16:12:14
Date Registered: 21 April, 2010, 04:20:59
Posts: 2207


Total Post Ratings: +62

View Profile
« Reply #442 on: 30 October, 2010, 05:27:19 »
+1

You don't need to be in any specific interrupt mode, actually. Grin
You can be in any mode, interrupts enabled or disabled, and it will work.
What the code does is read a bit the corresponds to whether the [ON] key is being pressed. Interrupts are not involved Wink
Logged

"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Bug me about PartesOS. I might just need reminding.
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Online Online

Gender: Male
Last Login: Today at 06:56:42
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50202


Total Post Ratings: +2611

View Profile WWW
« Reply #443 on: 30 October, 2010, 05:58:14 »
0

Ah ok thanks for the confirmation Smiley
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Builderboy
Physics Guru
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: Today at 06:22:59
Date Registered: 20 April, 2009, 00:28:53
Location: Ravenholm
Posts: 5642


Total Post Ratings: +589

View Profile
« Reply #444 on: 03 November, 2010, 02:31:34 »
+1

I was fiddling around in axe today and i randomly made a random realistic map generator.  It generates a map as seen from space in greyscale and depending on how much terrain you want it to have.  It can also be easily modified to generate terrain from basic shapes already drawn on the screen.


* TerrainGenerator.zip (176.88 KB - downloaded 60 times.)

* TerrainGif.gif (187.12 KB, 192x128 - viewed 314 times.)
Logged

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Online Online

Gender: Male
Last Login: Today at 06:56:42
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50202


Total Post Ratings: +2611

View Profile WWW
« Reply #445 on: 03 November, 2010, 02:51:20 »
0

wow that's great! That makes me wonder if there could be a random dungeon generator or something in the future...
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Deep Thought
So much to do, so much time, so little motivation
Administrator
LV13 Extreme Addict (Next: 9001)
*
Offline Offline

Gender: Male
Last Login: Today at 03:39:24
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7813


Total Post Ratings: +706

View Profile WWW
« Reply #446 on: 04 November, 2010, 00:40:16 »
0

Looks great! Really nice code too Cheesy
Logged




MRide
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 13 July, 2011, 22:22:01
Date Registered: 16 July, 2010, 18:31:10
Location: On a set of Penrose steps
Posts: 710


Total Post Ratings: +14

View Profile
« Reply #447 on: 04 November, 2010, 00:42:50 »
0

So, the number is how much land you want? Looks cool!
Logged


Please click the eggs/dragons! :
Spoiler for My Incubator:
Deep Thought
So much to do, so much time, so little motivation
Administrator
LV13 Extreme Addict (Next: 9001)
*
Offline Offline

Gender: Male
Last Login: Today at 03:39:24
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7813


Total Post Ratings: +706

View Profile WWW
« Reply #448 on: 04 November, 2010, 00:45:31 »
0

Yeah, and if I'm not mistaken, it's out of 16.
Logged




MRide
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 13 July, 2011, 22:22:01
Date Registered: 16 July, 2010, 18:31:10
Location: On a set of Penrose steps
Posts: 710


Total Post Ratings: +14

View Profile
« Reply #449 on: 04 November, 2010, 00:48:21 »
0

'K Thanks.  That looks like it might be useful, for stuff like dungeons, like DJ said.
Also, Deep, your dragon pic needs updating.
Logged


Please click the eggs/dragons! :
Spoiler for My Incubator:
Pages: 1 ... 28 29 [30] 31 32 ... 42   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.325 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.